openssl/crypto/ec
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
..
asm
curve448
build.info EVP_PKEY & EC_KEY: Make EC EVP_PKEY_CTX parameter ctrls / setters more available 2020-12-16 11:56:38 +01:00
curve25519.c
ec2_oct.c Update copyright year 2021-03-11 13:27:36 +00:00
ec2_smpl.c Update copyright year 2021-03-11 13:27:36 +00:00
ec_ameth.c Make the EVP_PKEY_get0* functions have a const return type 2021-03-08 15:13:09 +00:00
ec_asn1.c Update copyright year 2021-03-11 13:27:36 +00:00
ec_backend.c Fix external symbols related to ec & sm2 keys 2021-02-26 10:53:01 +10:00
ec_check.c Update copyright year 2021-03-11 13:27:36 +00:00
ec_curve.c Update copyright year 2021-03-11 13:27:36 +00:00
ec_cvt.c Update copyright year 2021-03-11 13:27:36 +00:00
ec_deprecated.c Deprecate EC_POINT_bn2point and EC_POINT_point2bn. 2020-12-07 17:15:39 +10:00
ec_err.c
ec_key.c Fix external symbols related to ec & sm2 keys 2021-02-26 10:53:01 +10:00
ec_kmeth.c Update copyright year 2021-03-11 13:27:36 +00:00
ec_lib.c Fix external symbols related to ec & sm2 keys 2021-02-26 10:53:01 +10:00
ec_local.h Update copyright year 2021-03-11 13:27:36 +00:00
ec_mult.c Fix external symbols related to ec & sm2 keys 2021-02-26 10:53:01 +10:00
ec_oct.c Update copyright year 2021-03-11 13:27:36 +00:00
ec_pmeth.c Remove a TODO(3.0) from EVP_PKEY_derive_set_peer() 2021-03-17 09:56:33 +00:00
ec_print.c Deprecate EC_POINT_bn2point and EC_POINT_point2bn. 2020-12-07 17:15:39 +10:00
ecdh_kdf.c Update copyright year 2021-03-11 13:27:36 +00:00
ecdh_ossl.c Update copyright year 2021-03-11 13:27:36 +00:00
ecdsa_ossl.c Update copyright year 2021-03-11 13:27:36 +00:00
ecdsa_sign.c
ecdsa_vrf.c
eck_prn.c Update copyright year 2021-01-28 13:54:57 +01:00
ecp_mont.c Update copyright year 2021-03-11 13:27:36 +00:00
ecp_nist.c Update copyright year 2021-03-11 13:27:36 +00:00
ecp_nistp224.c Update copyright year 2021-03-11 13:27:36 +00:00
ecp_nistp256.c Update copyright year 2021-03-11 13:27:36 +00:00
ecp_nistp521.c Update copyright year 2021-03-11 13:27:36 +00:00
ecp_nistputil.c Update copyright year 2021-03-11 13:27:36 +00:00
ecp_nistz256_table.c
ecp_nistz256.c Update copyright year 2021-03-11 13:27:36 +00:00
ecp_oct.c Update copyright year 2021-03-11 13:27:36 +00:00
ecp_s390x_nistp.c Update copyright year 2021-03-11 13:27:36 +00:00
ecp_smpl.c Update copyright year 2021-03-11 13:27:36 +00:00
ecx_backend.c Update copyright year 2021-03-11 13:27:36 +00:00
ecx_backend.h
ecx_key.c Update copyright year 2021-03-11 13:27:36 +00:00
ecx_meth.c Remove a TODO(3.0) from EVP_PKEY_derive_set_peer() 2021-03-17 09:56:33 +00:00
ecx_s390x.c