openssl/include/internal
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 Following the license change, modify the boilerplates in include/ and crypto/include/ 2018-12-06 15:57:31 +01:00
__DECC_INCLUDE_PROLOGUE.H Following the license change, modify the boilerplates in include/ and crypto/include/ 2018-12-06 15:57:31 +01:00
bio.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
comp.h Following the license change, modify the boilerplates in include/ and crypto/include/ 2018-12-06 15:57:31 +01:00
conf.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
constant_time.h s390x assembly pack: process x25519 and x448 non-canonical values 2019-11-05 13:53:04 +01:00
core.h CORE: pass the full algorithm definition to the method constructor 2019-11-29 20:42:12 +01:00
cryptlib.h Put an error on the stack in the event of a fetch failure 2020-03-27 11:12:27 +00:00
dane.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
deprecated.h Deprecate the low level AES functions 2020-01-06 15:09:57 +00:00
der.h PROV: Add the beginning of a DER writing library 2020-04-07 11:16:56 +02:00
dso.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
dsoerr.h Update source files for deprecation at 3.0 2019-11-07 11:37:25 +01:00
err.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
evp.h EVP & TLS: Add necessary EC_KEY data extraction functions, and use them 2020-04-08 15:30:25 +02:00
ffc.h Fix DH_get_nid() so that it does not cache values. 2020-04-20 11:07:38 +10:00
ktls.h Add support for in-kernel TLS (KTLS) on FreeBSD. 2019-10-31 10:24:32 +00:00
namemap.h CORE: ossl_namemap_add_names(): new function to add multiple names 2019-11-29 20:42:12 +01:00
nelem.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
numbers.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
o_dir.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
packet.h Add "endfirst" writing to WPACKET 2020-04-04 10:35:09 +01:00
param_build_set.h Add EVP_PKEY_gettable_params support for accessing EVP_PKEY key data fields 2020-04-01 15:51:18 +10:00
property.h Redesign the KEYMGMT libcrypto <-> provider interface - the basics 2020-02-07 09:37:56 +01:00
propertyerr.h Fix some typos 2019-12-11 19:04:01 +01:00
provider.h Add FIPS Self test kats for digests 2020-01-15 10:48:01 +10:00
refcount.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
sha3.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
sizes.h PROV: Adapt the DSA signature implementation to provide Algorithmidentifiers 2020-01-28 08:08:22 +01:00
sm3.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
sockets.h add BIO_socket_wait(), BIO_wait(), and BIO_connect_retry() improving timeout support 2020-02-10 16:49:01 +01:00
sslconf.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
symhacks.h Rename provider and core get_param_types functions 2019-08-15 11:58:25 +02:00
thread_once.h Make sure we only run the self tests once 2019-11-29 16:14:44 +00:00
tsan_assist.h Fix Typos 2019-07-02 14:22:29 +02:00