Mercurial > 510Connectbot
changeset 304:abad243cb341 ganymed
add ecdsa key support everywhere
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 29 Jul 2014 20:28:01 -0700 |
parents | a218d9cd725b |
children | d2b303406d63 |
files | src/ch/ethz/ssh2/channel/AuthAgentForwardThread.java |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/channel/AuthAgentForwardThread.java Tue Jul 29 20:24:24 2014 -0700 +++ b/src/ch/ethz/ssh2/channel/AuthAgentForwardThread.java Tue Jul 29 20:28:01 2014 -0700 @@ -465,9 +465,8 @@ } else if (privKey instanceof ECPrivateKey) { ECPrivateKey pk = (ECPrivateKey) privKey; - byte[] signature = ECDSASHA2Verify.generateSignature(challenge, - (ECPrivateKey) privKey, pk.getParams()); - response = ECDSASHA2Verify.encodeSSHECDSASignature(signature); + byte[] signature = ECDSASHA2Verify.generateSignature(challenge, pk); + response = ECDSASHA2Verify.encodeSSHECDSASignature(signature, pk.getParams()); } else { os.write(SSH_AGENT_FAILURE);