DSA_dup_DH.pod 948 字节
Newer Older
U
Ulf Möller 已提交
1 2 3 4
=pod

=head1 NAME

U
Ulf Möller 已提交
5
DSA_dup_DH - create a DH structure out of DSA structure
U
Ulf Möller 已提交
6 7 8 9 10

=head1 SYNOPSIS

 #include <openssl/dsa.h>

11
 DH *DSA_dup_DH(const DSA *r);
U
Ulf Möller 已提交
12 13 14 15 16 17 18

=head1 DESCRIPTION

DSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. q
is lost during that conversion, but the resulting DH parameters
contain its length.

19
=head1 RETURN VALUES
U
Ulf Möller 已提交
20 21

DSA_dup_DH() returns the new B<DH> structure, and NULL on error. The
R
Rich Salz 已提交
22
error codes can be obtained by L<ERR_get_error(3)>.
U
Ulf Möller 已提交
23

24 25 26 27
=head1 NOTE

Be careful to avoid small subgroup attacks when using this.

U
Ulf Möller 已提交
28 29
=head1 SEE ALSO

30
L<DH_new(3)>, L<DSA_new(3)>, L<ERR_get_error(3)>
U
Ulf Möller 已提交
31

R
Rich Salz 已提交
32 33
=head1 COPYRIGHT

34
Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
R
Rich Salz 已提交
35 36 37 38 39 40 41

Licensed under the OpenSSL license (the "License").  You may not use
this file except in compliance with the License.  You can obtain a copy
in the file LICENSE in the source distribution or at
L<https://www.openssl.org/source/license.html>.

=cut