openssl/include/crypto
Shane Lontis 738ee1819e Fix DH_get_nid() so that it does not cache values.
DH_set0_pqg() is now responsible for caching the nid, q and length.

DH with or without named safe prime groups now default to using the maximum private key length (BN_num_bits(q) - 1)
when generating a DH private key. The code is now shared between fips and non fips mode for DH key generation.

The OSSL_PKEY_PARAM_DH_PRIV_LEN parameter can be used during keygen to override the maximum private key length to be
in the range (2 * strength ... bits(q) - 1). Where the strength depends on the length of p.

Added q = (p - 1) / 2 safe prime BIGNUMS so that the code is data driven (To simplify adding new names).
The BIGNUMS were code generated.

Fix error in documented return value for DH_get_nid

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11562)
2020-04-20 11:07:38 +10:00
..
__DECC_INCLUDE_EPILOGUE.H
__DECC_INCLUDE_PROLOGUE.H
aes_platform.h
aria.h
asn1_dsa.h
asn1.h Teach d2i_PrivateKey et al about libctx 2020-04-15 11:24:13 +01:00
async.h
bn_conf.h.in
bn_dh.h Fix DH_get_nid() so that it does not cache values. 2020-04-20 11:07:38 +10:00
bn_srp.h
bn.h
chacha.h
cmll_platform.h
cms.h
cryptlib.h
ctype.h
des_platform.h
dh.h Fix DH_get_nid() so that it does not cache values. 2020-04-20 11:07:38 +10:00
dsa.h Add DSA keygen to provider 2020-04-15 21:02:52 +10:00
dso_conf.h.in
ec.h EVP: Implement support for key downgrading in backends 2020-03-25 17:01:32 +01:00
ecx.h s390: ECX key generation fixes. 2020-04-17 19:51:37 +10:00
engine.h
err.h
ess.h
evp.h Teach d2i_PrivateKey et al about libctx 2020-04-15 11:24:13 +01:00
lhash.h
md32_common.h
modes.h
objects.h
poly1305.h
rand.h
rsa.h Add EVP_PKEY_gettable_params support for accessing EVP_PKEY key data fields 2020-04-01 15:51:18 +10:00
security_bits.h Change DH_get_nid() to set the value of q if it is not already set 2020-03-07 07:47:58 +10:00
serializer.h
sha.h
siphash.h
siv.h
sm2.h
sm2err.h
sm4.h
sparse_array.h
store.h Teach the OSSL_STORE code about libctx 2020-04-15 11:24:13 +01:00
x509.h Introduce an internal version of X509_check_issued() 2020-04-16 14:19:52 +01:00
x509v3.h