Move discovery of the legacy alg type into the keymgmt
authorMatt Caswell <matt@openssl.org>
Thu, 11 Jan 2024 15:52:35 +0000 (15:52 +0000)
committerTomas Mraz <tomas@openssl.org>
Mon, 15 Jan 2024 15:37:32 +0000 (16:37 +0100)
commit8aa3781bfc7f21b9add1f7ad3f25c78670ec182a
treee957f8a1190abd5151c1ab26f16d6272025bbc28
parent575117efe1e0eb8073c2d26ae3dff8926be00591
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)
crypto/evp/evp_local.h
crypto/evp/keymgmt_meth.c
crypto/evp/pmeth_lib.c
include/crypto/evp.h