1DSA_DUP_DH(3) OpenSSL DSA_DUP_DH(3)
2
3
4
6 DSA_dup_DH - create a DH structure out of DSA structure
7
9 #include <openssl/dsa.h>
10
11 DH *DSA_dup_DH(const DSA *r);
12
14 DSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. q is
15 lost during that conversion, but the resulting DH parameters contain
16 its length.
17
19 DSA_dup_DH() returns the new DH structure, and NULL on error. The error
20 codes can be obtained by ERR_get_error(3).
21
23 Be careful to avoid small subgroup attacks when using this.
24
26 DH_new(3), DSA_new(3), ERR_get_error(3)
27
29 Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
30
31 Licensed under the OpenSSL license (the "License"). You may not use
32 this file except in compliance with the License. You can obtain a copy
33 in the file LICENSE in the source distribution or at
34 <https://www.openssl.org/source/license.html>.
35
36
37
381.1.1g 2020-04-23 DSA_DUP_DH(3)