xref: /freebsd/crypto/openssl/doc/man3/DSA_dup_DH.pod (revision e71b70530d95c4f34d8bdbd78d1242df1ba4a945)
1*e71b7053SJung-uk Kim=pod
2*e71b7053SJung-uk Kim
3*e71b7053SJung-uk Kim=head1 NAME
4*e71b7053SJung-uk Kim
5*e71b7053SJung-uk KimDSA_dup_DH - create a DH structure out of DSA structure
6*e71b7053SJung-uk Kim
7*e71b7053SJung-uk Kim=head1 SYNOPSIS
8*e71b7053SJung-uk Kim
9*e71b7053SJung-uk Kim #include <openssl/dsa.h>
10*e71b7053SJung-uk Kim
11*e71b7053SJung-uk Kim DH *DSA_dup_DH(const DSA *r);
12*e71b7053SJung-uk Kim
13*e71b7053SJung-uk Kim=head1 DESCRIPTION
14*e71b7053SJung-uk Kim
15*e71b7053SJung-uk KimDSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. q
16*e71b7053SJung-uk Kimis lost during that conversion, but the resulting DH parameters
17*e71b7053SJung-uk Kimcontain its length.
18*e71b7053SJung-uk Kim
19*e71b7053SJung-uk Kim=head1 RETURN VALUES
20*e71b7053SJung-uk Kim
21*e71b7053SJung-uk KimDSA_dup_DH() returns the new B<DH> structure, and NULL on error. The
22*e71b7053SJung-uk Kimerror codes can be obtained by L<ERR_get_error(3)>.
23*e71b7053SJung-uk Kim
24*e71b7053SJung-uk Kim=head1 NOTE
25*e71b7053SJung-uk Kim
26*e71b7053SJung-uk KimBe careful to avoid small subgroup attacks when using this.
27*e71b7053SJung-uk Kim
28*e71b7053SJung-uk Kim=head1 SEE ALSO
29*e71b7053SJung-uk Kim
30*e71b7053SJung-uk KimL<DH_new(3)>, L<DSA_new(3)>, L<ERR_get_error(3)>
31*e71b7053SJung-uk Kim
32*e71b7053SJung-uk Kim=head1 COPYRIGHT
33*e71b7053SJung-uk Kim
34*e71b7053SJung-uk KimCopyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
35*e71b7053SJung-uk Kim
36*e71b7053SJung-uk KimLicensed under the OpenSSL license (the "License").  You may not use
37*e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
38*e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
39*e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
40*e71b7053SJung-uk Kim
41*e71b7053SJung-uk Kim=cut
42