]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-142451: correctly copy HMAC attributes in `HMAC.copy()` (GH-142510) (#142701)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sun, 14 Dec 2025 09:36:26 +0000 (10:36 +0100)
committerGitHub <noreply@github.com>
Sun, 14 Dec 2025 09:36:26 +0000 (09:36 +0000)
commitd209fd911eab6588932558b1e40c339f49c85f59
tree6a880eca3c0e4fa95f18e44b0b84cdf71b06d049
parent22490438749339c22f1544e1ddc82502623102a5
[3.13] gh-142451: correctly copy HMAC attributes in `HMAC.copy()` (GH-142510) (#142701)

Partially cherry-picked from d3ef5ba34d3068b8178d6ff0f39462db6bbc4ad5
which ensures that the `block_size` attribute exists on the copy.
Lib/hmac.py
Lib/test/test_hmac.py
Misc/NEWS.d/next/Library/2025-12-14-10-00-23.gh-issue-142451._rkf2S.rst [new file with mode: 0644]