comparison src/ch/ethz/ssh2/transport/KexManager.java @ 374:597138203c15

debug kex error
author Carl Byington <carl@five-ten-sg.com>
date Mon, 04 Aug 2014 14:02:00 -0700
parents 2768eb029d73
children
comparison
equal deleted inserted replaced
373:2768eb029d73 374:597138203c15
226 int enc_cs_key_len = BlockCipherFactory.getKeySize(kxs.np.enc_algo_client_to_server); 226 int enc_cs_key_len = BlockCipherFactory.getKeySize(kxs.np.enc_algo_client_to_server);
227 int enc_cs_block_len = BlockCipherFactory.getBlockSize(kxs.np.enc_algo_client_to_server); 227 int enc_cs_block_len = BlockCipherFactory.getBlockSize(kxs.np.enc_algo_client_to_server);
228 int mac_sc_key_len = MAC.getKeyLen(kxs.np.mac_algo_server_to_client); 228 int mac_sc_key_len = MAC.getKeyLen(kxs.np.mac_algo_server_to_client);
229 int enc_sc_key_len = BlockCipherFactory.getKeySize(kxs.np.enc_algo_server_to_client); 229 int enc_sc_key_len = BlockCipherFactory.getKeySize(kxs.np.enc_algo_server_to_client);
230 int enc_sc_block_len = BlockCipherFactory.getBlockSize(kxs.np.enc_algo_server_to_client); 230 int enc_sc_block_len = BlockCipherFactory.getBlockSize(kxs.np.enc_algo_server_to_client);
231 km = KeyMaterial.create("SHA1", kxs.H, kxs.K, sessionId, enc_cs_key_len, enc_cs_block_len, mac_cs_key_len, 231 km = KeyMaterial.create(kxs.hashAlgo, kxs.H, kxs.K, sessionId, enc_cs_key_len, enc_cs_block_len, mac_cs_key_len,
232 enc_sc_key_len, enc_sc_block_len, mac_sc_key_len); 232 enc_sc_key_len, enc_sc_block_len, mac_sc_key_len);
233 } 233 }
234 catch (IllegalArgumentException e) { 234 catch (IllegalArgumentException e) {
235 return false; 235 return false;
236 } 236 }