openssl
openssl copied to clipboard
Add CTX copy function for EVP_MD to optimize the performance of EVP_MD_CTX_copy_ex
-
Add OSSL_FUNC_digest_copyctx_fn function for EVP_MD, which is used to copy algctx from the old EVP_MD_CTX to the new one.
-
Add implementation of OSSL_FUNC_digest_copyctx_fn function for default providers.
-
Modify EVP_MD_CTX_copy_ex: When the fetched digest is the same in in and out contexts, use the copy function to copy the members in EVP_MD_CTX if the OSSL_FUNC_digest_copyctx_fn function exists. Otherwise, use the previous method to copy.
CLA:trivial
Fixes #25703