openssl/crypto/dh
Shane Lontis 1c49be8673 Fix DH/DHX named groups to not overwrite the private key length.
The only reason(s) the DH private key length should be set are:
(1) The user sets it during key generation via EVP_PKEY_CTX_set_params
    using OSSL_PKEY_PARAM_DH_PRIV_LEN.
(2) When loading a PKCS3 (DH) key the optional value
    'privateValueLength' is set.

Now that the named groups contain a value for 'q' there is no reason to
automatically overwrite the private key length.

Issue detected by @davidmakepeace

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15695)
2021-06-14 09:21:12 +10:00
..
build.info
dh_ameth.c
dh_asn1.c
dh_backend.c
dh_check.c
dh_depr.c
dh_err.c err: rename err_load_xxx_strings_int functions 2021-05-26 13:01:47 +10:00
dh_gen.c
dh_group_params.c Fix DH/DHX named groups to not overwrite the private key length. 2021-06-14 09:21:12 +10:00
dh_kdf.c Rename all getters to use get/get0 in name 2021-06-01 12:40:00 +02:00
dh_key.c add zero strenght arguments to BN and RAND RNG calls 2021-05-29 17:17:12 +10:00
dh_lib.c
dh_local.h
dh_meth.c
dh_pmeth.c Rename all getters to use get/get0 in name 2021-06-01 12:40:00 +02:00
dh_prn.c
dh_rfc5114.c