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 or NID_ffdhe8192.
17
18       DH_get_nid() determines if the parameters contained in dh match any
19       named set. It returns the NID corresponding to the matching parameters
20       or NID_undef if there is no match.
21

RETURN VALUES

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