Implement a EVP_PKEY KDF to KDF provider bridge
authorMatt Caswell <matt@openssl.org>
Fri, 3 Jul 2020 15:18:03 +0000 (16:18 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 10 Aug 2020 13:51:57 +0000 (14:51 +0100)
commitac2d58c72b4dc4a8c74eef893000306bf78a30fd
tree105bc32568afcb7dd145a2560bc865ff8de3a20f
parent23f04372f45f8c9e3865c3bcfee3f77a9cc10673
Implement a EVP_PKEY KDF to KDF provider bridge

Some KDF implementations were available before the current EVP_KDF API.
They were used via EVP_PKEY_derive. There exists a bridge between the old
API and the EVP_KDF API however this bridge itself uses a legacy
EVP_PKEY_METHOD. This commit implements a provider side bridge without
having to use any legacy code.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12573)
16 files changed:
crypto/err/openssl.txt
crypto/evp/evp_err.c
crypto/evp/exchange.c
crypto/evp/pmeth_lib.c
include/openssl/evperr.h
include/openssl/kdf.h
providers/defltprov.c
providers/implementations/exchange/build.info
providers/implementations/exchange/kdf_exch.c [new file with mode: 0644]
providers/implementations/include/prov/implementations.h
providers/implementations/include/prov/kdfexchange.h [new file with mode: 0644]
providers/implementations/kdfs/tls1_prf.c
providers/implementations/keymgmt/build.info
providers/implementations/keymgmt/kdf_legacy_kmgmt.c [new file with mode: 0644]
test/pkey_meth_kdf_test.c
util/libcrypto.num