diff options
author | Ingo Franzki <ifranzki@linux.ibm.com> | 2023-01-18 11:24:16 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-01-23 10:34:36 +0100 |
commit | 1d857945324810f43a302c9d062c617207093387 (patch) | |
tree | cfa30299808b11e3ae6f268fdd201a32f94bcaa6 /test | |
parent | c3bd630df0c3630c66155fb8c4baf54810d24695 (diff) | |
download | openssl-new-1d857945324810f43a302c9d062c617207093387.tar.gz |
Allow OSSL_SIGNATURE_PARAM_NONCE_TYPE to be retrieved
Context parameter OSSL_SIGNATURE_PARAM_NONCE_TYPE can now also be
retrieved for ECDSA and DSA.
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20070)
Diffstat (limited to 'test')
-rw-r--r-- | test/evp_test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/evp_test.c b/test/evp_test.c index 44bba48fd2..9ee0434e78 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -3341,6 +3341,12 @@ static int digestsigver_test_parse(EVP_TEST *t, params[1] = OSSL_PARAM_construct_end(); if (!EVP_PKEY_CTX_set_params(mdata->pctx, params)) t->err = "EVP_PKEY_CTX_set_params_ERROR"; + else if (!EVP_PKEY_CTX_get_params(mdata->pctx, params)) + t->err = "EVP_PKEY_CTX_get_params_ERROR"; + else if (!OSSL_PARAM_modified(¶ms[0])) + t->err = "nonce_type_not_modified_ERROR"; + else if (nonce_type != 1) + t->err = "nonce_type_value_ERROR"; } return 1; } |