[openssl-users] Valid strings to be passed to EVP_get_digestbyname()

Michael Wojcik Michael.Wojcik at microfocus.com
Thu Feb 18 13:27:26 UTC 2016

[Top-posting because Outlook can't handle HTML email properly.]

Always state what version of OpenSSL you're using.

"sha256" is correct, if that algorithm has been added. Have you called OpenSSL_add_all_algorithms()?

There is no universal "list of valid strings", because OpenSSL can be built with various algorithms enabled or disabled, and which algorithms are available at runtime depends on which of those included at compilation have been added when initializing OpenSSL. So the most likely issue is that you haven't called OpenSSL_add_all_algorithms.

Michael Wojcik
Technology Specialist, Micro Focus

From: openssl-users [mailto:openssl-users-bounces at openssl.org] On Behalf Of Nayna Jain
Sent: Thursday, February 18, 2016 06:41
To: openssl-users at openssl.org
Subject: [openssl-users] Valid strings to be passed to EVP_get_digestbyname()


I am trying to use EVP APIs for generating sha256 hashes.

I think of the step is to pass the digest name to EVP_get_digestbyname() and get the EVP_MD* structure

However, I am not able to find the valid string to be passed for SHA256 hash algorithm.. I tried passing "sha256", "SHA256", it shows "unknown message digest"

Tried to do doc and google search, couldn't find the list of valid strings.

Can someone please help me with this ?

Thanks & Regards,
Nayna Jain

Click here<https://www.mailcontrol.com/sr/KxNNNLAffGPGX2PQPOmvUqs4kYhz3KDrk4yoG9hhq2+fv0ZTFnsZGtcAZ6oaP4MXLiWINVYvmuaYO!6K2KUB+Q==> to report this email as spam.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20160218/bdddcd89/attachment.html>

More information about the openssl-users mailing list