diff app/src/main/java/ch/ethz/ssh2/transport/KexManager.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/KexManager.java	Sun Jan 29 10:25:21 2023 -0700
+++ b/app/src/main/java/ch/ethz/ssh2/transport/KexManager.java	Wed Feb 01 17:55:29 2023 -0700
@@ -52,6 +52,9 @@
         KEX_ALGS.add("diffie-hellman-group-exchange-sha256");
         KEX_ALGS.add("diffie-hellman-group-exchange-sha1");
         KEX_ALGS.add("diffie-hellman-group14-sha1");
+        KEX_ALGS.add("diffie-hellman-group14-sha256");
+        KEX_ALGS.add("diffie-hellman-group16-sha512");
+        KEX_ALGS.add("diffie-hellman-group18-sha512");
         KEX_ALGS.add("diffie-hellman-group1-sha1");
         KEX_ALGS.add("ecdh-sha2-nistp256");
         KEX_ALGS.add("ecdh-sha2-nistp384");
@@ -295,7 +298,7 @@
         return KEX_ALGS.toArray(new String[KEX_ALGS.size()]);
     }
 
-    public static void checkKexAlgorithmList(String[] algos) {
+    public static void checkClientKexAlgorithmList(String[] algos) {
         for (final String algo : algos) {
             if (!KEX_ALGS.contains(algo))
                 throw new IllegalArgumentException("Unknown kex algorithm '" + algo + "'");