aboutsummaryrefslogtreecommitdiff
path: root/test/testutil
diff options
context:
space:
mode:
authorslontis <shane.lontis@oracle.com>2024-07-24 17:24:33 +1000
committerTomas Mraz <tomas@openssl.org>2024-08-06 11:01:13 +0200
commitf98e49b326fe1fda5efadc10e7905b09a394591c (patch)
tree44da2bd6352fb2e2a19634ef45fd39d1810e5d6e /test/testutil
parent49a35f0f9283d13495941c47bb27ed1a0c32b109 (diff)
downloadopenssl-master.zip
openssl-master.tar.gz
openssl-master.tar.bz2
Add FIPS DSA Keygen testsHEADmaster
Adjust the existing tests to disable DSA keygen in FIPS mode. Allow evp_test to load DSA 'KeyParams' that can then be used to perform a DSA KeyGen. Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24978)
Diffstat (limited to 'test/testutil')
-rw-r--r--test/testutil/stanza.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/testutil/stanza.c b/test/testutil/stanza.c
index a3f833a..69edfad 100644
--- a/test/testutil/stanza.c
+++ b/test/testutil/stanza.c
@@ -126,11 +126,9 @@ int test_readstanza(STANZA *s)
if (s->numpairs == 0)
s->start = s->curr;
- if (strcmp(key, "PrivateKey") == 0) {
- if (!read_key(s))
- return 0;
- }
- if (strcmp(key, "PublicKey") == 0) {
+ if (strcmp(key, "PrivateKey") == 0
+ || strcmp(key, "PublicKey") == 0
+ || strcmp(key, "ParamKey") == 0) {
if (!read_key(s))
return 0;
}