changeset 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 8c1451f51a5e
files src/ch/ethz/ssh2/transport/KexManager.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/transport/KexManager.java	Mon Aug 04 13:08:22 2014 -0700
+++ b/src/ch/ethz/ssh2/transport/KexManager.java	Mon Aug 04 14:02:00 2014 -0700
@@ -228,7 +228,7 @@
             int mac_sc_key_len = MAC.getKeyLen(kxs.np.mac_algo_server_to_client);
             int enc_sc_key_len = BlockCipherFactory.getKeySize(kxs.np.enc_algo_server_to_client);
             int enc_sc_block_len = BlockCipherFactory.getBlockSize(kxs.np.enc_algo_server_to_client);
-            km = KeyMaterial.create("SHA1", kxs.H, kxs.K, sessionId, enc_cs_key_len, enc_cs_block_len, mac_cs_key_len,
+            km = KeyMaterial.create(kxs.hashAlgo, kxs.H, kxs.K, sessionId, enc_cs_key_len, enc_cs_block_len, mac_cs_key_len,
                                     enc_sc_key_len, enc_sc_block_len, mac_sc_key_len);
         }
         catch (IllegalArgumentException e) {