projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
061ae2f
)
acvp_test: Do not expect exact number of self tests
author
Tomas Mraz
<tomas@openssl.org>
Fri, 12 Mar 2021 12:49:28 +0000
(13:49 +0100)
committer
Tomas Mraz
<tomas@openssl.org>
Fri, 12 Mar 2021 14:13:37 +0000
(15:13 +0100)
There might be more because internal instances of the DRBG
might be initialized for the first time and thus
self-tested as well.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14497)
test/acvp_test.c
patch
|
blob
|
history
diff --git
a/test/acvp_test.c
b/test/acvp_test.c
index 02ef638ddd81bb9d9102d2decfc6a8603776bb8b..0be26f699b4ffba034d1be4d64c8a0f8d643fb6a 100644
(file)
--- a/
test/acvp_test.c
+++ b/
test/acvp_test.c
@@
-127,7
+127,7
@@
static int ecdsa_keygen_test(int id)
|| !TEST_int_gt(EVP_PKEY_keygen_init(ctx), 0)
|| !TEST_true(EVP_PKEY_CTX_set_group_name(ctx, tst->curve_name))
|| !TEST_int_gt(EVP_PKEY_keygen(ctx, &pkey), 0)
- || !TEST_int_
eq
(self_test_args.called, 3)
+ || !TEST_int_
ge
(self_test_args.called, 3)
|| !TEST_true(pkey_get_bn_bytes(pkey, OSSL_PKEY_PARAM_PRIV_KEY, &priv,
&priv_len))
|| !TEST_true(pkey_get_bn_bytes(pkey, OSSL_PKEY_PARAM_EC_PUB_X, &pubx,