DH_size(3) OpenSSL DH_size(3) NNAAMMEE DH_size - get Diffie-Hellman prime size SSYYNNOOPPSSIISS #include int DH_size(DH *dh); DDEESSCCRRIIPPTTIIOONN 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. RREETTUURRNN VVAALLUUEE The size in bytes. SSEEEE AALLSSOO _d_h(3), _D_H___g_e_n_e_r_a_t_e___k_e_y(3) HHIISSTTOORRYY _D_H___s_i_z_e_(_) is available in all versions of SSLeay and OpenSSL. 1.0.1u 2016-09-22 DH_size(3)