summaryrefslogtreecommitdiffstats
path: root/providers/implementations/encode_decode
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2021-06-10 18:14:03 +1000
committerShane Lontis <shane.lontis@oracle.com>2021-06-14 09:21:12 +1000
commit1c49be8673713d2ceb03a63be03531d9b28a46bd (patch)
tree03de6cf281166362041a4966ee5b6ebfdbb48b08 /providers/implementations/encode_decode
parent243af566e41e33e4ce2d3afa3e6a7383e20da737 (diff)
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)
Diffstat (limited to 'providers/implementations/encode_decode')
0 files changed, 0 insertions, 0 deletions