/openssl-master/demos/pkey/ |
A D | EVP_PKEY_EC_keygen.c | 40 EVP_PKEY_CTX *genctx = NULL; in do_ec_keygen() local 44 genctx = EVP_PKEY_CTX_new_from_name(libctx, "EC", propq); in do_ec_keygen() 45 if (genctx == NULL) { in do_ec_keygen() 50 if (EVP_PKEY_keygen_init(genctx) <= 0) { in do_ec_keygen() 64 if (!EVP_PKEY_CTX_set_params(genctx, params)) { in do_ec_keygen() 70 if (EVP_PKEY_generate(genctx, &key) <= 0) { in do_ec_keygen() 75 EVP_PKEY_CTX_free(genctx); in do_ec_keygen()
|
/openssl-master/providers/implementations/keymgmt/ |
A D | dh_kmgmt.c | 465 static int dh_gen_set_template(void *genctx, void *templ) in dh_gen_set_template() argument 467 struct dh_gen_ctx *gctx = genctx; in dh_gen_set_template() 493 struct dh_gen_ctx *gctx = genctx; in dh_gen_common_set_params() 567 struct dh_gen_ctx *gctx = genctx; in dhx_gen_set_params() 570 if (!dh_gen_common_set_params(genctx, params)) in dhx_gen_set_params() 621 struct dh_gen_ctx *gctx = genctx; in dh_gen_set_params() 624 if (!dh_gen_common_set_params(genctx, params)) in dh_gen_set_params() 660 struct dh_gen_ctx *gctx = genctx; in dh_gen() 716 BN_GENCB_set(gencb, dh_gencb, genctx); in dh_gen() 759 static void dh_gen_cleanup(void *genctx) in dh_gen_cleanup() argument [all …]
|
A D | mac_legacy_kmgmt.c | 418 static int mac_gen_set_params(void *genctx, const OSSL_PARAM params[]) in mac_gen_set_params() argument 420 struct mac_gen_ctx *gctx = genctx; in mac_gen_set_params() 444 static int cmac_gen_set_params(void *genctx, const OSSL_PARAM params[]) in cmac_gen_set_params() argument 446 struct mac_gen_ctx *gctx = genctx; in cmac_gen_set_params() 448 if (!mac_gen_set_params(genctx, params)) in cmac_gen_set_params() 460 static const OSSL_PARAM *mac_gen_settable_params(ossl_unused void *genctx, in mac_gen_settable_params() argument 470 static const OSSL_PARAM *cmac_gen_settable_params(ossl_unused void *genctx, in cmac_gen_settable_params() argument 481 static void *mac_gen(void *genctx, OSSL_CALLBACK *cb, void *cbarg) in mac_gen() argument 483 struct mac_gen_ctx *gctx = genctx; in mac_gen() 524 static void mac_gen_cleanup(void *genctx) in mac_gen_cleanup() argument [all …]
|
A D | dsa_kmgmt.c | 399 static int dsa_gen_set_template(void *genctx, void *templ) in dsa_gen_set_template() argument 401 struct dsa_gen_ctx *gctx = genctx; in dsa_gen_set_template() 425 static int dsa_gen_set_params(void *genctx, const OSSL_PARAM params[]) in dsa_gen_set_params() argument 427 struct dsa_gen_ctx *gctx = genctx; in dsa_gen_set_params() 488 static const OSSL_PARAM *dsa_gen_settable_params(ossl_unused void *genctx, in dsa_gen_settable_params() argument 517 static void *dsa_gen(void *genctx, OSSL_CALLBACK *osslcb, void *cbarg) in dsa_gen() argument 519 struct dsa_gen_ctx *gctx = genctx; in dsa_gen() 539 BN_GENCB_set(gencb, dsa_gencb, genctx); in dsa_gen() 588 static void dsa_gen_cleanup(void *genctx) in dsa_gen_cleanup() argument 590 struct dsa_gen_ctx *gctx = genctx; in dsa_gen_cleanup()
|
A D | ecx_kmgmt.c | 500 static int ecx_gen_set_params(void *genctx, const OSSL_PARAM params[]) in ecx_gen_set_params() argument 502 struct ecx_gen_ctx *gctx = genctx; in ecx_gen_set_params() 612 static void *x25519_gen(void *genctx, OSSL_CALLBACK *osslcb, void *cbarg) in x25519_gen() argument 614 struct ecx_gen_ctx *gctx = genctx; in x25519_gen() 626 static void *x448_gen(void *genctx, OSSL_CALLBACK *osslcb, void *cbarg) in x448_gen() argument 628 struct ecx_gen_ctx *gctx = genctx; in x448_gen() 642 struct ecx_gen_ctx *gctx = genctx; in ed25519_gen() 657 static void *ed448_gen(void *genctx, OSSL_CALLBACK *osslcb, void *cbarg) in ed448_gen() argument 659 struct ecx_gen_ctx *gctx = genctx; in ed448_gen() 673 static void ecx_gen_cleanup(void *genctx) in ecx_gen_cleanup() argument [all …]
|
A D | rsa_kmgmt.c | 469 static int rsa_gen_set_params(void *genctx, const OSSL_PARAM params[]) in rsa_gen_set_params() argument 471 struct rsa_gen_ctx *gctx = genctx; in rsa_gen_set_params() 520 static const OSSL_PARAM *rsa_gen_settable_params(ossl_unused void *genctx, in rsa_gen_settable_params() argument 531 static const OSSL_PARAM *rsapss_gen_settable_params(ossl_unused void *genctx, in rsapss_gen_settable_params() argument 543 static void *rsa_gen(void *genctx, OSSL_CALLBACK *osslcb, void *cbarg) in rsa_gen() argument 545 struct rsa_gen_ctx *gctx = genctx; in rsa_gen() 576 BN_GENCB_set(gencb, rsa_gencb, genctx); in rsa_gen() 605 static void rsa_gen_cleanup(void *genctx) in rsa_gen_cleanup() argument 607 struct rsa_gen_ctx *gctx = genctx; in rsa_gen_cleanup()
|
A D | ec_kmgmt.c | 1007 static int ec_gen_set_group(void *genctx, const EC_GROUP *src) in ec_gen_set_group() argument 1009 struct ec_gen_ctx *gctx = genctx; in ec_gen_set_group() 1022 static int ec_gen_set_template(void *genctx, void *templ) in ec_gen_set_template() argument 1024 struct ec_gen_ctx *gctx = genctx; in ec_gen_set_template() 1072 static int ec_gen_set_params(void *genctx, const OSSL_PARAM params[]) in ec_gen_set_params() argument 1075 struct ec_gen_ctx *gctx = genctx; in ec_gen_set_params() 1214 static void *ec_gen(void *genctx, OSSL_CALLBACK *osslcb, void *cbarg) in ec_gen() argument 1216 struct ec_gen_ctx *gctx = genctx; in ec_gen() 1272 struct ec_gen_ctx *gctx = genctx; in sm2_gen() 1317 static void ec_gen_cleanup(void *genctx) in ec_gen_cleanup() argument [all …]
|
/openssl-master/test/ |
A D | tls-provider.c | 341 void *genctx = NULL, *derivectx = NULL; in xor_encapsulate() local 359 if (genctx == NULL) in xor_encapsulate() 361 ourkey = xor_gen(genctx, NULL, NULL); in xor_encapsulate() 380 xor_gen_cleanup(genctx); in xor_encapsulate() 604 static int xor_gen_set_params(void *genctx, const OSSL_PARAM params[]) in xor_gen_set_params() argument 606 struct xor_gen_ctx *gctx = genctx; in xor_gen_set_params() 623 static const OSSL_PARAM *xor_gen_settable_params(ossl_unused void *genctx, in xor_gen_settable_params() argument 633 static void *xor_gen(void *genctx, OSSL_CALLBACK *osslcb, void *cbarg) in xor_gen() argument 635 struct xor_gen_ctx *gctx = genctx; in xor_gen() 732 static void xor_gen_cleanup(void *genctx) in xor_gen_cleanup() argument [all …]
|
A D | evp_test.c | 1280 EVP_PKEY_CTX *pctx = NULL, *genctx = NULL; in mac_test_run_pkey() local 1380 EVP_PKEY_CTX_free(genctx); in mac_test_run_pkey() 2918 EVP_PKEY_CTX *genctx; /* Keygen context to use */ member 2925 EVP_PKEY_CTX *genctx; in keygen_test_init() local 2938 if (!TEST_ptr(genctx = EVP_PKEY_CTX_new_from_name(libctx, alg, NULL))) in keygen_test_init() 2941 if (EVP_PKEY_keygen_init(genctx) <= 0) { in keygen_test_init() 2948 data->genctx = genctx; in keygen_test_init() 2955 EVP_PKEY_CTX_free(genctx); in keygen_test_init() 2963 EVP_PKEY_CTX_free(keygen->genctx); in keygen_test_cleanup() 2977 return pkey_test_ctrl(t, keygen->genctx, value); in keygen_test_parse() [all …]
|
/openssl-master/crypto/evp/ |
A D | keymgmt_meth.c | 339 int evp_keymgmt_gen_set_template(const EVP_KEYMGMT *keymgmt, void *genctx, in evp_keymgmt_gen_set_template() argument 350 return keymgmt->gen_set_template(genctx, template); in evp_keymgmt_gen_set_template() 353 int evp_keymgmt_gen_set_params(const EVP_KEYMGMT *keymgmt, void *genctx, in evp_keymgmt_gen_set_params() argument 358 return keymgmt->gen_set_params(genctx, params); in evp_keymgmt_gen_set_params() 370 void *evp_keymgmt_gen(const EVP_KEYMGMT *keymgmt, void *genctx, in evp_keymgmt_gen() argument 375 return keymgmt->gen(genctx, cb, cbarg); in evp_keymgmt_gen() 378 void evp_keymgmt_gen_cleanup(const EVP_KEYMGMT *keymgmt, void *genctx) in evp_keymgmt_gen_cleanup() argument 381 keymgmt->gen_cleanup(genctx); in evp_keymgmt_gen_cleanup()
|
A D | pmeth_gn.c | 40 ctx->op.keymgmt.genctx = in gen_init() 45 ctx->op.keymgmt.genctx = in gen_init() 51 if (ctx->op.keymgmt.genctx == NULL) in gen_init() 153 if (ctx->op.keymgmt.genctx == NULL) in EVP_PKEY_generate() 182 ctx->op.keymgmt.genctx, keydata); in EVP_PKEY_generate() 190 && (evp_keymgmt_util_gen(*ppkey, ctx->keymgmt, ctx->op.keymgmt.genctx, in EVP_PKEY_generate()
|
A D | keymgmt_lib.c | 507 void *genctx, OSSL_CALLBACK *cb, void *cbarg) in evp_keymgmt_util_gen() argument 511 if ((keydata = evp_keymgmt_gen(keymgmt, genctx, cb, cbarg)) == NULL in evp_keymgmt_util_gen()
|
A D | pmeth_lib.c | 172 && ctx->op.keymgmt.genctx != NULL) in evp_pkey_ctx_state() 405 if (ctx->op.keymgmt.genctx != NULL && ctx->keymgmt != NULL) in evp_pkey_ctx_free_old_ops() 406 evp_keymgmt_gen_cleanup(ctx->keymgmt, ctx->op.keymgmt.genctx); in evp_pkey_ctx_free_old_ops() 702 evp_keymgmt_gen_set_params(ctx->keymgmt, ctx->op.keymgmt.genctx, in EVP_PKEY_CTX_set_params() 827 return ctx->keymgmt->gen_settable_params(ctx->op.keymgmt.genctx, in EVP_PKEY_CTX_settable_params() 1177 return evp_pkey_ctx_set1_octet_string(ctx, ctx->op.keymgmt.genctx == NULL, in EVP_PKEY_CTX_set_mac_key()
|
A D | ctrl_params_translate.c | 434 && ctx->pctx->op.keymgmt.genctx == NULL) in default_fixup_args() 436 && ctx->pctx->op.keymgmt.genctx == NULL)) { in default_fixup_args()
|
/openssl-master/apps/ |
A D | req.c | 238 EVP_PKEY_CTX *genctx = NULL; in req_main() local 630 if (genctx == NULL) in req_main() 634 && (EVP_PKEY_CTX_is_a(genctx, "RSA") in req_main() 635 || EVP_PKEY_CTX_is_a(genctx, "RSA-PSS") in req_main() 643 && (EVP_PKEY_CTX_is_a(genctx, "RSA") in req_main() 651 if (EVP_PKEY_CTX_is_a(genctx, "DSA") in req_main() 670 EVP_PKEY_CTX_set_cb(genctx, genpkey_cb); in req_main() 671 EVP_PKEY_CTX_set_app_data(genctx, bio_err); in req_main() 675 EVP_PKEY_CTX_free(genctx); in req_main() 676 genctx = NULL; in req_main() [all …]
|
A D | speed.c | 1357 EVP_PKEY_CTX *genctx = NULL; in speed_main() local 2340 && init_gen_str(&genctx, "RSA", NULL, 0, NULL, NULL) in speed_main() 2341 && EVP_PKEY_CTX_set_rsa_keygen_bits(genctx, rsa_keys[testnum].bits) > 0 in speed_main() 2342 && EVP_PKEY_CTX_set1_rsa_keygen_pubexp(genctx, bn) > 0 in speed_main() 2343 && EVP_PKEY_CTX_set_rsa_keygen_primes(genctx, primes) > 0 in speed_main() 2344 && EVP_PKEY_keygen(genctx, &rsa_key); in speed_main() 2347 EVP_PKEY_CTX_free(genctx); in speed_main() 2348 genctx = NULL; in speed_main() 3283 EVP_PKEY_CTX_free(genctx); in speed_main()
|
/openssl-master/doc/man7/ |
A D | provider-keymgmt.pod | 24 int OSSL_FUNC_keymgmt_gen_set_template(void *genctx, void *template); 25 int OSSL_FUNC_keymgmt_gen_set_params(void *genctx, const OSSL_PARAM params[]); 26 const OSSL_PARAM *OSSL_FUNC_keymgmt_gen_settable_params(void *genctx, 28 void *OSSL_FUNC_keymgmt_gen(void *genctx, OSSL_CALLBACK *cb, void *cbarg); 29 void OSSL_FUNC_keymgmt_gen_cleanup(void *genctx); 230 I<genctx>. The I<template> is assumed to be a key object constructed 237 I<params> in the key object generation context I<genctx>. 249 generation context I<genctx>
|
/openssl-master/include/crypto/ |
A D | evp.h | 46 void *genctx; member 794 void *genctx, OSSL_CALLBACK *cb, void *cbarg); 812 int evp_keymgmt_gen_set_template(const EVP_KEYMGMT *keymgmt, void *genctx, 814 int evp_keymgmt_gen_set_params(const EVP_KEYMGMT *keymgmt, void *genctx, 816 void *evp_keymgmt_gen(const EVP_KEYMGMT *keymgmt, void *genctx, 818 void evp_keymgmt_gen_cleanup(const EVP_KEYMGMT *keymgmt, void *genctx);
|
/openssl-master/include/openssl/ |
A D | core_dispatch.h | 573 (void *genctx, void *templ)) 575 (void *genctx, const OSSL_PARAM params[])) 578 (void *genctx, void *provctx)) 580 (void *genctx, OSSL_CALLBACK *cb, void *cbarg)) 581 OSSL_CORE_MAKE_FUNC(void, keymgmt_gen_cleanup, (void *genctx))
|