EVP_PKEY_CTX_new(3) OpenSSL EVP_PKEY_CTX_new(3) NNAAMMEE EVP_PKEY_CTX_new, EVP_PKEY_CTX_new_id, EVP_PKEY_CTX_dup, EVP_PKEY_CTX_free - public key algorithm context functions. SSYYNNOOPPSSIISS #include EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e); EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e); EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx); void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx); DDEESSCCRRIIPPTTIIOONN The _E_V_P___P_K_E_Y___C_T_X___n_e_w_(_) function allocates public key algorithm context using the algorithm specified in ppkkeeyy and ENGINE ee. The _E_V_P___P_K_E_Y___C_T_X___n_e_w___i_d_(_) function allocates public key algorithm con- text using the algorithm specified by iidd and ENGINE ee. It is normally used when no EEVVPP__PPKKEEYY structure is associated with the operations, for example during parameter generation of key genration for some algo- rithms. _E_V_P___P_K_E_Y___C_T_X___d_u_p_(_) duplicates the context ccttxx. _E_V_P___P_K_E_Y___C_T_X___f_r_e_e_(_) frees up the context ccttxx. NNOOTTEESS The EEVVPP__PPKKEEYY__CCTTXX structure is an opaque public key algorithm context used by the OpenSSL high level public key API. Contexts MMUUSSTT NNOOTT be shared between threads: that is it is not permissible to use the same context simultaneously in two threads. RREETTUURRNN VVAALLUUEESS _E_V_P___P_K_E_Y___C_T_X___n_e_w_(_), _E_V_P___P_K_E_Y___C_T_X___n_e_w___i_d_(_), _E_V_P___P_K_E_Y___C_T_X___d_u_p_(_) returns either the newly allocated EEVVPP__PPKKEEYY__CCTTXX structure of NNUULLLL if an error occurred. _E_V_P___P_K_E_Y___C_T_X___f_r_e_e_(_) does not return a value. SSEEEE AALLSSOO _E_V_P___P_K_E_Y___n_e_w(3) HHIISSTTOORRYY These functions were first added to OpenSSL 1.0.0. 1.0.1u 2016-09-22 EVP_PKEY_CTX_new(3)