Home GnuPG

fips: Recover test cases for selftest, add skipping in FIPS mode.

Description

fips: Recover test cases for selftest, add skipping in FIPS mode.

* cipher/kdf.c (check_one): Skip a test with shorter passphrase in
FIPS mode.
(selftest_pbkdf2): Recover selftest cases.
* cipher/mac-hmac.c (check_one): Skip a test with shorter key in FIPS
mode.
(selftests_sha224, selftests_sha256): Recover selftest cases.
(selftests_sha384, selftests_sha512, selftests_sha3): Likewise.

Details

Provenance
gniibeAuthored on Jan 20 2022, 3:00 AM
Parents
rC76aad97dd312: fips: Reject shorter key for HMAC in FIPS mode.
Branches
Unknown
Tags
Unknown
Tasks
T5512: Implement service indicators