This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, gregory.p.smith
Date 2020-05-03.10:52:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588503129.6.0.253291975104.issue40482@roundup.psfhosted.org>
In-reply-to
Content
Python uses valid Python identifiers for hashing algorithms while OpenSSL uses slightly different default names. For example OpenSSL uses "SHA3-256" while Python has "sha3_256". The function py_digest_by_name() in _hashopenssl.c maps from Python names to EVP_MD pointer.

It's possible to simplify the lookup by registering Python's aliases with OpenSSL, e.g. EVP_add_digest_alias(SN_sha3_512, "sha3_512").

Also see https://github.com/openssl/openssl/issues/11715
History
Date User Action Args
2020-05-03 10:52:09christian.heimessetrecipients: + christian.heimes, gregory.p.smith
2020-05-03 10:52:09christian.heimessetmessageid: <1588503129.6.0.253291975104.issue40482@roundup.psfhosted.org>
2020-05-03 10:52:09christian.heimeslinkissue40482 messages
2020-05-03 10:52:09christian.heimescreate