DH_size 3 2000-07-16 0.9.9-dev OpenSSL
NAME
DH_size - get Diffie-Hellman prime size
LIBRARY
libcrypto, -lcrypto
SYNOPSIS
#include
int DH_size(DH *dh);
DESCRIPTION
This function returns the Diffie-Hellman size in bytes. It can be used
to determine how much memory must be allocated for the shared secret
computed by _D_H___c_o_m_p_u_t_e___k_e_y_(_).
ddhh-->>pp must not be NNUULLLL.
RETURN VALUE
The size in bytes.
SEE ALSO
_o_p_e_n_s_s_l___d_h(3), _D_H___g_e_n_e_r_a_t_e___k_e_y(3)
HISTORY
_D_H___s_i_z_e_(_) is available in all versions of SSLeay and OpenSSL.