Home
last modified time | relevance | path

Searched refs:pmeth (Results 1 – 25 of 25) sorted by relevance

/openssl/crypto/evp/
H A Dpmeth_lib.c128 pmeth = OPENSSL_zalloc(sizeof(*pmeth)); in EVP_PKEY_meth_new()
129 if (pmeth == NULL) in EVP_PKEY_meth_new()
132 pmeth->pkey_id = id; in EVP_PKEY_meth_new()
134 return pmeth; in EVP_PKEY_meth_new()
322 ret->pmeth = pmeth; in int_ctx_new()
328 if (pmeth != NULL && pmeth->init != NULL) { in int_ctx_new()
391 if (ctx->pmeth && ctx->pmeth->cleanup) in EVP_PKEY_CTX_free()
435 if (pmeth && (pmeth->flags & EVP_PKEY_FLAG_DYNAMIC)) in EVP_PKEY_meth_free()
567 rctx->pmeth = pctx->pmeth; in EVP_PKEY_CTX_dup()
1301 if (ctx->pmeth == NULL || ctx->pmeth->digest_custom == NULL) { in evp_pkey_ctx_ctrl_int()
[all …]
H A Dm_sigver.c310 if (ctx->pctx->pmeth == NULL) { in do_sigver_init()
330 if (ctx->pctx->pmeth->verifyctx_init) { in do_sigver_init()
341 if (ctx->pctx->pmeth->signctx_init) { in do_sigver_init()
345 } else if (ctx->pctx->pmeth->digestsign != 0) { in do_sigver_init()
365 if (ctx->pctx->pmeth->digest_custom != NULL) in do_sigver_init()
538 if (pctx == NULL || pctx->pmeth == NULL) { in EVP_DigestSignFinal()
564 if (pctx->pmeth->signctx != NULL) in EVP_DigestSignFinal()
641 if (ctx->pctx->pmeth != NULL && ctx->pctx->pmeth->digestsign != NULL)
694 if (pctx == NULL || pctx->pmeth == NULL) { in EVP_DigestVerifyFinal()
705 if (pctx->pmeth->verifyctx != NULL) in EVP_DigestVerifyFinal()
[all …]
H A Dpmeth_check.c67 if (ctx->pmeth->public_check != NULL) in evp_pkey_public_check_combined()
68 return ctx->pmeth->public_check(pkey); in evp_pkey_public_check_combined()
112 if (ctx->pmeth->param_check != NULL) in evp_pkey_param_check_combined()
113 return ctx->pmeth->param_check(pkey); in evp_pkey_param_check_combined()
180 if (ctx->pmeth->check != NULL) in EVP_PKEY_pairwise_check()
181 return ctx->pmeth->check(pkey); in EVP_PKEY_pairwise_check()
H A Dexchange.c361 if (ctx->pmeth == NULL || ctx->pmeth->derive == NULL) { in EVP_PKEY_derive_init_ex()
366 if (ctx->pmeth->derive_init == NULL) in EVP_PKEY_derive_init_ex()
368 ret = ctx->pmeth->derive_init(ctx); in EVP_PKEY_derive_init_ex()
440 if (ctx->pmeth == NULL in EVP_PKEY_derive_set_peer_ex()
441 || !(ctx->pmeth->derive != NULL in EVP_PKEY_derive_set_peer_ex()
442 || ctx->pmeth->encrypt != NULL in EVP_PKEY_derive_set_peer_ex()
443 || ctx->pmeth->decrypt != NULL) in EVP_PKEY_derive_set_peer_ex()
444 || ctx->pmeth->ctrl == NULL) { in EVP_PKEY_derive_set_peer_ex()
455 ret = ctx->pmeth->ctrl(ctx, EVP_PKEY_CTRL_PEER_KEY, 0, peer); in EVP_PKEY_derive_set_peer_ex()
528 if (ctx->pmeth == NULL || ctx->pmeth->derive == NULL) { in EVP_PKEY_derive()
[all …]
H A Dasymcipher.c188 if (ctx->pmeth == NULL || ctx->pmeth->encrypt == NULL) { in evp_pkey_asym_cipher_init()
194 if (ctx->pmeth->encrypt_init == NULL) in evp_pkey_asym_cipher_init()
196 ret = ctx->pmeth->encrypt_init(ctx); in evp_pkey_asym_cipher_init()
199 if (ctx->pmeth->decrypt_init == NULL) in evp_pkey_asym_cipher_init()
201 ret = ctx->pmeth->decrypt_init(ctx); in evp_pkey_asym_cipher_init()
251 if (ctx->pmeth == NULL || ctx->pmeth->encrypt == NULL) { in EVP_PKEY_encrypt()
256 return ctx->pmeth->encrypt(ctx, out, outlen, in, inlen); in EVP_PKEY_encrypt()
293 if (ctx->pmeth == NULL || ctx->pmeth->decrypt == NULL) { in EVP_PKEY_decrypt()
298 return ctx->pmeth->decrypt(ctx, out, outlen, in, inlen); in EVP_PKEY_decrypt()
H A Dpmeth_gn.c61 if (ctx->pmeth == NULL in gen_init()
63 && ctx->pmeth->paramgen == NULL) in gen_init()
65 && ctx->pmeth->keygen == NULL)) in gen_init()
71 if (ctx->pmeth->paramgen_init != NULL) in gen_init()
72 ret = ctx->pmeth->paramgen_init(ctx); in gen_init()
75 if (ctx->pmeth->keygen_init != NULL) in gen_init()
76 ret = ctx->pmeth->keygen_init(ctx); in gen_init()
225 ret = ctx->pmeth->paramgen(ctx, *ppkey); in EVP_PKEY_generate()
228 ret = ctx->pmeth->keygen(ctx, *ppkey); in EVP_PKEY_generate()
H A Dsignature.c770 if (ctx->pmeth == NULL in evp_pkey_signature_init()
774 && ctx->pmeth->verify_recover == NULL)) { in evp_pkey_signature_init()
781 if (ctx->pmeth->sign_init == NULL) in evp_pkey_signature_init()
783 ret = ctx->pmeth->sign_init(ctx); in evp_pkey_signature_init()
786 if (ctx->pmeth->verify_init == NULL) in evp_pkey_signature_init()
788 ret = ctx->pmeth->verify_init(ctx); in evp_pkey_signature_init()
791 if (ctx->pmeth->verify_recover_init == NULL) in evp_pkey_signature_init()
793 ret = ctx->pmeth->verify_recover_init(ctx); in evp_pkey_signature_init()
914 if (ctx->pmeth == NULL || ctx->pmeth->sign == NULL) { in EVP_PKEY_sign()
1039 if (ctx->pmeth == NULL || ctx->pmeth->verify == NULL) { in EVP_PKEY_verify()
[all …]
H A Ddh_ctrl.c28 && ctx->pmeth->pkey_id != EVP_PKEY_DH in dh_paramgen_check()
29 && ctx->pmeth->pkey_id != EVP_PKEY_DHX) in dh_paramgen_check()
43 && ctx->pmeth->pkey_id != EVP_PKEY_DH in dh_param_derive_check()
44 && ctx->pmeth->pkey_id != EVP_PKEY_DHX) in dh_param_derive_check()
H A Ddsa_ctrl.c25 if (ctx->pmeth != NULL && ctx->pmeth->pkey_id != EVP_PKEY_DSA) in dsa_paramgen_check()
H A Dec_ctrl.c34 && ctx->pmeth != NULL && ctx->pmeth->pkey_id != EVP_PKEY_EC) in evp_pkey_ctx_getset_ecdh_param_checks()
H A Devp_local.h356 if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) { \
H A Dctrl_params_translate.c2726 if (pctx->pmeth != NULL in evp_pkey_ctx_ctrl_to_param()
2727 && pctx->pmeth->pkey_id != translation->keytype1 in evp_pkey_ctx_ctrl_to_param()
2728 && pctx->pmeth->pkey_id != translation->keytype2) in evp_pkey_ctx_ctrl_to_param()
/openssl/doc/man3/
H A DEVP_PKEY_meth_new.pod39 void EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth);
42 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth);
43 int EVP_PKEY_meth_remove(const EVP_PKEY_METHOD *pmeth);
45 void EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth,
47 void EVP_PKEY_meth_set_copy(EVP_PKEY_METHOD *pmeth,
50 void EVP_PKEY_meth_set_cleanup(EVP_PKEY_METHOD *pmeth,
56 void EVP_PKEY_meth_set_keygen(EVP_PKEY_METHOD *pmeth,
60 void EVP_PKEY_meth_set_sign(EVP_PKEY_METHOD *pmeth,
66 void EVP_PKEY_meth_set_verify(EVP_PKEY_METHOD *pmeth,
117 void EVP_PKEY_meth_set_ctrl(EVP_PKEY_METHOD *pmeth,
[all …]
/openssl/test/
H A Dpkey_meth_test.c61 const EVP_PKEY_METHOD *pmeth; in test_pkey_meths() local
64 pmeth = EVP_PKEY_meth_get0(i); in test_pkey_meths()
65 EVP_PKEY_meth_get0_info(&pkey_id, NULL, pmeth); in test_pkey_meths()
74 pmeth = EVP_PKEY_meth_get0(i); in test_pkey_meths()
75 EVP_PKEY_meth_get0_info(&pkey_id, NULL, pmeth); in test_pkey_meths()
H A Denginetest.c203 static int test_pkey_meths(ENGINE *e, EVP_PKEY_METHOD **pmeth, in test_pkey_meths() argument
207 if (pmeth == NULL) { in test_pkey_meths()
213 *pmeth = test_rsa; in test_pkey_meths()
217 *pmeth = NULL; in test_pkey_meths()
/openssl/include/openssl/
H A Devp.h2062 (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst,
2111 (EVP_PKEY_METHOD *pmeth,
2115 (EVP_PKEY_METHOD *pmeth,
2120 (EVP_PKEY_METHOD *pmeth, int (*check) (EVP_PKEY *pkey));
2150 (const EVP_PKEY_METHOD *pmeth,
2156 (const EVP_PKEY_METHOD *pmeth,
2161 (const EVP_PKEY_METHOD *pmeth,
2177 (const EVP_PKEY_METHOD *pmeth,
2182 (const EVP_PKEY_METHOD *pmeth,
2186 (const EVP_PKEY_METHOD *pmeth,
[all …]
/openssl/crypto/engine/
H A Deng_openssl.c83 static int ossl_pkey_meths(ENGINE *e, EVP_PKEY_METHOD **pmeth,
633 static int ossl_pkey_meths(ENGINE *e, EVP_PKEY_METHOD **pmeth, in ossl_pkey_meths() argument
641 if (pmeth == NULL) { in ossl_pkey_meths()
647 *pmeth = ossl_hmac_meth; in ossl_pkey_meths()
651 *pmeth = NULL; in ossl_pkey_meths()
/openssl/engines/
H A De_dasync.c108 static int dasync_pkey(ENGINE *e, EVP_PKEY_METHOD **pmeth,
433 static int dasync_pkey(ENGINE *e, EVP_PKEY_METHOD **pmeth, in dasync_pkey() argument
438 if (pmeth == NULL) { in dasync_pkey()
444 *pmeth = dasync_rsa; in dasync_pkey()
448 *pmeth = NULL; in dasync_pkey()
/openssl/crypto/ec/
H A Decx_meth.c713 ECX_KEY *ecx = ossl_ecx_key_op(NULL, NULL, 0, ctx->pmeth->pkey_id, in pkey_ecx_keygen()
717 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, ecx); in pkey_ecx_keygen()
973 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key); in s390x_pkey_ecx_keygen25519()
1015 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key); in s390x_pkey_ecx_keygen448()
1077 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key); in s390x_pkey_ecd_keygen25519()
1152 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key); in s390x_pkey_ecd_keygen448()
/openssl/crypto/rsa/
H A Drsa_local.h152 #define pkey_ctx_is_pss(ctx) (ctx->pmeth->pkey_id == EVP_PKEY_RSA_PSS)
H A Drsa_lib.c742 if (ctx != NULL && ctx->pmeth != NULL in RSA_pkey_ctx_ctrl()
743 && ctx->pmeth->pkey_id != EVP_PKEY_RSA in RSA_pkey_ctx_ctrl()
744 && ctx->pmeth->pkey_id != EVP_PKEY_RSA_PSS) in RSA_pkey_ctx_ctrl()
H A Drsa_pmeth.c815 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, rsa); in pkey_rsa_keygen()
/openssl/crypto/dh/
H A Ddh_pmeth.c389 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, dh); in pkey_dh_keygen()
/openssl/apps/
H A Dlist.c1181 const EVP_PKEY_METHOD *pmeth = EVP_PKEY_meth_get0(i); in list_pkey_meth() local
1184 EVP_PKEY_meth_get0_info(&pkey_id, &pkey_flags, pmeth); in list_pkey_meth()
/openssl/include/crypto/
H A Devp.h123 const EVP_PKEY_METHOD *pmeth; member

Completed in 163 milliseconds