openssl/crypto/dh
Matt Caswell 19ad1e9d37 Remove a TODO(3.0) from EVP_PKEY_derive_set_peer()
The TODO described a case where a legacy derive operation is called, but
the peer key is provider based. In practice this will almost never be a
problem. We should never end up in our own legacy EVP_PKEY_METHOD
implementations if no ENGINE has been configured. If an ENGINE has been
configured then we we will be using a third party EVP_PKEY_METHOD
implementation and public APIs will be used to obtain the key data from the
peer key so there will be no "reaching inside" the pkey.

There is a theoretical case where a third party ENGINE wraps our own
internal EVP_PKEY_METHODs using EVP_PKEY_meth_find() or
EVP_PKEY_meth_get0(). For these cases we just ensure all our
EVP_PKEY_METHODs never reach "inside" the implementation of a peer key. We
can never assume that it is a legacy key.

Fixes #14399

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14555)
2021-03-17 09:56:33 +00:00
..
build.info EVP_PKEY & DH: Make DH EVP_PKEY_CTX parameter ctrls / setters more available 2020-12-16 11:55:39 +01:00
dh_ameth.c Update copyright year 2021-03-11 13:27:36 +00:00
dh_asn1.c Update copyright year 2021-03-11 13:27:36 +00:00
dh_backend.c Fix external symbols related to dh keys 2021-02-26 10:50:30 +10:00
dh_check.c Update copyright year 2021-03-11 13:27:36 +00:00
dh_depr.c
dh_err.c ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
dh_gen.c Update copyright year 2021-03-11 13:27:36 +00:00
dh_group_params.c Update copyright year 2021-03-11 13:27:36 +00:00
dh_kdf.c Update copyright year 2021-03-11 13:27:36 +00:00
dh_key.c Fix external symbols related to dh keys 2021-02-26 10:50:30 +10:00
dh_lib.c Update copyright year 2021-03-11 13:27:36 +00:00
dh_local.h Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
dh_meth.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
dh_pmeth.c Remove a TODO(3.0) from EVP_PKEY_derive_set_peer() 2021-03-17 09:56:33 +00:00
dh_prn.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
dh_rfc5114.c Update copyright year 2021-03-11 13:27:36 +00:00