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

Lines Matching refs:pmeth

101                            pmeth);
110 pmeth);
134 const EVP_PKEY_METHOD *pmeth;
158 pmeth = ENGINE_get_pkey_meth(e, id);
161 pmeth = EVP_PKEY_meth_find(id);
163 if (pmeth == NULL) {
178 ret->pmeth = pmeth;
187 if (pmeth->init) {
188 if (pmeth->init(ret) <= 0) {
199 EVP_PKEY_METHOD *pmeth;
200 pmeth = OPENSSL_malloc(sizeof(EVP_PKEY_METHOD));
201 if (!pmeth)
204 memset(pmeth, 0, sizeof(EVP_PKEY_METHOD));
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;
288 void EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth)
290 if (pmeth && (pmeth->flags & EVP_PKEY_FLAG_DYNAMIC))
291 OPENSSL_free(pmeth);
307 if (!pctx->pmeth || !pctx->pmeth->copy)
320 rctx->pmeth = pctx->pmeth;
339 if (pctx->pmeth->copy(rctx, pctx) > 0)
347 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth)
354 if (!sk_EVP_PKEY_METHOD_push(app_pkey_methods, pmeth))
364 if (ctx->pmeth && ctx->pmeth->cleanup)
365 ctx->pmeth->cleanup(ctx);
385 if (!ctx || !ctx->pmeth || !ctx->pmeth->ctrl) {
389 if ((keytype != -1) && (ctx->pmeth->pkey_id != keytype))
402 ret = ctx->pmeth->ctrl(ctx, cmd, p1, p2);
414 if (!ctx || !ctx->pmeth || !ctx->pmeth->ctrl_str) {
426 return ctx->pmeth->ctrl_str(ctx, name, value);
470 void EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth,
473 pmeth->init = init;
476 void EVP_PKEY_meth_set_copy(EVP_PKEY_METHOD *pmeth,
480 pmeth->copy = copy;
483 void EVP_PKEY_meth_set_cleanup(EVP_PKEY_METHOD *pmeth,
486 pmeth->cleanup = cleanup;
489 void EVP_PKEY_meth_set_paramgen(EVP_PKEY_METHOD *pmeth,
494 pmeth->paramgen_init = paramgen_init;
495 pmeth->paramgen = paramgen;
498 void EVP_PKEY_meth_set_keygen(EVP_PKEY_METHOD *pmeth,
503 pmeth->keygen_init = keygen_init;
504 pmeth->keygen = keygen;
507 void EVP_PKEY_meth_set_sign(EVP_PKEY_METHOD *pmeth,
514 pmeth->sign_init = sign_init;
515 pmeth->sign = sign;
518 void EVP_PKEY_meth_set_verify(EVP_PKEY_METHOD *pmeth,
526 pmeth->verify_init = verify_init;
527 pmeth->verify = verify;
530 void EVP_PKEY_meth_set_verify_recover(EVP_PKEY_METHOD *pmeth,
542 pmeth->verify_recover_init = verify_recover_init;
543 pmeth->verify_recover = verify_recover;
546 void EVP_PKEY_meth_set_signctx(EVP_PKEY_METHOD *pmeth,
554 pmeth->signctx_init = signctx_init;
555 pmeth->signctx = signctx;
558 void EVP_PKEY_meth_set_verifyctx(EVP_PKEY_METHOD *pmeth,
566 pmeth->verifyctx_init = verifyctx_init;
567 pmeth->verifyctx = verifyctx;
570 void EVP_PKEY_meth_set_encrypt(EVP_PKEY_METHOD *pmeth,
578 pmeth->encrypt_init = encrypt_init;
579 pmeth->encrypt = encryptfn;
582 void EVP_PKEY_meth_set_decrypt(EVP_PKEY_METHOD *pmeth,
590 pmeth->decrypt_init = decrypt_init;
591 pmeth->decrypt = decrypt;
594 void EVP_PKEY_meth_set_derive(EVP_PKEY_METHOD *pmeth,
600 pmeth->derive_init = derive_init;
601 pmeth->derive = derive;
604 void EVP_PKEY_meth_set_ctrl(EVP_PKEY_METHOD *pmeth,
611 pmeth->ctrl = ctrl;
612 pmeth->ctrl_str = ctrl_str;