DSA_dup_DH - Create a DH structure out of DSA structure
#include <openssl/dsa.h>
DH * DSA_dup_DH(
DSA *r );
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.
Be careful to avoid small subgroup attacks when using
this.
The DSA_dup_DH() function returns the new DH structure,
and NULL on error. The error codes can be obtained from
ERR_get_error().
The DSA_dup_DH() function was added in OpenSSL 0.9.4.
Functions: dh(3), dsa(3), err(3)
DSA_dup_DH(3)
[ Back ] |