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 Add AES_CBC_HMAC_SHA ciphers to providers. 2020-01-06 13:02:16 +10:00
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 RSA generation: Use more bits of 1/sqrt(2) 2019-11-09 16:01:54 +01:00
chacha.h
cmll_platform.h CRYPTO: split cipher_platform.h into algorithm specific headers 2019-12-19 13:31:29 +01:00
cms.h
cryptlib.h
ctype.h
des_platform.h CRYPTO: split cipher_platform.h into algorithm specific headers 2019-12-19 13:31:29 +01:00
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 Fix a bug for aarch64 BigEndian 2020-02-17 12:13:23 +10:00
objects.h
poly1305.h Add ChaCha related ciphers to default provider 2019-10-16 16:18:42 +10:00
rand.h Convert rand_bytes_ex and rand_priv_bytes_ex to public functions 2020-01-20 14:54:31 +00:00
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 SERIALIZER: New API for serialization of objects through providers 2019-11-29 20:54:48 +01:00
sha.h
siphash.h
siv.h
sm2.h
sm2err.h Update source files for deprecation at 3.0 2019-11-07 11:37:25 +01:00
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 x509v3 subjectSignTool extention support 2020-02-28 18:01:16 +03:00