/openssl/crypto/evp/ |
H A D | pmeth_lib.c | 128 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 D | m_sigver.c | 297 if (ctx->pctx->pmeth == NULL) { in do_sigver_init() 317 if (ctx->pctx->pmeth->verifyctx_init) { in do_sigver_init() 328 if (ctx->pctx->pmeth->signctx_init) { in do_sigver_init() 332 } else if (ctx->pctx->pmeth->digestsign != 0) { in do_sigver_init() 352 if (ctx->pctx->pmeth->digest_custom != NULL) in do_sigver_init() 500 if (pctx == NULL || pctx->pmeth == NULL) { in EVP_DigestSignFinal() 526 if (pctx->pmeth->signctx != NULL) in EVP_DigestSignFinal() 597 if (ctx->pctx->pmeth != NULL && ctx->pctx->pmeth->digestsign != NULL) in EVP_DigestSign() 641 if (pctx == NULL || pctx->pmeth == NULL) { in EVP_DigestVerifyFinal() 652 if (pctx->pmeth->verifyctx != NULL) in EVP_DigestVerifyFinal() [all …]
|
H A D | pmeth_check.c | 67 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 D | exchange.c | 361 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 D | asymcipher.c | 188 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 D | pmeth_gn.c | 61 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 D | signature.c | 770 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 D | dh_ctrl.c | 28 && 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 D | dsa_ctrl.c | 25 if (ctx->pmeth != NULL && ctx->pmeth->pkey_id != EVP_PKEY_DSA) in dsa_paramgen_check()
|
H A D | ec_ctrl.c | 34 && ctx->pmeth != NULL && ctx->pmeth->pkey_id != EVP_PKEY_EC) in evp_pkey_ctx_getset_ecdh_param_checks()
|
H A D | evp_local.h | 356 if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) { \
|
H A D | ctrl_params_translate.c | 2730 if (pctx->pmeth != NULL in evp_pkey_ctx_ctrl_to_param() 2731 && pctx->pmeth->pkey_id != translation->keytype1 in evp_pkey_ctx_ctrl_to_param() 2732 && pctx->pmeth->pkey_id != translation->keytype2) in evp_pkey_ctx_ctrl_to_param()
|
/openssl/doc/man3/ |
H A D | EVP_PKEY_meth_new.pod | 39 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 D | pkey_meth_test.c | 61 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 D | enginetest.c | 203 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 D | evp.h | 2062 (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 D | eng_openssl.c | 83 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 D | e_dasync.c | 108 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 D | ecx_meth.c | 713 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 D | rsa_local.h | 152 #define pkey_ctx_is_pss(ctx) (ctx->pmeth->pkey_id == EVP_PKEY_RSA_PSS)
|
H A D | rsa_lib.c | 742 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 D | rsa_pmeth.c | 815 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, rsa); in pkey_rsa_keygen()
|
/openssl/crypto/dh/ |
H A D | dh_pmeth.c | 389 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, dh); in pkey_dh_keygen()
|
/openssl/apps/ |
H A D | list.c | 1181 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 D | evp.h | 123 const EVP_PKEY_METHOD *pmeth; member
|