diff app/src/main/java/ch/ethz/ssh2/transport/ClientKexManager.java @ 510:7953570e5210

update to ganymed-ssh2 tag 263 and fix hmac-sha2-512
author Carl Byington <carl@five-ten-sg.com>
date Wed, 01 Feb 2023 17:55:29 -0700
parents d29cce60f393
children
line wrap: on
line diff
--- a/app/src/main/java/ch/ethz/ssh2/transport/ClientKexManager.java	Sun Jan 29 10:25:21 2023 -0700
+++ b/app/src/main/java/ch/ethz/ssh2/transport/ClientKexManager.java	Wed Feb 01 17:55:29 2023 -0700
@@ -161,6 +161,9 @@
 
             if (kxs.np.kex_algo.equals("diffie-hellman-group1-sha1")  ||
                 kxs.np.kex_algo.equals("diffie-hellman-group14-sha1") ||
+                kxs.np.kex_algo.equals("diffie-hellman-group14-sha256") ||
+                kxs.np.kex_algo.equals("diffie-hellman-group16-sha512") ||
+                kxs.np.kex_algo.equals("diffie-hellman-group18-sha512") ||
                 kxs.np.kex_algo.equals("ecdh-sha2-nistp256")          ||
                 kxs.np.kex_algo.equals("ecdh-sha2-nistp384")          ||
                 kxs.np.kex_algo.equals("ecdh-sha2-nistp521")) {
@@ -282,6 +285,9 @@
 
         if (kxs.np.kex_algo.equals("diffie-hellman-group1-sha1")  ||
                 kxs.np.kex_algo.equals("diffie-hellman-group14-sha1") ||
+                kxs.np.kex_algo.equals("diffie-hellman-group14-sha256") ||
+                kxs.np.kex_algo.equals("diffie-hellman-group16-sha512") ||
+                kxs.np.kex_algo.equals("diffie-hellman-group18-sha512") ||
                 kxs.np.kex_algo.equals("ecdh-sha2-nistp256")          ||
                 kxs.np.kex_algo.equals("ecdh-sha2-nistp384")          ||
                 kxs.np.kex_algo.equals("ecdh-sha2-nistp521")) {