You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_socket.LinuxKernelCryptoAPI.test_hmac_sha1() fails on "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash 3.x" buildbot #109396
It seems like hmac in FIPS mode requires a key of at least 112 bits (14 bytes), whereas the test uses a key of 32 bits (4 bytes). See hmac_setkey() in the master branch of the Linux kernel:
if (fips_enabled&& (keylen<112 / 8))
return-EINVAL;
Activity
vstinner commentedon Sep 14, 2023
cc @stratakis
vstinner commentedon Sep 14, 2023
It seems like hmac in FIPS mode requires a key of at least 112 bits (14 bytes), whereas the test uses a key of 32 bits (4 bytes). See
hmac_setkey()in the master branch of the Linux kernel:https://github.com/torvalds/linux/blob/9fdfb15a3dbf818e06be514f4abbfc071004cbe7/crypto/hmac.c#L55-L56
pythongh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode
pythongh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode
gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (#109423)
pythongh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (pytho…
pythongh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (pytho…
[3.12] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-1…
[3.11] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-1…
[3.11] pythongh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (…
[3.11] pythongh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (…
encukou commentedon Oct 8, 2024
This fails on 3.10 & 3.9 buildbots, so let's backport there too.
[3.10] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-1…
[3.9] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-10…
[3.9] pythongh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (p…