openssl/crypto/dsa
Shane Lontis 63794b048c Add multiple fixes for ffc key generation using invalid p,q,g parameters.
Fixes #11864

- The dsa keygen assumed valid p, q, g values were being passed. If this is not correct then it is
  possible that dsa keygen can either hang or segfault.
  The fix was to do a partial validation of p, q, and g inside the keygen.
- Fixed a potential double free in the dsa keypair test in the case when in failed (It should never fail!).
  It freed internal object members without setting them to NULL.
- Changed the FFC key validation to accept 1024 bit keys in non fips mode.
- Added tests that use both the default provider & fips provider to test these cases.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/12176)
2020-07-09 13:43:10 +10:00
..
build.info Use build.info, not ifdef for crypto modules 2020-04-16 13:52:22 +02:00
dsa_ameth.c Constify X509_PUBKEY_get(), X509_PUBKEY_get0(), and X509_PUBKEY_get0_param() 2020-05-26 09:35:05 +02:00
dsa_asn1.c Update copyright year 2020-04-23 13:55:52 +01:00
dsa_backend.c
dsa_check.c Add ACVP fips module tests 2020-06-17 11:33:16 +10:00
dsa_depr.c Update copyright year 2020-04-23 13:55:52 +01:00
dsa_err.c Generate error queue entry on FFC_CHECK_BAD_LN_PAIR for DH and DSA 2020-06-10 11:08:21 +02:00
dsa_gen.c Fix CID-1464802 2020-06-30 11:52:15 +10:00
dsa_key.c Add multiple fixes for ffc key generation using invalid p,q,g parameters. 2020-07-09 13:43:10 +10:00
dsa_lib.c Rename FIPS_MODE to FIPS_MODULE 2020-04-28 15:37:37 +02:00
dsa_local.h Rename FIPS_MODE to FIPS_MODULE 2020-04-28 15:37:37 +02:00
dsa_meth.c Update copyright year 2020-04-23 13:55:52 +01:00
dsa_ossl.c Rename FIPS_MODE to FIPS_MODULE 2020-04-28 15:37:37 +02:00
dsa_pmeth.c Add ACVP fips module tests 2020-06-17 11:33:16 +10:00
dsa_prn.c Update copyright year 2020-04-23 13:55:52 +01:00
dsa_sign.c Update copyright year 2020-04-23 13:55:52 +01:00
dsa_vrf.c Update copyright year 2020-04-23 13:55:52 +01:00