aboutsummaryrefslogtreecommitdiff
path: root/providers/fips
diff options
context:
space:
mode:
authorslontis <shane.lontis@oracle.com>2021-08-30 09:59:54 +1000
committerPauli <pauli@openssl.org>2021-08-31 20:45:53 +1000
commit5595058714832bdff03604c881cf44f91c14b5fc (patch)
treefb2453756f4644898716b0c0729823a66828829e /providers/fips
parent9b6d17e423da138ea7fd190ae366580c539dceca (diff)
downloadopenssl-5595058714832bdff03604c881cf44f91c14b5fc.zip
openssl-5595058714832bdff03604c881cf44f91c14b5fc.tar.gz
openssl-5595058714832bdff03604c881cf44f91c14b5fc.tar.bz2
Add the self test type OSSL_SELF_TEST_TYPE_PCT_SIGNATURE
Fixes #16457 The ECDSA and DSA signature tests use Pairwise tests instead of KATS. Note there is a seperate type used by the keygen for conditional Pairwise Tests. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16461)
Diffstat (limited to 'providers/fips')
-rw-r--r--providers/fips/self_test_kats.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/providers/fips/self_test_kats.c b/providers/fips/self_test_kats.c
index d411767..81f7226 100644
--- a/providers/fips/self_test_kats.c
+++ b/providers/fips/self_test_kats.c
@@ -452,8 +452,12 @@ static int self_test_sign(const ST_KAT_SIGN *t,
0x48, 0xa1, 0xd6, 0x5d, 0xfc, 0x2d, 0x4b, 0x1f, 0xa3, 0xd6, 0x77, 0x28,
0x4a, 0xdd, 0xd2, 0x00, 0x12, 0x6d, 0x90, 0x69
};
+ const char *typ = OSSL_SELF_TEST_TYPE_KAT_SIGNATURE;
- OSSL_SELF_TEST_onbegin(st, OSSL_SELF_TEST_TYPE_KAT_SIGNATURE, t->desc);
+ if (t->sig_expected == NULL)
+ typ = OSSL_SELF_TEST_TYPE_PCT_SIGNATURE;
+
+ OSSL_SELF_TEST_onbegin(st, typ, t->desc);
bnctx = BN_CTX_new_ex(libctx);
if (bnctx == NULL)