openssl/providers
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
..
common PROV: Implement EC param / key generation 2020-04-15 11:03:59 +02:00
fips Add ECX to FIPS provider as non-FIPS algorithms 2020-04-17 19:51:37 +10:00
implementations Fix DH_get_nid() so that it does not cache values. 2020-04-20 11:07:38 +10:00
build.info Add a null provider which implements no algorithms. 2020-04-09 17:12:35 +10:00
defltprov.c Move legacy ciphers into the legacy provider 2020-04-09 12:47:46 +10:00
legacyprov.c Move legacy ciphers into the legacy provider 2020-04-09 12:47:46 +10:00
nullprov.c Add a null provider which implements no algorithms. 2020-04-09 17:12:35 +10:00