You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this should be SHA1_DIGEST_LENGTH because hostkey_method_ssh_rsa_sig_verify() creates a SHA1.
I did check and the hash_len field in the LIBSSH2_HOSTKEY_METHOD struct doesn't appear to be used in critical places but looking at the other hostkey methods, I believe MD5 length is wrong.
It also appears for the "ssh-dss", which I believe also computes a SHA1.
Activity
vszakats commentedon Apr 2, 2023
@Markus-Schmidt Nice catch! Also applies to
[email protected]in 1.10.1-DEV.hostkey: fix hash_len field values
hostkey: fix hash_len field values
hostkey: fix hash_len field values
hostkey: fix `hash_len` field values
hostkey: fix `hash_len` field values
hostkey: fix `hash_len` field constants
hostkey: fix `hash_len` field constants