| /freebsd/crypto/openssl/crypto/evp/ |
| H A D | pmeth_lib.c | 126 EVP_PKEY_METHOD *pmeth; in EVP_PKEY_meth_new() local 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() 133 pmeth->flags = flags | EVP_PKEY_FLAG_DYNAMIC; in EVP_PKEY_meth_new() 134 return pmeth; in EVP_PKEY_meth_new() 165 const EVP_PKEY_METHOD *pmeth = NULL, *app_pmeth = NULL; in int_ctx_new() local 231 pmeth = ENGINE_get_pkey_meth(e, id); in int_ctx_new() 235 pmeth = EVP_PKEY_meth_find(id); in int_ctx_new() 237 app_pmeth = pmeth = evp_pkey_meth_find_added_by_application(id); in int_ctx_new() [all …]
|
| H A D | m_sigver.c | 302 if (ctx->pctx->pmeth == NULL) { in do_sigver_init() 307 if (!(ctx->pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM)) { in do_sigver_init() 322 if (ctx->pctx->pmeth->verifyctx_init) { in do_sigver_init() 323 if (ctx->pctx->pmeth->verifyctx_init(ctx->pctx, ctx) <= 0) in do_sigver_init() 326 } else if (ctx->pctx->pmeth->digestverify != 0) { in do_sigver_init() 333 if (ctx->pctx->pmeth->signctx_init) { in do_sigver_init() 334 if (ctx->pctx->pmeth->signctx_init(ctx->pctx, ctx) <= 0) in do_sigver_init() 337 } else if (ctx->pctx->pmeth->digestsign != 0) { in do_sigver_init() 348 if (ctx->pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM) in do_sigver_init() 357 if (ctx->pctx->pmeth->digest_custom != NULL) in do_sigver_init() [all …]
|
| H A D | exchange.c | 368 if (ctx->pmeth == NULL || ctx->pmeth->derive == NULL) { in EVP_PKEY_derive_init_ex() 373 if (ctx->pmeth->derive_init == NULL) in EVP_PKEY_derive_init_ex() 375 ret = ctx->pmeth->derive_init(ctx); in EVP_PKEY_derive_init_ex() 449 if (ctx->pmeth == NULL in EVP_PKEY_derive_set_peer_ex() 450 || !(ctx->pmeth->derive != NULL in EVP_PKEY_derive_set_peer_ex() 451 || ctx->pmeth->encrypt != NULL in EVP_PKEY_derive_set_peer_ex() 452 || ctx->pmeth->decrypt != NULL) in EVP_PKEY_derive_set_peer_ex() 453 || ctx->pmeth->ctrl == NULL) { in EVP_PKEY_derive_set_peer_ex() 464 ret = ctx->pmeth->ctrl(ctx, EVP_PKEY_CTRL_PEER_KEY, 0, peer); in EVP_PKEY_derive_set_peer_ex() 494 ret = ctx->pmeth->ctrl(ctx, EVP_PKEY_CTRL_PEER_KEY, 1, peer); in EVP_PKEY_derive_set_peer_ex() [all …]
|
| H A D | pmeth_check.c | 68 if (ctx->pmeth->public_check != NULL) in evp_pkey_public_check_combined() 69 return ctx->pmeth->public_check(pkey); in evp_pkey_public_check_combined() 114 if (ctx->pmeth->param_check != NULL) in evp_pkey_param_check_combined() 115 return ctx->pmeth->param_check(pkey); in evp_pkey_param_check_combined() 184 if (ctx->pmeth->check != NULL) in EVP_PKEY_pairwise_check() 185 return ctx->pmeth->check(pkey); in EVP_PKEY_pairwise_check()
|
| H A D | asymcipher.c | 201 if (ctx->pmeth == NULL || ctx->pmeth->encrypt == NULL) { in evp_pkey_asym_cipher_init() 207 if (ctx->pmeth->encrypt_init == NULL) in evp_pkey_asym_cipher_init() 209 ret = ctx->pmeth->encrypt_init(ctx); in evp_pkey_asym_cipher_init() 212 if (ctx->pmeth->decrypt_init == NULL) in evp_pkey_asym_cipher_init() 214 ret = ctx->pmeth->decrypt_init(ctx); in evp_pkey_asym_cipher_init() 272 if (ctx->pmeth == NULL || ctx->pmeth->encrypt == NULL) { in EVP_PKEY_encrypt() 276 …M_check_autoarg(ctx, out, outlen, EVP_F_EVP_PKEY_ENCRYPT) return ctx->pmeth->encrypt(ctx, out, out… in EVP_PKEY_encrypt() 322 if (ctx->pmeth == NULL || ctx->pmeth->decrypt == NULL) { in EVP_PKEY_decrypt() 326 …M_check_autoarg(ctx, out, outlen, EVP_F_EVP_PKEY_DECRYPT) return ctx->pmeth->decrypt(ctx, out, out… in EVP_PKEY_decrypt()
|
| H A D | pmeth_gn.c | 59 if (ctx->pmeth == NULL in gen_init() 61 && ctx->pmeth->paramgen == NULL) in gen_init() 63 && ctx->pmeth->keygen == NULL)) in gen_init() 69 if (ctx->pmeth->paramgen_init != NULL) in gen_init() 70 ret = ctx->pmeth->paramgen_init(ctx); in gen_init() 73 if (ctx->pmeth->keygen_init != NULL) in gen_init() 74 ret = ctx->pmeth->keygen_init(ctx); in gen_init() 222 ret = ctx->pmeth->paramgen(ctx, *ppkey); in EVP_PKEY_generate() 225 ret = ctx->pmeth->keygen(ctx, *ppkey); in EVP_PKEY_generate()
|
| H A D | signature.c | 855 if (ctx->pmeth == NULL in evp_pkey_signature_init() 856 || (operation == EVP_PKEY_OP_SIGN && ctx->pmeth->sign == NULL) in evp_pkey_signature_init() 857 || (operation == EVP_PKEY_OP_VERIFY && ctx->pmeth->verify == NULL) in evp_pkey_signature_init() 859 && ctx->pmeth->verify_recover == NULL)) { in evp_pkey_signature_init() 866 if (ctx->pmeth->sign_init == NULL) in evp_pkey_signature_init() 868 ret = ctx->pmeth->sign_init(ctx); in evp_pkey_signature_init() 871 if (ctx->pmeth->verify_init == NULL) in evp_pkey_signature_init() 873 ret = ctx->pmeth->verify_init(ctx); in evp_pkey_signature_init() 876 if (ctx->pmeth->verify_recover_init == NULL) in evp_pkey_signature_init() 878 ret = ctx->pmeth->verify_recover_init(ctx); in evp_pkey_signature_init() [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 | 33 && ctx->pmeth != NULL && ctx->pmeth->pkey_id != EVP_PKEY_EC) in evp_pkey_ctx_getset_ecdh_param_checks()
|
| H A D | evp_local.h | 388 if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) { \
|
| H A D | ctrl_params_translate.c | 2720 if (pctx->pmeth != NULL in evp_pkey_ctx_ctrl_to_param() 2721 && pctx->pmeth->pkey_id != translation->keytype1 in evp_pkey_ctx_ctrl_to_param() 2722 && pctx->pmeth->pkey_id != translation->keytype2) in evp_pkey_ctx_ctrl_to_param()
|
| /freebsd/crypto/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, 52 void EVP_PKEY_meth_set_paramgen(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, [all …]
|
| /freebsd/crypto/openssl/test/ |
| H A D | pkey_meth_test.c | 60 const EVP_PKEY_METHOD *pmeth; in test_pkey_meths() local 63 pmeth = EVP_PKEY_meth_get0(i); in test_pkey_meths() 64 EVP_PKEY_meth_get0_info(&pkey_id, NULL, pmeth); in test_pkey_meths() 72 pmeth = EVP_PKEY_meth_get0(i); in test_pkey_meths() 73 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()
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | evp.h | 1812 OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth); 1813 OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); 1814 OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_remove(const EVP_PKEY_METHOD *pmeth); 2107 OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth, 2109 OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy(EVP_PKEY_METHOD *pmeth, int (*copy)(EVP_PKEY_CTX … 2110 OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_cleanup(EVP_PKEY_METHOD *pmeth, void (*cleanup)(EVP_PK… 2111 OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_paramgen(EVP_PKEY_METHOD *pmeth, int (*paramgen_init)(… 2113 OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_keygen(EVP_PKEY_METHOD *pmeth, int (*keygen_init)(EVP_… 2115 OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_sign(EVP_PKEY_METHOD *pmeth, int (*sign_init)(EVP_PKEY… 2118 OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_verify(EVP_PKEY_METHOD *pmeth, int (*verify_init)(EVP_… [all …]
|
| /freebsd/crypto/openssl/crypto/engine/ |
| H A D | eng_openssl.c | 83 static int ossl_pkey_meths(ENGINE *e, EVP_PKEY_METHOD **pmeth, 638 static int ossl_pkey_meths(ENGINE *e, EVP_PKEY_METHOD **pmeth, in ossl_pkey_meths() argument 646 if (pmeth == NULL) { in ossl_pkey_meths() 652 *pmeth = ossl_hmac_meth; in ossl_pkey_meths() 656 *pmeth = NULL; in ossl_pkey_meths()
|
| /freebsd/crypto/openssl/engines/ |
| H A D | e_dasync.c | 108 static int dasync_pkey(ENGINE *e, EVP_PKEY_METHOD **pmeth, 432 static int dasync_pkey(ENGINE *e, EVP_PKEY_METHOD **pmeth, in dasync_pkey() argument 437 if (pmeth == NULL) { in dasync_pkey() 443 *pmeth = dasync_rsa; in dasync_pkey() 447 *pmeth = NULL; in dasync_pkey()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
| H A D | ScriptInterpreterPython.cpp | 2825 PythonObject pmeth(PyRefType::Owned, in GetFlagsForCommandObject() local 2831 if (!pmeth.IsAllocated()) in GetFlagsForCommandObject() 2834 if (PyCallable_Check(pmeth.get()) == 0) { in GetFlagsForCommandObject() 2875 PythonObject pmeth(PyRefType::Owned, in GetOptionsForCommandObject() local 2881 if (!pmeth.IsAllocated()) in GetOptionsForCommandObject() 2884 if (PyCallable_Check(pmeth.get()) == 0) { in GetOptionsForCommandObject() 2923 PythonObject pmeth(PyRefType::Owned, in GetArgumentsForCommandObject() local 2929 if (!pmeth.IsAllocated()) in GetArgumentsForCommandObject() 2932 if (PyCallable_Check(pmeth.get()) == 0) { in GetArgumentsForCommandObject() 2970 PythonObject pmeth(PyRefType::Owned, in OptionParsingStartedForCommandObject() local [all …]
|
| /freebsd/crypto/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() 975 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key); in s390x_pkey_ecx_keygen25519() 1017 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key); in s390x_pkey_ecx_keygen448() 1109 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key); in s390x_pkey_ecd_keygen25519() 1185 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key); in s390x_pkey_ecd_keygen448()
|
| /freebsd/crypto/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 | 740 if (ctx != NULL && ctx->pmeth != NULL in RSA_pkey_ctx_ctrl() 741 && ctx->pmeth->pkey_id != EVP_PKEY_RSA in RSA_pkey_ctx_ctrl() 742 && ctx->pmeth->pkey_id != EVP_PKEY_RSA_PSS) in RSA_pkey_ctx_ctrl()
|
| H A D | rsa_pmeth.c | 810 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, rsa); in pkey_rsa_keygen()
|
| /freebsd/crypto/openssl/crypto/dh/ |
| H A D | dh_pmeth.c | 387 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, dh); in pkey_dh_keygen()
|
| /freebsd/crypto/openssl/apps/ |
| H A D | list.c | 1284 const EVP_PKEY_METHOD *pmeth = EVP_PKEY_meth_get0(i); in list_pkey_meth() local 1287 EVP_PKEY_meth_get0_info(&pkey_id, &pkey_flags, pmeth); in list_pkey_meth()
|