1DH_GET_1024_160(3ossl)              OpenSSL             DH_GET_1024_160(3ossl)
2
3
4

NAME

6       DH_get_1024_160, DH_get_2048_224, DH_get_2048_256,
7       BN_get0_nist_prime_192, BN_get0_nist_prime_224, BN_get0_nist_prime_256,
8       BN_get0_nist_prime_384, BN_get0_nist_prime_521,
9       BN_get_rfc2409_prime_768, BN_get_rfc2409_prime_1024,
10       BN_get_rfc3526_prime_1536, BN_get_rfc3526_prime_2048,
11       BN_get_rfc3526_prime_3072, BN_get_rfc3526_prime_4096,
12       BN_get_rfc3526_prime_6144, BN_get_rfc3526_prime_8192 - Create
13       standardized public primes or DH pairs
14

SYNOPSIS

16        #include <openssl/dh.h>
17
18        const BIGNUM *BN_get0_nist_prime_192(void);
19        const BIGNUM *BN_get0_nist_prime_224(void);
20        const BIGNUM *BN_get0_nist_prime_256(void);
21        const BIGNUM *BN_get0_nist_prime_384(void);
22        const BIGNUM *BN_get0_nist_prime_521(void);
23
24        BIGNUM *BN_get_rfc2409_prime_768(BIGNUM *bn);
25        BIGNUM *BN_get_rfc2409_prime_1024(BIGNUM *bn);
26        BIGNUM *BN_get_rfc3526_prime_1536(BIGNUM *bn);
27        BIGNUM *BN_get_rfc3526_prime_2048(BIGNUM *bn);
28        BIGNUM *BN_get_rfc3526_prime_3072(BIGNUM *bn);
29        BIGNUM *BN_get_rfc3526_prime_4096(BIGNUM *bn);
30        BIGNUM *BN_get_rfc3526_prime_6144(BIGNUM *bn);
31        BIGNUM *BN_get_rfc3526_prime_8192(BIGNUM *bn);
32
33       The following functions have been deprecated since OpenSSL 3.0, and can
34       be hidden entirely by defining OPENSSL_API_COMPAT with a suitable
35       version value, see openssl_user_macros(7):
36
37        #include <openssl/dh.h>
38
39        DH *DH_get_1024_160(void);
40        DH *DH_get_2048_224(void);
41        DH *DH_get_2048_256(void);
42

DESCRIPTION

44       DH_get_1024_160(), DH_get_2048_224(), and DH_get_2048_256() each return
45       a DH object for the IETF RFC 5114 value. These functions are
46       deprecated.  Applications should instead use
47       EVP_PKEY_CTX_set_dh_rfc5114() and EVP_PKEY_CTX_set_dhx_rfc5114() as
48       described in EVP_PKEY_CTX_ctrl(3) or by setting the
49       OSSL_PKEY_PARAM_GROUP_NAME as specified in "DH parameters" in
50       EVP_PKEY-DH(7)) to one of "dh_1024_160", "dh_2048_224" or
51       "dh_2048_256".
52
53       BN_get0_nist_prime_192(), BN_get0_nist_prime_224(),
54       BN_get0_nist_prime_256(), BN_get0_nist_prime_384(), and
55       BN_get0_nist_prime_521() functions return a BIGNUM for the specific
56       NIST prime curve (e.g., P-256).
57
58       BN_get_rfc2409_prime_768(), BN_get_rfc2409_prime_1024(),
59       BN_get_rfc3526_prime_1536(), BN_get_rfc3526_prime_2048(),
60       BN_get_rfc3526_prime_3072(), BN_get_rfc3526_prime_4096(),
61       BN_get_rfc3526_prime_6144(), and BN_get_rfc3526_prime_8192() functions
62       return a BIGNUM for the specified size from IETF RFC 2409.  If bn is
63       not NULL, the BIGNUM will be set into that location as well.
64

RETURN VALUES

66       Defined above.
67

HISTORY

69       The functions DH_get_1024_160(), DH_get_2048_224() and
70       DH_get_2048_256() were deprecated in OpenSSL 3.0.
71
73       Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
74
75       Licensed under the Apache License 2.0 (the "License").  You may not use
76       this file except in compliance with the License.  You can obtain a copy
77       in the file LICENSE in the source distribution or at
78       <https://www.openssl.org/source/license.html>.
79
80
81
823.0.9                             2023-07-27            DH_GET_1024_160(3ossl)
Impressum