/freebsd/crypto/openssl/crypto/evp/ |
H A D | pmeth_lib.c | 128 EVP_PKEY_METHOD *pmeth; in EVP_PKEY_meth_new() local 130 pmeth = OPENSSL_zalloc(sizeof(*pmeth)); in EVP_PKEY_meth_new() 131 if (pmeth == NULL) { in EVP_PKEY_meth_new() 136 pmeth->pkey_id = id; in EVP_PKEY_meth_new() 137 pmeth->flags = flags | EVP_PKEY_FLAG_DYNAMIC; in EVP_PKEY_meth_new() 138 return pmeth; in EVP_PKEY_meth_new() 187 const EVP_PKEY_METHOD *pmeth = NULL, *app_pmeth = NULL; in int_ctx_new() local 253 pmeth = ENGINE_get_pkey_meth(e, id); in int_ctx_new() 257 pmeth = EVP_PKEY_meth_find(id); in int_ctx_new() 259 app_pmeth = pmeth = evp_pkey_meth_find_added_by_application(id); in int_ctx_new() [all …]
|
H A D | m_sigver.c | 304 if (ctx->pctx->pmeth == NULL) { in do_sigver_init() 309 if (!(ctx->pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM)) { in do_sigver_init() 324 if (ctx->pctx->pmeth->verifyctx_init) { in do_sigver_init() 325 if (ctx->pctx->pmeth->verifyctx_init(ctx->pctx, ctx) <= 0) in do_sigver_init() 328 } else if (ctx->pctx->pmeth->digestverify != 0) { in do_sigver_init() 335 if (ctx->pctx->pmeth->signctx_init) { in do_sigver_init() 336 if (ctx->pctx->pmeth->signctx_init(ctx->pctx, ctx) <= 0) in do_sigver_init() 339 } else if (ctx->pctx->pmeth->digestsign != 0) { in do_sigver_init() 350 if (ctx->pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM) in do_sigver_init() 359 if (ctx->pctx->pmeth->digest_custom != NULL) in do_sigver_init() [all …]
|
H A D | signature.c | 574 if (ctx->pmeth == NULL in evp_pkey_signature_init() 575 || (operation == EVP_PKEY_OP_SIGN && ctx->pmeth->sign == NULL) in evp_pkey_signature_init() 576 || (operation == EVP_PKEY_OP_VERIFY && ctx->pmeth->verify == NULL) in evp_pkey_signature_init() 578 && ctx->pmeth->verify_recover == NULL)) { in evp_pkey_signature_init() 585 if (ctx->pmeth->sign_init == NULL) in evp_pkey_signature_init() 587 ret = ctx->pmeth->sign_init(ctx); in evp_pkey_signature_init() 590 if (ctx->pmeth->verify_init == NULL) in evp_pkey_signature_init() 592 ret = ctx->pmeth->verify_init(ctx); in evp_pkey_signature_init() 595 if (ctx->pmeth->verify_recover_init == NULL) in evp_pkey_signature_init() 597 ret = ctx->pmeth in evp_pkey_signature_init() [all...] |
H A D | exchange.c | 362 if (ctx->pmeth == NULL || ctx->pmeth->derive == NULL) { in EVP_PKEY_derive_init_ex() 367 if (ctx->pmeth->derive_init == NULL) in EVP_PKEY_derive_init_ex() 369 ret = ctx->pmeth->derive_init(ctx); in EVP_PKEY_derive_init_ex() 439 if (ctx->pmeth == NULL in EVP_PKEY_derive_set_peer_ex() 440 || !(ctx->pmeth->derive != NULL in EVP_PKEY_derive_set_peer_ex() 441 || ctx->pmeth->encrypt != NULL in EVP_PKEY_derive_set_peer_ex() 442 || ctx->pmeth->decrypt != NULL) in EVP_PKEY_derive_set_peer_ex() 443 || ctx->pmeth->ctrl == NULL) { in EVP_PKEY_derive_set_peer_ex() 454 ret = ctx->pmeth->ctrl(ctx, EVP_PKEY_CTRL_PEER_KEY, 0, peer); in EVP_PKEY_derive_set_peer_ex() 488 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 | 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 | 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 | 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 | 351 if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) { \
|
H A D | ctrl_params_translate.c | 2662 if (pctx->pmeth != NULL in evp_pkey_ctx_ctrl_to_param() 2663 && pctx->pmeth->pkey_id != translation->keytype1 in evp_pkey_ctx_ctrl_to_param() 2664 && 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 | 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()
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | evp.h | 1751 OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth); 1752 OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); 1753 OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_meth_remove(const EVP_PKEY_METHOD *pmeth); 1999 OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth, 2002 (EVP_PKEY_METHOD *pmeth, int (*copy) (EVP_PKEY_CTX *dst, 2005 (EVP_PKEY_METHOD *pmeth, void (*cleanup) (EVP_PKEY_CTX *ctx)); 2007 (EVP_PKEY_METHOD *pmeth, int (*paramgen_init) (EVP_PKEY_CTX *ctx), 2010 (EVP_PKEY_METHOD *pmeth, int (*keygen_init) (EVP_PKEY_CTX *ctx), 2013 (EVP_PKEY_METHOD *pmeth, int (*sign_init) (EVP_PKEY_CTX *ctx), 2017 (EVP_PKEY_METHOD *pmeth, int (*verify_init) (EVP_PKEY_CTX *ctx), [all …]
|
/freebsd/crypto/openssl/crypto/engine/ |
H A D | eng_openssl.c | 83 static int ossl_pkey_meths(ENGINE *e, EVP_PKEY_METHOD **pmeth, 635 static int ossl_pkey_meths(ENGINE *e, EVP_PKEY_METHOD **pmeth, in ossl_pkey_meths() argument 643 if (pmeth == NULL) { in ossl_pkey_meths() 649 *pmeth = ossl_hmac_meth; in ossl_pkey_meths() 653 *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, 434 static int dasync_pkey(ENGINE *e, EVP_PKEY_METHOD **pmeth, in dasync_pkey() argument 439 if (pmeth == NULL) { in dasync_pkey() 445 *pmeth = dasync_rsa; in dasync_pkey() 449 *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 | 714 ECX_KEY *ecx = ossl_ecx_key_op(NULL, NULL, 0, ctx->pmeth->pkey_id, in pkey_ecx_keygen() 718 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, ecx); in pkey_ecx_keygen() 970 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key); in s390x_pkey_ecx_keygen25519() 1012 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key); in s390x_pkey_ecx_keygen448() 1074 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, key); in s390x_pkey_ecd_keygen25519() 1149 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 | 733 if (ctx != NULL && ctx->pmeth != NULL in RSA_pkey_ctx_ctrl() 734 && ctx->pmeth->pkey_id != EVP_PKEY_RSA in RSA_pkey_ctx_ctrl() 735 && ctx->pmeth->pkey_id != EVP_PKEY_RSA_PSS) in RSA_pkey_ctx_ctrl()
|
H A D | rsa_pmeth.c | 780 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, rsa); in pkey_rsa_keygen()
|
/freebsd/crypto/openssl/crypto/dh/ |
H A D | dh_pmeth.c | 391 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, dh); in pkey_dh_keygen()
|
/freebsd/crypto/openssl/apps/ |
H A D | list.c | 1131 const EVP_PKEY_METHOD *pmeth = EVP_PKEY_meth_get0(i); in list_pkey_meth() local 1134 EVP_PKEY_meth_get0_info(&pkey_id, &pkey_flags, pmeth); in list_pkey_meth()
|