comparison src/ch/ethz/ssh2/crypto/dh/GenericDhExchange.java @ 310:9e42082d1f93 ganymed

add ecdsa key support everywhere
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 14:42:55 -0700
parents cb179051f0f2
children fde9d6568bea
comparison
equal deleted inserted replaced
309:cb179051f0f2 310:9e42082d1f93
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 {
69 HashForSSH2Types hash = new HashForSSH2Types(getHashAlgo()); 69 HashForSSH2Types hash = new HashForSSH2Types(getHashAlgo());
70 70
71 if (log.isEnabled()) { 71 log.debug("Client: '" + new String(clientversion, "ISO-8859-1") + "'");
72 log.log(90, "Client: '" + new String(clientversion, "ISO-8859-1") + "'"); 72 log.debug("Server: '" + new String(serverversion, "ISO-8859-1") + "'");
73 log.log(90, "Server: '" + new String(serverversion, "ISO-8859-1") + "'");
74 }
75 73
76 hash.updateByteString(clientversion); 74 hash.updateByteString(clientversion);
77 hash.updateByteString(serverversion); 75 hash.updateByteString(serverversion);
78 hash.updateByteString(clientKexPayload); 76 hash.updateByteString(clientKexPayload);
79 hash.updateByteString(serverKexPayload); 77 hash.updateByteString(serverKexPayload);