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

NAME

6       DSA_dup_DH - create a DH structure out of DSA structure
7

SYNOPSIS

9        #include <openssl/dsa.h>
10
11       The following functions have been deprecated since OpenSSL 3.0, and can
12       be hidden entirely by defining OPENSSL_API_COMPAT with a suitable
13       version value, see openssl_user_macros(7):
14
15        DH *DSA_dup_DH(const DSA *r);
16

DESCRIPTION

18       The function described on this page is deprecated. There is no direct
19       replacement, applications should use the EVP_PKEY APIs for Diffie-
20       Hellman operations.
21
22       DSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. q is
23       lost during that conversion, but the resulting DH parameters contain
24       its length.
25

RETURN VALUES

27       DSA_dup_DH() returns the new DH structure, and NULL on error. The error
28       codes can be obtained by ERR_get_error(3).
29

NOTE

31       Be careful to avoid small subgroup attacks when using this.
32

SEE ALSO

34       DH_new(3), DSA_new(3), ERR_get_error(3)
35

HISTORY

37       This function was deprecated in OpenSSL 3.0.
38
40       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
41
42       Licensed under the Apache License 2.0 (the "License").  You may not use
43       this file except in compliance with the License.  You can obtain a copy
44       in the file LICENSE in the source distribution or at
45       <https://www.openssl.org/source/license.html>.
46
47
48
493.0.5                             2022-07-05                 DSA_DUP_DH(3ossl)
Impressum