1D2I_DHPARAMS(3)                     OpenSSL                    D2I_DHPARAMS(3)
2
3
4

NAME

6       d2i_DHparams, i2d_DHparams - PKCS#3 DH parameter functions
7

SYNOPSIS

9        #include <openssl/dh.h>
10
11        DH *d2i_DHparams(DH **a, const unsigned char **pp, long length);
12        int i2d_DHparams(DH *a, unsigned char **pp);
13

DESCRIPTION

15       These functions decode and encode PKCS#3 DH parameters using the
16       DHparameter structure described in PKCS#3.
17
18       Otherwise these behave in a similar way to d2i_X509() and i2d_X509()
19       described in the d2i_X509(3) manual page.
20

RETURN VALUES

22       d2i_DHparams() returns a valid DH structure or NULL if an error
23       occurred.
24
25       i2d_DHparams() returns the length of encoded data on success or a value
26       which is less than or equal to 0 on error.
27

SEE ALSO

29       d2i_X509(3)
30
32       Copyright 2000-2020 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.1q                            2023-02-06                   D2I_DHPARAMS(3)
Impressum