comparison src/ch/ethz/ssh2/channel/AuthAgentForwardThread.java @ 303:a218d9cd725b ganymed

add ecdsa key support everywhere
author Carl Byington <carl@five-ten-sg.com>
date Tue, 29 Jul 2014 20:24:24 -0700
parents beaccc9df37b
children abad243cb341
comparison
equal deleted inserted replaced
302:beaccc9df37b 303:a218d9cd725b
459 response = RSASHA1Verify.encodeSSHRSASignature(signature); 459 response = RSASHA1Verify.encodeSSHRSASignature(signature);
460 } 460 }
461 else if (privKey instanceof DSAPrivateKey) { 461 else if (privKey instanceof DSAPrivateKey) {
462 byte[] signature = DSASHA1Verify.generateSignature(challenge, 462 byte[] signature = DSASHA1Verify.generateSignature(challenge,
463 (DSAPrivateKey) privKey, new SecureRandom()); 463 (DSAPrivateKey) privKey, new SecureRandom());
464 response = DSASHA1Verify.encodeSSHDSASignature(signature, ); 464 response = DSASHA1Verify.encodeSSHDSASignature(signature);
465 } 465 }
466 else if (privKey instanceof ECPrivateKey) { 466 else if (privKey instanceof ECPrivateKey) {
467 ECPrivateKey pk = (ECPrivateKey) privKey; 467 ECPrivateKey pk = (ECPrivateKey) privKey;
468 byte[] signature = ECDSASHA2Verify.generateSignature(challenge, 468 byte[] signature = ECDSASHA2Verify.generateSignature(challenge,
469 (ECPrivateKey) privKey, pk.getParams()); 469 (ECPrivateKey) privKey, pk.getParams());