diff options
author | Richard Levitte <levitte@openssl.org> | 2020-04-20 09:14:59 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-04-23 10:44:37 +0100 |
commit | 3b924da0f0e88edf60c561703ea40f63e418c45d (patch) | |
tree | de0706f1e710a759741d3b7d9c347e8c2ccc0aaa /doc | |
parent | 916b1f83d094fe2e0f7dea1e24f4eac3287a4157 (diff) | |
download | openssl-3b924da0f0e88edf60c561703ea40f63e418c45d.tar.gz |
EVP: add internal evp_keymgmt_util_get_deflt_digest_name() and use it
evp_keymgmt_util_get_deflt_digest_name() is a refactor of the provider
side key part of EVP_PKEY_get_default_digest_name(), that takes
EVP_KEYMGMT and provider keydata pointers instead of an EVP_PKEY
pointer.
We also ensure that it uses SN_undef as the default name if the
provider implementation gave us an empty string, since this is what
EVP_PKEY_get_default_digest_name() responds when getting the digest
name via a EVP_PKEY_ASN1_METHOD ctrl call that returns NID_undef.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11576)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/EVP_PKEY_get_default_digest_nid.pod | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/man3/EVP_PKEY_get_default_digest_nid.pod b/doc/man3/EVP_PKEY_get_default_digest_nid.pod index 4a4ca4cad4..f23552d747 100644 --- a/doc/man3/EVP_PKEY_get_default_digest_nid.pod +++ b/doc/man3/EVP_PKEY_get_default_digest_nid.pod @@ -18,7 +18,8 @@ EVP_PKEY_get_default_digest_nid, EVP_PKEY_get_default_digest_name EVP_PKEY_get_default_digest_name() fills in the default message digest name for the public key signature operations associated with key I<pkey> into I<mdname>, up to at most I<mdname_sz> bytes including the -ending NUL byte. +ending NUL byte. The name could be C<"UNDEF">, signifying that no digest +should be used. EVP_PKEY_get_default_digest_nid() sets I<pnid> to the default message digest NID for the public key signature operations associated with key |