diff options
author | Richard Levitte <levitte@openssl.org> | 2021-03-16 14:23:54 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-04-02 08:57:47 +0200 |
commit | 03888233290bf3b8410e8dc2acbef8950fffef60 (patch) | |
tree | cffa3d7c31504acbc2b80d7fe7d826381acc76fe /crypto/evp/kdf_lib.c | |
parent | b638dad970c65e311e9a724b89972441268adc9f (diff) |
EVP: Add EVP_<TYPE>_description()
The following operation types are covered:
EVP_MD, EVP_CIPHER, EVP_MAC, EVP_RAND, EVP_KEYMGMT, EVP_SIGNATURE,
EVP_ASYM_CIPHER, EVP_KEM, EVP_KEYEXCH, EVP_KDF. Also EVP_PKEY.
For EVP_MD and EVP_CIPHER, OBJ_nid2ln() is used as a fallback for
legacy implementations.
For EVP_PKEY, the info field of the EVP_PKEY_ASN1_METHOD is used as a
fallback for legacy implementations.
Fixes #14514
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14656)
Diffstat (limited to 'crypto/evp/kdf_lib.c')
-rw-r--r-- | crypto/evp/kdf_lib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/evp/kdf_lib.c b/crypto/evp/kdf_lib.c index f5ff00d7e7..1a1074b21b 100644 --- a/crypto/evp/kdf_lib.c +++ b/crypto/evp/kdf_lib.c @@ -95,6 +95,11 @@ const char *EVP_KDF_name(const EVP_KDF *kdf) return NULL; } +const char *EVP_KDF_description(const EVP_KDF *kdf) +{ + return kdf->description; +} + int EVP_KDF_is_a(const EVP_KDF *kdf, const char *name) { return evp_is_a(kdf->prov, kdf->name_id, NULL, name); |