]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423) (#109427)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Sep 2023 22:52:40 +0000 (15:52 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Sep 2023 22:52:40 +0000 (00:52 +0200)
commitf7bfac4b3dd30920f97a542fd78c355ce62aa267
tree25c5ad073568b76511c13b3c74ce74d6b541d387
parent8e23cd0bbbd00f73cadb94e3327bd799c70f97d3
[3.11] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423) (#109427)

gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423)

Use a longer key: FIPS mode requires at least of at least 112 bits.
The previous key was only 32 bits.
(cherry picked from commit e091b9f20fa8e409003af79f3c468b8225e6dcd3)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_socket.py
Misc/NEWS.d/next/Tests/2023-09-14-22-58-47.gh-issue-109396.J1a4jR.rst [new file with mode: 0644]