1DH_NEW_BY_NID(3)                    OpenSSL                   DH_NEW_BY_NID(3)
2
3
4

NAME

6       DH_new_by_nid, DH_get_nid - get or find DH named parameters
7

SYNOPSIS

9        #include <openssl/dh.h>
10        DH *DH_new_by_nid(int nid);
11        int DH_get_nid(const DH *dh);
12

DESCRIPTION

14       DH_new_by_nid() creates and returns a DH structure containing named
15       parameters nid. Currently nid must be NID_ffdhe2048, NID_ffdhe3072,
16       NID_ffdhe4096, NID_ffdhe6144, NID_ffdhe8192, NID_modp_1536,
17       NID_modp_2048, NID_modp_3072, NID_modp_4096, NID_modp_6144 or
18       NID_modp_8192.
19
20       DH_get_nid() determines if the parameters contained in dh match any
21       named set. It returns the NID corresponding to the matching parameters
22       or NID_undef if there is no match.
23

RETURN VALUES

25       DH_new_by_nid() returns a set of DH parameters or NULL if an error
26       occurred.
27
28       DH_get_nid() returns the NID of the matching set of parameters or
29       NID_undef if there is no match.
30
32       Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
33
34       Licensed under the OpenSSL license (the "License").  You may not use
35       this file except in compliance with the License.  You can obtain a copy
36       in the file LICENSE in the source distribution or at
37       <https://www.openssl.org/source/license.html>.
38
39
40
411.1.1i                            2021-01-26                  DH_NEW_BY_NID(3)
Impressum