Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/service/AuthAgentService.java @ 297:c1f929cb3dd0 ganymed
start conversion from trilead to ganymed
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 29 Jul 2014 16:43:12 -0700 |
parents | 8c55d7714d03 |
children | b40bc65fa09a |
comparison
equal
deleted
inserted
replaced
296:8c55d7714d03 | 297:c1f929cb3dd0 |
---|---|
169 } | 169 } |
170 } | 170 } |
171 private byte[] sshEncodedSignatureFor(byte[] data, ECPrivateKey privKey) { | 171 private byte[] sshEncodedSignatureFor(byte[] data, ECPrivateKey privKey) { |
172 try { | 172 try { |
173 byte[] signature = ECDSASHA2Verify.generateSignature(data, privKey); | 173 byte[] signature = ECDSASHA2Verify.generateSignature(data, privKey); |
174 return ECDSASHA2Verify.encodeSSHECDSASignature(signature); | 174 return ECDSASHA2Verify.encodeSSHECDSASignature(signature, privKey.getParams()); |
175 } | 175 } |
176 catch (IOException e) { | 176 catch (IOException e) { |
177 throw new RuntimeException(e); | 177 throw new RuntimeException(e); |
178 } | 178 } |
179 } | 179 } |