]> git.ipfire.org Git - thirdparty/openssl.git/commit
Relax PBKDF2 iteration check for FIPS self-test
authorSimo Sorce <simo@redhat.com>
Mon, 8 Dec 2025 17:44:56 +0000 (12:44 -0500)
committerDmitry Belyavskiy <beldmit@gmail.com>
Fri, 13 Feb 2026 09:53:41 +0000 (10:53 +0100)
commitca0ebe300ca331aa1de94c7e5c1c9322ecc9bc75
tree23788a7ef4c8e88a39d50914a2312dd97ee04958
parenta8036eb1e8a9252444130ac23092b9bbd1809305
Relax PBKDF2 iteration check for FIPS self-test

FIPS 140-3 IG 10.3.A.8 requires known-answer tests for KDFs. Some of these
tests for PBKDF2 use a low iteration count (e.g., 2) which is below the normal
security threshold and would otherwise fail.

This change checks if a PBKDF2 self-test is in progress and, if so, lowers the
minimum accepted iteration count to 2. This allows the required self-tests to
pass while maintaining the security check for normal operations.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/29222)
providers/implementations/kdfs/pbkdf2.c