]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add tests for FIPS keygen self test failures.
authorslontis <shane.lontis@oracle.com>
Tue, 31 Jan 2023 23:19:02 +0000 (09:19 +1000)
committerTomas Mraz <tomas@openssl.org>
Wed, 8 Feb 2023 16:00:55 +0000 (17:00 +0100)
commitdcd20cc139d1a26cd94c66cc5ebc8ab85d928356
treed60b2209ce64d76a4b12670333cacdc93262a3ae
parent89601c72471a4b6bbb9e877f5c54f20eceba5f01
Add tests for FIPS keygen self test failures.

During key generation RSA, EC and DSA have extra tests that run in FIPS mode
All 3 algorithms have a pairwise test, EC & DSA also run a KAT test.

This test uses the self test callback to force an error
during each of the extra pairwise and KAT tests.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20183)
test/build.info
test/pairwise_fail_test.c [new file with mode: 0644]
test/recipes/30-test_pairwise_fail.t [new file with mode: 0644]
test/recipes/30-test_pairwise_fail_data/dsaparam.pem [new file with mode: 0644]