NAME
DSAdupDH - create a DH structure out of DSA structure
SYNOPSIS
#include
DH * DSAdupDH(const DSA *r);DESCRIPTION
DSAdupDH() duplicates DSA parameters/keys as DH parameters/keys. q is lost during that conversion, but the resulting DH parameters contain its length. RREETTUURRNN VVAALLUUEE DSAdupDH() returns the new DDHH structure, and NULL on error. The error codes can be obtained by ERRgeterror(3). NNOOTTEE Be careful to avoid small subgroup attacks when using this.SEE ALSO
dh(3), dsa(3), ERRgeterror(3) HISTORY DSAdupDH() was added in OpenSSL 0.9.4.0.9.7l 2002-09-25 DSAdupDH(3)