Modify DSA and DH keys to use a shared FFC_PARAMS struct
authorShane Lontis <shane.lontis@oracle.com>
Fri, 24 Jan 2020 04:09:33 +0000 (14:09 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Fri, 24 Jan 2020 04:09:33 +0000 (14:09 +1000)
commitdc8de3e6f1eed18617dc42d41dec6c6566c2ac0c
tree5cf78a6ef780836f16831f2776c0dc155047d742
parent21d08b9ee9c0f7fabcad27b5d0b0c8c16f7dd1e9
Modify DSA and DH keys to use a shared FFC_PARAMS struct

This is required in order to share code for FIPS related parameter generation and validation routinues.
Note the 'counter' field is now stored as a integer (as that is the form required for generation/validation functions).

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10860)
22 files changed:
crypto/build.info
crypto/dh/dh_ameth.c
crypto/dh/dh_asn1.c
crypto/dh/dh_check.c
crypto/dh/dh_gen.c
crypto/dh/dh_key.c
crypto/dh/dh_lib.c
crypto/dh/dh_local.h
crypto/dh/dh_rfc5114.c
crypto/dh/dh_rfc7919.c
crypto/dsa/dsa_ameth.c
crypto/dsa/dsa_asn1.c
crypto/dsa/dsa_gen.c
crypto/dsa/dsa_key.c
crypto/dsa/dsa_lib.c
crypto/dsa/dsa_local.h
crypto/dsa/dsa_ossl.c
crypto/dsa/dsa_sign.c
crypto/ffc/build.info [new file with mode: 0644]
crypto/ffc/ffc_params.c [new file with mode: 0644]
include/crypto/dh.h
include/internal/ffc.h [new file with mode: 0644]