]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-135234: improve `_hashlib` exceptions when reporting an OpenSSL function failure...
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Mon, 9 Jun 2025 07:13:29 +0000 (09:13 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Jun 2025 07:13:29 +0000 (09:13 +0200)
commit83b94e856e9b55e3ad00e272ccd5e80eafa94443
tree839b4f4a6edb6c684564f9a13b5314306ed80f05
parent2677dd017a033eaaad3b8e1e0eb5664a44e7e231
gh-135234: improve `_hashlib` exceptions when reporting an OpenSSL function failure (#135250)

- Refactor `get_openssl_evp_md_by_utf8name` error branches.
- Refactor `HASH.{digest,hexdigest}` computations.
- Refactor `_hashlib_HASH_copy_locked` and `locked_HMAC_CTX_copy`.
Misc/NEWS.d/next/Library/2025-06-08-11-11-07.gh-issue-135234.wJCdh0.rst [new file with mode: 0644]
Modules/_hashopenssl.c