Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/channel/AuthAgentForwardThread.java @ 298:ab3a99f11a36 ganymed
add ecdsa key support everywhere
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 29 Jul 2014 18:01:08 -0700 |
parents | deb5fb087b6f |
children | 349847b2e318 |
comparison
equal
deleted
inserted
replaced
297:c1f929cb3dd0 | 298:ab3a99f11a36 |
---|---|
460 else if (privKey instanceof DSAPrivateKey) { | 460 else if (privKey instanceof DSAPrivateKey) { |
461 byte[] signature = DSASHA1Verify.generateSignature(challenge, | 461 byte[] signature = DSASHA1Verify.generateSignature(challenge, |
462 (DSAPrivateKey) privKey, new SecureRandom()); | 462 (DSAPrivateKey) privKey, new SecureRandom()); |
463 response = DSASHA1Verify.encodeSSHDSASignature(signature); | 463 response = DSASHA1Verify.encodeSSHDSASignature(signature); |
464 } | 464 } |
465 else if (privKey instanceof ECPrivateKey) { | |
466 byte[] signature = ECDSASHA2Verify.generateSignature(challenge, | |
467 (ECPrivateKey) privKey); | |
468 response = ECDSASHA2Verify.encodeSSHECDSASignature(signature); | |
469 } | |
465 else { | 470 else { |
466 os.write(SSH_AGENT_FAILURE); | 471 os.write(SSH_AGENT_FAILURE); |
467 return; | 472 return; |
468 } | 473 } |
469 | 474 |