openssl/crypto/ec
Matt Caswell 50938aec35 Don't create an ECX key with short keys
If an ECX key is created and the private key is too short, a fromdata
call would create the key, and then later detect the error and report it
after freeing the key. However freeing the key was calling
OPENSSL_secure_clear_free() and assuming that the private key was of the
correct length. If it was actually too short this will write over memory
that it shouldn't.

Fixes #17017

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17041)
2021-11-16 13:21:06 +00:00
..
asm aarch64: support BTI and pointer authentication in assembly 2021-10-01 09:35:38 +02:00
curve448 Fix the parameter type of gf_serialize 2021-09-17 14:44:41 +02:00
build.info
curve25519.c
ec2_oct.c
ec2_smpl.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
ec_ameth.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
ec_asn1.c add checks for the return values of BN_new(), sk_RSA_PRIME_INFO_new_reserve(), 2021-10-27 08:36:55 +10:00
ec_backend.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
ec_check.c
ec_curve.c
ec_cvt.c
ec_deprecated.c Fix incorrect return check of BN_bn2binpad 2021-11-08 08:53:02 +10:00
ec_err.c
ec_key.c
ec_kmeth.c
ec_lib.c
ec_local.h
ec_mult.c
ec_oct.c
ec_pmeth.c
ec_print.c
ecdh_kdf.c
ecdh_ossl.c
ecdsa_ossl.c
ecdsa_sign.c
ecdsa_vrf.c
eck_prn.c
ecp_mont.c
ecp_nist.c
ecp_nistp224.c
ecp_nistp256.c
ecp_nistp521.c
ecp_nistputil.c
ecp_nistz256_table.c
ecp_nistz256.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
ecp_oct.c
ecp_ppc.c
ecp_s390x_nistp.c
ecp_smpl.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
ecx_backend.c Don't create an ECX key with short keys 2021-11-16 13:21:06 +00:00
ecx_backend.h
ecx_key.c
ecx_meth.c fix some code with obvious wrong coding style 2021-10-28 13:10:46 +10:00
ecx_s390x.c