• Home
  • Raw
  • Download

Lines Matching refs:pmeth

96 			   pmeth);
105 pmeth);
129 const EVP_PKEY_METHOD *pmeth; in int_ctx_new() local
156 pmeth = ENGINE_get_pkey_meth(e, id); in int_ctx_new()
159 pmeth = EVP_PKEY_meth_find(id); in int_ctx_new()
161 if (pmeth == NULL) in int_ctx_new()
178 ret->pmeth = pmeth; in int_ctx_new()
187 if (pmeth->init) in int_ctx_new()
189 if (pmeth->init(ret) <= 0) in int_ctx_new()
201 EVP_PKEY_METHOD *pmeth; in EVP_PKEY_meth_new() local
202 pmeth = OPENSSL_malloc(sizeof(EVP_PKEY_METHOD)); in EVP_PKEY_meth_new()
203 if (!pmeth) in EVP_PKEY_meth_new()
206 pmeth->pkey_id = id; in EVP_PKEY_meth_new()
207 pmeth->flags = flags | EVP_PKEY_FLAG_DYNAMIC; in EVP_PKEY_meth_new()
209 pmeth->init = 0; in EVP_PKEY_meth_new()
210 pmeth->copy = 0; in EVP_PKEY_meth_new()
211 pmeth->cleanup = 0; in EVP_PKEY_meth_new()
212 pmeth->paramgen_init = 0; in EVP_PKEY_meth_new()
213 pmeth->paramgen = 0; in EVP_PKEY_meth_new()
214 pmeth->keygen_init = 0; in EVP_PKEY_meth_new()
215 pmeth->keygen = 0; in EVP_PKEY_meth_new()
216 pmeth->sign_init = 0; in EVP_PKEY_meth_new()
217 pmeth->sign = 0; in EVP_PKEY_meth_new()
218 pmeth->verify_init = 0; in EVP_PKEY_meth_new()
219 pmeth->verify = 0; in EVP_PKEY_meth_new()
220 pmeth->verify_recover_init = 0; in EVP_PKEY_meth_new()
221 pmeth->verify_recover = 0; in EVP_PKEY_meth_new()
222 pmeth->signctx_init = 0; in EVP_PKEY_meth_new()
223 pmeth->signctx = 0; in EVP_PKEY_meth_new()
224 pmeth->verifyctx_init = 0; in EVP_PKEY_meth_new()
225 pmeth->verifyctx = 0; in EVP_PKEY_meth_new()
226 pmeth->encrypt_init = 0; in EVP_PKEY_meth_new()
227 pmeth->encrypt = 0; in EVP_PKEY_meth_new()
228 pmeth->decrypt_init = 0; in EVP_PKEY_meth_new()
229 pmeth->decrypt = 0; in EVP_PKEY_meth_new()
230 pmeth->derive_init = 0; in EVP_PKEY_meth_new()
231 pmeth->derive = 0; in EVP_PKEY_meth_new()
232 pmeth->ctrl = 0; in EVP_PKEY_meth_new()
233 pmeth->ctrl_str = 0; in EVP_PKEY_meth_new()
235 return pmeth; in EVP_PKEY_meth_new()
238 void EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth) in EVP_PKEY_meth_free() argument
240 if (pmeth && (pmeth->flags & EVP_PKEY_FLAG_DYNAMIC)) in EVP_PKEY_meth_free()
241 OPENSSL_free(pmeth); in EVP_PKEY_meth_free()
257 if (!pctx->pmeth || !pctx->pmeth->copy) in EVP_PKEY_CTX_dup()
271 rctx->pmeth = pctx->pmeth; in EVP_PKEY_CTX_dup()
290 if (pctx->pmeth->copy(rctx, pctx) > 0) in EVP_PKEY_CTX_dup()
298 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth) in EVP_PKEY_meth_add0() argument
306 if (!sk_EVP_PKEY_METHOD_push(app_pkey_methods, pmeth)) in EVP_PKEY_meth_add0()
316 if (ctx->pmeth && ctx->pmeth->cleanup) in EVP_PKEY_CTX_free()
317 ctx->pmeth->cleanup(ctx); in EVP_PKEY_CTX_free()
335 if (!ctx || !ctx->pmeth || !ctx->pmeth->ctrl) in EVP_PKEY_CTX_ctrl()
340 if ((keytype != -1) && (ctx->pmeth->pkey_id != keytype)) in EVP_PKEY_CTX_ctrl()
355 ret = ctx->pmeth->ctrl(ctx, cmd, p1, p2); in EVP_PKEY_CTX_ctrl()
367 if (!ctx || !ctx->pmeth || !ctx->pmeth->ctrl_str) in EVP_PKEY_CTX_ctrl_str()
384 return ctx->pmeth->ctrl_str(ctx, name, value); in EVP_PKEY_CTX_ctrl_str()
428 void EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_init() argument
431 pmeth->init = init; in EVP_PKEY_meth_set_init()
434 void EVP_PKEY_meth_set_copy(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_copy() argument
437 pmeth->copy = copy; in EVP_PKEY_meth_set_copy()
440 void EVP_PKEY_meth_set_cleanup(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_cleanup() argument
443 pmeth->cleanup = cleanup; in EVP_PKEY_meth_set_cleanup()
446 void EVP_PKEY_meth_set_paramgen(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_paramgen() argument
450 pmeth->paramgen_init = paramgen_init; in EVP_PKEY_meth_set_paramgen()
451 pmeth->paramgen = paramgen; in EVP_PKEY_meth_set_paramgen()
454 void EVP_PKEY_meth_set_keygen(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_keygen() argument
458 pmeth->keygen_init = keygen_init; in EVP_PKEY_meth_set_keygen()
459 pmeth->keygen = keygen; in EVP_PKEY_meth_set_keygen()
462 void EVP_PKEY_meth_set_sign(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_sign() argument
467 pmeth->sign_init = sign_init; in EVP_PKEY_meth_set_sign()
468 pmeth->sign = sign; in EVP_PKEY_meth_set_sign()
471 void EVP_PKEY_meth_set_verify(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_verify() argument
476 pmeth->verify_init = verify_init; in EVP_PKEY_meth_set_verify()
477 pmeth->verify = verify; in EVP_PKEY_meth_set_verify()
480 void EVP_PKEY_meth_set_verify_recover(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_verify_recover() argument
486 pmeth->verify_recover_init = verify_recover_init; in EVP_PKEY_meth_set_verify_recover()
487 pmeth->verify_recover = verify_recover; in EVP_PKEY_meth_set_verify_recover()
490 void EVP_PKEY_meth_set_signctx(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_signctx() argument
495 pmeth->signctx_init = signctx_init; in EVP_PKEY_meth_set_signctx()
496 pmeth->signctx = signctx; in EVP_PKEY_meth_set_signctx()
499 void EVP_PKEY_meth_set_verifyctx(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_verifyctx() argument
504 pmeth->verifyctx_init = verifyctx_init; in EVP_PKEY_meth_set_verifyctx()
505 pmeth->verifyctx = verifyctx; in EVP_PKEY_meth_set_verifyctx()
508 void EVP_PKEY_meth_set_encrypt(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_encrypt() argument
513 pmeth->encrypt_init = encrypt_init; in EVP_PKEY_meth_set_encrypt()
514 pmeth->encrypt = encryptfn; in EVP_PKEY_meth_set_encrypt()
517 void EVP_PKEY_meth_set_decrypt(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_decrypt() argument
522 pmeth->decrypt_init = decrypt_init; in EVP_PKEY_meth_set_decrypt()
523 pmeth->decrypt = decrypt; in EVP_PKEY_meth_set_decrypt()
526 void EVP_PKEY_meth_set_derive(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_derive() argument
530 pmeth->derive_init = derive_init; in EVP_PKEY_meth_set_derive()
531 pmeth->derive = derive; in EVP_PKEY_meth_set_derive()
534 void EVP_PKEY_meth_set_ctrl(EVP_PKEY_METHOD *pmeth, in EVP_PKEY_meth_set_ctrl() argument
538 pmeth->ctrl = ctrl; in EVP_PKEY_meth_set_ctrl()
539 pmeth->ctrl_str = ctrl_str; in EVP_PKEY_meth_set_ctrl()