RSA_new(3) OpenSSL RSA_new(3) NNAAMMEE RSA_new, RSA_free - allocate and free RSA objects SSYYNNOOPPSSIISS #include RSA * RSA_new(void); void RSA_free(RSA *rsa); DDEESSCCRRIIPPTTIIOONN _R_S_A___n_e_w_(_) allocates and initializes an RRSSAA structure. It is equivalent to calling RSA_new_method(NULL). _R_S_A___f_r_e_e_(_) frees the RRSSAA structure and its components. The key is erased before the memory is returned to the system. RREETTUURRNN VVAALLUUEESS If the allocation fails, _R_S_A___n_e_w_(_) returns NNUULLLL and sets an error code that can be obtained by _E_R_R___g_e_t___e_r_r_o_r(3). Otherwise it returns a pointer to the newly allocated structure. _R_S_A___f_r_e_e_(_) returns no value. SSEEEE AALLSSOO _E_R_R___g_e_t___e_r_r_o_r(3), _r_s_a(3), _R_S_A___g_e_n_e_r_a_t_e___k_e_y(3), _R_S_A___n_e_w___m_e_t_h_o_d(3) HHIISSTTOORRYY _R_S_A___n_e_w_(_) and _R_S_A___f_r_e_e_(_) are available in all versions of SSLeay and OpenSSL. 1.0.1u 2016-09-22 RSA_new(3)