Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-11-13 18:07:36 +0400
committerDr. Stephen Henson <steve@openssl.org>2011-11-13 18:07:36 +0400
commit20bee9684d5bf04193b298eb1e2dfd52ca232282 (patch)
treee953e11e5c9499c5a0fa1b36972585e468d5a230 /crypto/dh/dh.h
parent0c58d22ad99f548def13574af90087ebaa3e88f3 (diff)
Add RFC5114 DH parameters to OpenSSL. Add test data to dhtest.
Diffstat (limited to 'crypto/dh/dh.h')
-rw-r--r--crypto/dh/dh.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/dh/dh.h b/crypto/dh/dh.h
index e9f9a540b2..2929ebe21f 100644
--- a/crypto/dh/dh.h
+++ b/crypto/dh/dh.h
@@ -229,6 +229,11 @@ int DHparams_print(BIO *bp, const DH *x);
int DHparams_print(char *bp, const DH *x);
#endif
+/* RFC 5114 parameters */
+DH *DH_get_1024_160(void);
+DH *DH_get_2048_224(void);
+DH *DH_get_2048_256(void);
+
#define EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, len) \
EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \
EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN, len, NULL)