comparison src/ch/ethz/ssh2/transport/ClientKexManager.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 1442be38051b
comparison
equal deleted inserted replaced
310:9e42082d1f93 311:fde9d6568bea
255 } 255 }
256 256
257 kxs.dhgx.setF(dhgexrpl.getF()); 257 kxs.dhgx.setF(dhgexrpl.getF());
258 258
259 try { 259 try {
260 kxs.H = kxs.dhgx.calculateH(csh.getClientString(), csh.getServerString(), 260 kxs.H = kxs.dhgx.calculateH(kxs.hashAlgo, csh.getClientString(), csh.getServerString(),
261 kxs.localKEX.getPayload(), kxs.remoteKEX.getPayload(), dhgexrpl.getHostKey(), 261 kxs.localKEX.getPayload(), kxs.remoteKEX.getPayload(), dhgexrpl.getHostKey(),
262 kxs.dhgexParameters); 262 kxs.dhgexParameters);
263 } 263 }
264 catch(IllegalArgumentException e) { 264 catch(IllegalArgumentException e) {
265 throw new IOException("KEX error.", e); 265 throw new IOException("KEX error.", e);
295 throw new IOException("The server host key was not accepted by the verifier callback", e); 295 throw new IOException("The server host key was not accepted by the verifier callback", e);
296 } 296 }
297 } 297 }
298 kxs.dhx.setF(dhr.getF()); 298 kxs.dhx.setF(dhr.getF());
299 try { 299 try {
300 kxs.H = kxs.dhx.calculateH(csh.getClientString(), csh.getServerString(), kxs.localKEX.getPayload(), 300 kxs.H = kxs.dhx.calculateH(kxs.hashAlgo, csh.getClientString(), csh.getServerString(), kxs.localKEX.getPayload(),
301 kxs.remoteKEX.getPayload(), dhr.getHostKey()); 301 kxs.remoteKEX.getPayload(), dhr.getHostKey());
302 } 302 }
303 catch(IllegalArgumentException e) { 303 catch(IllegalArgumentException e) {
304 throw new IOException("KEX error.", e); 304 throw new IOException("KEX error.", e);
305 } 305 }