Lines Matching refs:pmeth

89   const EVP_PKEY_METHOD *pmeth;  in evp_pkey_ctx_new()  local
98 pmeth = evp_pkey_meth_find(id); in evp_pkey_ctx_new()
100 if (pmeth == NULL) { in evp_pkey_ctx_new()
114 ret->pmeth = pmeth; in evp_pkey_ctx_new()
122 if (pmeth->init) { in evp_pkey_ctx_new()
123 if (pmeth->init(ret) <= 0) { in evp_pkey_ctx_new()
145 if (ctx->pmeth && ctx->pmeth->cleanup) { in EVP_PKEY_CTX_free()
146 ctx->pmeth->cleanup(ctx); in EVP_PKEY_CTX_free()
154 if (!ctx->pmeth || !ctx->pmeth->copy) { in EVP_PKEY_CTX_dup()
165 ret->pmeth = ctx->pmeth; in EVP_PKEY_CTX_dup()
179 if (ctx->pmeth->copy(ret, ctx) <= 0) { in EVP_PKEY_CTX_dup()
180 ret->pmeth = NULL; in EVP_PKEY_CTX_dup()
193 if (!ctx || !ctx->pmeth || !ctx->pmeth->ctrl) { in EVP_PKEY_CTX_ctrl()
197 if (keytype != -1 && ctx->pmeth->pkey_id != keytype) { in EVP_PKEY_CTX_ctrl()
212 return ctx->pmeth->ctrl(ctx, cmd, p1, p2); in EVP_PKEY_CTX_ctrl()
216 if (ctx == NULL || ctx->pmeth == NULL || in EVP_PKEY_sign_init()
217 (ctx->pmeth->sign == NULL && ctx->pmeth->sign_message == NULL)) { in EVP_PKEY_sign_init()
228 if (!ctx || !ctx->pmeth || !ctx->pmeth->sign) { in EVP_PKEY_sign()
236 return ctx->pmeth->sign(ctx, sig, sig_len, digest, digest_len); in EVP_PKEY_sign()
240 if (ctx == NULL || ctx->pmeth == NULL || in EVP_PKEY_verify_init()
241 (ctx->pmeth->verify == NULL && ctx->pmeth->verify_message == NULL)) { in EVP_PKEY_verify_init()
251 if (!ctx || !ctx->pmeth || !ctx->pmeth->verify) { in EVP_PKEY_verify()
259 return ctx->pmeth->verify(ctx, sig, sig_len, digest, digest_len); in EVP_PKEY_verify()
263 if (!ctx || !ctx->pmeth || !ctx->pmeth->encrypt) { in EVP_PKEY_encrypt_init()
273 if (!ctx || !ctx->pmeth || !ctx->pmeth->encrypt) { in EVP_PKEY_encrypt()
281 return ctx->pmeth->encrypt(ctx, out, outlen, in, inlen); in EVP_PKEY_encrypt()
285 if (!ctx || !ctx->pmeth || !ctx->pmeth->decrypt) { in EVP_PKEY_decrypt_init()
295 if (!ctx || !ctx->pmeth || !ctx->pmeth->decrypt) { in EVP_PKEY_decrypt()
303 return ctx->pmeth->decrypt(ctx, out, outlen, in, inlen); in EVP_PKEY_decrypt()
307 if (!ctx || !ctx->pmeth || !ctx->pmeth->verify_recover) { in EVP_PKEY_verify_recover_init()
317 if (!ctx || !ctx->pmeth || !ctx->pmeth->verify_recover) { in EVP_PKEY_verify_recover()
325 return ctx->pmeth->verify_recover(ctx, out, out_len, sig, sig_len); in EVP_PKEY_verify_recover()
329 if (!ctx || !ctx->pmeth || !ctx->pmeth->derive) { in EVP_PKEY_derive_init()
339 if (!ctx || !ctx->pmeth || in EVP_PKEY_derive_set_peer()
340 !(ctx->pmeth->derive || ctx->pmeth->encrypt || ctx->pmeth->decrypt) || in EVP_PKEY_derive_set_peer()
341 !ctx->pmeth->ctrl) { in EVP_PKEY_derive_set_peer()
352 ret = ctx->pmeth->ctrl(ctx, EVP_PKEY_CTRL_PEER_KEY, 0, peer); in EVP_PKEY_derive_set_peer()
386 ret = ctx->pmeth->ctrl(ctx, EVP_PKEY_CTRL_PEER_KEY, 1, peer); in EVP_PKEY_derive_set_peer()
398 if (!ctx || !ctx->pmeth || !ctx->pmeth->derive) { in EVP_PKEY_derive()
406 return ctx->pmeth->derive(ctx, key, out_key_len); in EVP_PKEY_derive()
410 if (!ctx || !ctx->pmeth || !ctx->pmeth->keygen) { in EVP_PKEY_keygen_init()
419 if (!ctx || !ctx->pmeth || !ctx->pmeth->keygen) { in EVP_PKEY_keygen()
440 if (!ctx->pmeth->keygen(ctx, *out_pkey)) { in EVP_PKEY_keygen()
449 if (!ctx || !ctx->pmeth || !ctx->pmeth->paramgen) { in EVP_PKEY_paramgen_init()
458 if (!ctx || !ctx->pmeth || !ctx->pmeth->paramgen) { in EVP_PKEY_paramgen()
479 if (!ctx->pmeth->paramgen(ctx, *out_pkey)) { in EVP_PKEY_paramgen()