2000-01-28 03:31:26 +08:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
2000-02-24 19:55:57 +08:00
|
|
|
DSA_dup_DH - create a DH structure out of DSA structure
|
2000-01-28 03:31:26 +08:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
#include <openssl/dsa.h>
|
|
|
|
|
2002-08-06 00:27:01 +08:00
|
|
|
DH * DSA_dup_DH(const DSA *r);
|
2000-01-28 03:31:26 +08:00
|
|
|
|
|
|
|
=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.
|
|
|
|
|
|
|
|
=head1 RETURN VALUE
|
|
|
|
|
|
|
|
DSA_dup_DH() returns the new B<DH> structure, and NULL on error. The
|
2015-08-18 03:21:33 +08:00
|
|
|
error codes can be obtained by L<ERR_get_error(3)>.
|
2000-01-28 03:31:26 +08:00
|
|
|
|
2000-01-31 06:16:47 +08:00
|
|
|
=head1 NOTE
|
|
|
|
|
|
|
|
Be careful to avoid small subgroup attacks when using this.
|
|
|
|
|
2000-01-28 03:31:26 +08:00
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2015-08-18 03:21:33 +08:00
|
|
|
L<dh(3)>, L<dsa(3)>, L<ERR_get_error(3)>
|
2000-01-28 03:31:26 +08:00
|
|
|
|
|
|
|
=cut
|