Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
When FIPS is enabled in Linux, LinuxKernelCryptoAPI.test_hmac_sha1() fails withOSError: [Errno 22] Invalid argument.
test.pythoninfo:
fips.linux_crypto_fips_enabled: 1fips.openssl_fips_mode: 1Error:
ERROR: test_hmac_sha1 (test.test_socket.LinuxKernelCryptoAPI.test_hmac_sha1)----------------------------------------------------------------------Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-fips-x86_64.no-builtin-hashes-except-blake2/build/Lib/test/test_socket.py", line 6479, in test_hmac_sha1 algo.setsockopt(socket.SOL_ALG, socket.ALG_SET_KEY, b"Jefe")OSError: [Errno 22] Invalid argumentbuild:https://buildbot.python.org/all/#/builders/469/builds/5995
Linked PRs
- gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode #109423
- [3.12] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423) #109426
- [3.11] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423) #109427
- [3.10] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423) #125106
- [3.9] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423) #125107