diff options
author | Matt Caswell <matt@openssl.org> | 2024-01-11 15:52:35 +0000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-01-15 16:37:32 +0100 |
commit | 8aa3781bfc7f21b9add1f7ad3f25c78670ec182a (patch) | |
tree | e957f8a1190abd5151c1ab26f16d6272025bbc28 /include/crypto | |
parent | 575117efe1e0eb8073c2d26ae3dff8926be00591 (diff) |
Move discovery of the legacy alg type into the keymgmt
During creation of the EVP_PKEY_CTX we were trying to discover what legacy
alg it corresponds to every time which was slow. Instead we move this into
the construction of the EVP_KEYMGMT.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23265)
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/evp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/crypto/evp.h b/include/crypto/evp.h index 96133bf7f5..5e05385d9f 100644 --- a/include/crypto/evp.h +++ b/include/crypto/evp.h @@ -951,6 +951,7 @@ int evp_kdf_get_number(const EVP_KDF *kdf); int evp_kem_get_number(const EVP_KEM *wrap); int evp_keyexch_get_number(const EVP_KEYEXCH *keyexch); int evp_keymgmt_get_number(const EVP_KEYMGMT *keymgmt); +int evp_keymgmt_get_legacy_alg(const EVP_KEYMGMT *keymgmt); int evp_mac_get_number(const EVP_MAC *mac); int evp_md_get_number(const EVP_MD *md); int evp_rand_get_number(const EVP_RAND *rand); |