curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Support_better_than_MD5_hostkey

From: Mats Lindestam via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 8 Jul 2021 12:05:38 +0000

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
Received on 2021-07-08