3.2 EVP_PKEY_CTX和EVP_PKEY操作
EVP_PKEY_CTX_new
函 数 名: EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e);
功能描述: 创建EVP_PKEY_CTX
说 明: EVP_PKEY_CTX_new : return int_ctx_new(pkey, e, -1);
参数说明:
pkey (in) EVP_PKEY密钥
e (in) 引擎
返 回 值: EVP_PKEY_CTX [成功],NULL[失败]
EVP_PKEY_CTX_new_id
函 数 名: EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e);
功能描述: 创建EVP_PKEY_CTX
说 明: EVP_PKEY_CTX_new_id: return int_ctx_new(NULL, e, id);
参数说明:
pkey (in) EVP_PKEY密钥
id (in) 曲线ID
返 回 值: EVP_PKEY_CTX [成功],NULL[失败]
EVP_PKEY_CTX_free
函 数 名: void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx)
功能描述: 销毁EVP_PKEY_CTX
说 明: -
参数说明:
ctx (in) EVP_PKEY_CTX
返 回 值: 无
EVP_PKEY_new
函 数 名: EVP_PKEY *EVP_PKEY_new(void);
功能描述: 创建EVP_PKEY
说 明: -
参数说明:
无
返 回 值: EVP_PKEY [成功],NULL[失败]
EVP_PKEY_free
函 数 名: void EVP_PKEY_free(EVP_PKEY *pkey);
功能描述: 销毁EVP_PKEY
说 明: -
参数说明:
pkey (in) EVP_PKEY
返 回 值: 无