]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/dh/dh_ameth.c
Implement provider-side keymgmt_dup function
authorTomas Mraz <tomas@openssl.org>
Wed, 7 Apr 2021 17:35:13 +0000 (19:35 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 15 Apr 2021 07:19:39 +0000 (09:19 +0200)
commit4a9fe33c8e12f4fefae0471c0834f8e674dc7e4e
tree479171af7347523257b843893173927cbbc6e572
parentb9cd82f95bf99eab4e1b0420918e7139db091c4b
Implement provider-side keymgmt_dup function

To avoid mutating key data add OSSL_FUNC_KEYMGMT_DUP function
to the provider API and implement it for all asym-key key
managements.

Use it when copying everything to an empty EVP_PKEY
which is the case with EVP_PKEY_dup().

Fixes #14658

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14793)
27 files changed:
crypto/dh/dh_ameth.c
crypto/dh/dh_backend.c
crypto/dh/dh_lib.c
crypto/dsa/dsa_ameth.c
crypto/dsa/dsa_backend.c
crypto/dsa/dsa_lib.c
crypto/ec/ecx_backend.c
crypto/ec/ecx_key.c
crypto/ec/ecx_meth.c
crypto/evp/evp_local.h
crypto/evp/keymgmt_lib.c
crypto/evp/keymgmt_meth.c
crypto/evp/p_lib.c
crypto/rsa/rsa_ameth.c
crypto/rsa/rsa_backend.c
doc/man7/provider-keymgmt.pod
include/crypto/dh.h
include/crypto/dsa.h
include/crypto/ecx.h
include/crypto/evp.h
include/crypto/rsa.h
include/openssl/core_dispatch.h
providers/implementations/keymgmt/dh_kmgmt.c
providers/implementations/keymgmt/dsa_kmgmt.c
providers/implementations/keymgmt/ec_kmgmt.c
providers/implementations/keymgmt/ecx_kmgmt.c
providers/implementations/keymgmt/rsa_kmgmt.c