2000-01-27 19:31:26 +00:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
2000-02-24 11:55:57 +00:00
|
|
|
DSA_dup_DH - create a DH structure out of DSA structure
|
2000-01-27 19:31:26 +00:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
#include <openssl/dsa.h>
|
|
|
|
|
2017-01-20 18:58:49 +00:00
|
|
|
DH *DSA_dup_DH(const DSA *r);
|
2000-01-27 19:31:26 +00: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.
|
|
|
|
|
2017-12-25 09:50:39 +00:00
|
|
|
=head1 RETURN VALUES
|
2000-01-27 19:31:26 +00:00
|
|
|
|
|
|
|
DSA_dup_DH() returns the new B<DH> structure, and NULL on error. The
|
2015-08-17 19:21:33 +00:00
|
|
|
error codes can be obtained by L<ERR_get_error(3)>.
|
2000-01-27 19:31:26 +00:00
|
|
|
|
2000-01-30 22:16:47 +00:00
|
|
|
=head1 NOTE
|
|
|
|
|
|
|
|
Be careful to avoid small subgroup attacks when using this.
|
|
|
|
|
2000-01-27 19:31:26 +00:00
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2016-11-11 08:33:09 +00:00
|
|
|
L<DH_new(3)>, L<DSA_new(3)>, L<ERR_get_error(3)>
|
2000-01-27 19:31:26 +00:00
|
|
|
|
2016-05-18 15:44:05 +00:00
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2018-01-15 17:01:46 +00:00
|
|
|
Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
|
2016-05-18 15:44:05 +00:00
|
|
|
|
2018-12-06 13:04:44 +00:00
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 15:44:05 +00:00
|
|
|
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
|