]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-142451: correctly copy HMAC attributes in `HMAC.copy()` (GH-142510) (#142698)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sun, 14 Dec 2025 09:27:03 +0000 (10:27 +0100)
committerGitHub <noreply@github.com>
Sun, 14 Dec 2025 09:27:03 +0000 (09:27 +0000)
commit77ad3d59c2c920dd3c0408139cb9be9cab430ce3
treee692ae7de00c87bc75ce95b3fcf70f83170dddc6
parentaef4552d046ab5d0fdb9abbfd50132778437f4cd
[3.14] gh-142451: correctly copy HMAC attributes in `HMAC.copy()` (GH-142510) (#142698)

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]