Index Index for
Section 3
Index Alphabetical
listing for D
Bottom of page Bottom of
page

DSA_dup_DH(3)

NAME

DSA_dup_DH - Create a DH structure out of DSA structure

SYNOPSIS

#include <openssl/dsa.h> DH * DSA_dup_DH( DSA *r );

DESCRIPTION

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

NOTES

Be careful to avoid small subgroup attacks when using this.

RETURN VALUE

The DSA_dup_DH() function returns the new DH structure, and NULL on error. The error codes can be obtained from ERR_get_error().

HISTORY

The DSA_dup_DH() function was added in OpenSSL 0.9.4.

SEE ALSO

Functions: dh(3), dsa(3), err(3)

Index Index for
Section 3
Index Alphabetical
listing for D
Top of page Top of
page