diff app/src/main/java/ch/ethz/ssh2/KnownHosts.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/KnownHosts.java	Sun Jan 29 10:25:21 2023 -0700
+++ b/app/src/main/java/ch/ethz/ssh2/KnownHosts.java	Wed Feb 01 17:55:29 2023 -0700
@@ -180,7 +180,7 @@
         }
 
         try {
-            HMAC hmac = new HMAC(sha1, salt, salt.length);
+            HMAC hmac = new HMAC(sha1, salt, salt.length, 64);
             hmac.update(StringEncoder.GetBytes(hostname));
             byte[] dig = new byte[hmac.getDigestLength()];
             hmac.digest(dig);