DSA_dup_DH 3 2003-07-24 0.9.9-dev OpenSSL

NAME

DSA_dup_DH - create a DH structure out of DSA structure

LIBRARY

libcrypto, -lcrypto

SYNOPSIS


 #include 


 DH * DSA_dup_DH(const DSA *r);

DESCRIPTION

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

RETURN VALUE

_D_S_A___d_u_p___D_H_(_) returns the new DDHH structure, and NULL on error. The error codes can be obtained by _E_R_R___g_e_t___e_r_r_o_r(3).

NOTE

Be careful to avoid small subgroup attacks when using this.

SEE ALSO

_o_p_e_n_s_s_l___d_h(3), _o_p_e_n_s_s_l___d_s_a(3), _E_R_R___g_e_t___e_r_r_o_r(3)

HISTORY

_D_S_A___d_u_p___D_H_(_) was added in OpenSSL 0.9.4.