EVP: Add EVP_PKEY_get_default_digest_name() and use it
authorRichard Levitte <levitte@openssl.org>
Mon, 13 Jan 2020 07:49:44 +0000 (08:49 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 23 Jan 2020 16:59:12 +0000 (17:59 +0100)
commitead0d2347a348f0916d6d25818d16d702f1d1156
tree46ec463c875a8f05e9f5af28d56bea142cab0895
parentc24937d5e71a990763f227be229ad41aab44728f
EVP: Add EVP_PKEY_get_default_digest_name() and use it

It is the provider version of EVP_PKEY_get_default_digest_nid().  We make
sure to use it in the non-legacy section of do_sigver_init() (internal
implementation for EVP_DigestSignInit() and EVP_DigestVerifyInit())

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10824)
crypto/evp/m_sigver.c
crypto/evp/p_lib.c
doc/man3/EVP_PKEY_get_default_digest_nid.pod
include/openssl/core_names.h
include/openssl/evp.h
util/libcrypto.num