Skip to content

gh-162712: Report provider names for OpenSSL digests without NID - #163080

Open
picnixz wants to merge 2 commits into
python:mainfrom
picnixz:meta/crypto/c/hashlib/provider-digest-name-162712
Open

picnixz wants to merge 2 commits into
python:mainfrom
picnixz:meta/crypto/c/hashlib/provider-digest-name-162712

Conversation

@picnixz

@picnixz picnixz commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

With OpenSSL 3, provider digests such as SHA2-256/192 or KECCAK-256
have no NID and `hash.name` was "undefined", which cannot be passed
back to `hashlib.new()`. Such objects now report the lowercase name
given by their provider.
Comment thread Lib/test/test_hashlib.py Resolved
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant