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(3), dsa(3), ERR_get_error(3)
27
29 DSA_dup_DH() was added in OpenSSL 0.9.4.
30
31
32
331.0.2k 2017-01-26 DSA_dup_DH(3)