Valid strings to be passed to EVP_get_digestbyname()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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@xxxxxxxxxxx] On Behalf Of Nayna Jain
Sent: Thursday, February 18, 2016 06:41
To: openssl-users at openssl.org
Subject: Valid strings to be passed to EVP_get_digestbyname()


Hi,

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>


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux