• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/openssl-1.0.0q/crypto/evp/

Lines Matching refs:pmeth

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