comparison src/ch/ethz/ssh2/crypto/dh/GenericDhExchange.java @ 311:fde9d6568bea ganymed

add ecdsa key support everywhere
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 15:02:30 -0700
parents 9e42082d1f93
children 1d400fd78e4a
comparison
equal deleted inserted replaced
310:9e42082d1f93 311:fde9d6568bea
63 * @param f 63 * @param f
64 */ 64 */
65 public abstract void setF(byte[] f) throws IOException; 65 public abstract void setF(byte[] f) throws IOException;
66 66
67 public byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, 67 public byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload,
68 byte[] serverKexPayload, byte[] hostKey) throws UnsupportedEncodingException { 68 byte[] serverKexPayload, byte[] hostKey) throws UnsupportedEncodingException, IOException {
69 HashForSSH2Types hash = new HashForSSH2Types(getHashAlgo()); 69 HashForSSH2Types hash = new HashForSSH2Types(getHashAlgo());
70 70
71 log.debug("Client: '" + new String(clientversion, "ISO-8859-1") + "'"); 71 log.debug("Client: '" + new String(clientversion, "ISO-8859-1") + "'");
72 log.debug("Server: '" + new String(serverversion, "ISO-8859-1") + "'"); 72 log.debug("Server: '" + new String(serverversion, "ISO-8859-1") + "'");
73 73