]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423) (#109426)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Sep 2023 22:41:33 +0000 (15:41 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Sep 2023 22:41:33 +0000 (00:41 +0200)
commit52a9c5760c600bc96df87bc93641df504d302314
treec3065c0df17d7affaf4e2eef1f8c41dc45352fa1
parent3bb8075bcb49383dc226aa1c64cf8e18001c70fd
[3.12] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423) (#109426)

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]