diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2017-05-30 01:16:56 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2017-10-12 02:40:30 +0100 |
commit | 7806a782c87f8ce07bc710f480a1db9511d11506 (patch) | |
tree | a92b88e3f08b1de3ebb66aad63ac05b6328ad8ee /include | |
parent | f682bd60cf7af6d124c7c6df278964d90b025890 (diff) |
DH named parameter support
Add functions to return DH parameters using NID and to return the
NID if parameters match a named set. Currently this supports only
RFC7919 parameters but could be expanded in future.
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4485)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/dh.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/openssl/dh.h b/include/openssl/dh.h index ebd936a90b..95c708188d 100644 --- a/include/openssl/dh.h +++ b/include/openssl/dh.h @@ -162,6 +162,10 @@ DH *DH_get_1024_160(void); DH *DH_get_2048_224(void); DH *DH_get_2048_256(void); +/* Named parameters, currently RFC7919 */ +DH *DH_new_by_nid(int nid); +int DH_get_nid(const DH *dh); + # ifndef OPENSSL_NO_CMS /* RFC2631 KDF */ int DH_KDF_X9_42(unsigned char *out, size_t outlen, |