summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2017-05-30 01:16:56 +0100
committerDr. Stephen Henson <steve@openssl.org>2017-10-12 02:40:30 +0100
commit7806a782c87f8ce07bc710f480a1db9511d11506 (patch)
treea92b88e3f08b1de3ebb66aad63ac05b6328ad8ee /include
parentf682bd60cf7af6d124c7c6df278964d90b025890 (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.h4
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,