Hi,

I am trying to implement support for SHA256 public keys. I have been able to 
reach as far as the lib/vssh/libssh2.c file and the ssh_check_fingerprint 
function. Now I have no idea on how to calculate the SHA156 public key from the 
hostkey hash, a.k.a. 'fingerprint, in the same manner as done for the MD5 
public key (See 
https://github.com/curl/curl/blob/master/lib/vssh/libssh2.c#L627). From where 
have you picked up the algorithm for MD5, from the 'The MD5 Message-Digest 
Algorithm' RFC (https://www.ietf.org/rfc/rfc1321.txt)?
Is there an RFC that explains the 'The SHA256 Message-Digest Algorithm'?

Does any know where to get information about this?


BR


/Mats

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to