Home
last modified time | relevance | path

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

123

/openssl/crypto/evp/
H A Dkeymgmt_meth.c22 EVP_KEYMGMT *keymgmt = NULL; in keymgmt_new() local
24 if ((keymgmt = OPENSSL_zalloc(sizeof(*keymgmt))) == NULL) in keymgmt_new()
30 return keymgmt; in keymgmt_new()
253 keymgmt->prov = prov; in keymgmt_from_algorithm()
258 keymgmt->legacy_alg = get_legacy_alg_type_from_keymgmt(keymgmt); in keymgmt_from_algorithm()
261 return keymgmt; in keymgmt_from_algorithm()
296 if (keymgmt == NULL) in EVP_KEYMGMT_free()
310 return keymgmt->prov; in EVP_KEYMGMT_get0_provider()
336 && evp_is_a(keymgmt->prov, keymgmt->name_id, NULL, name); in EVP_KEYMGMT_is_a()
355 return evp_names_do_all(keymgmt->prov, keymgmt->name_id, fn, data); in EVP_KEYMGMT_names_do_all()
[all …]
H A Dkeymgmt_lib.c77 if (keymgmt == NULL in evp_keymgmt_util_make_pkey()
103 if (keymgmt == NULL) in evp_keymgmt_util_export_to_provider()
117 if (pk->keymgmt == keymgmt in evp_keymgmt_util_export_to_provider()
118 || (pk->keymgmt->name_id == keymgmt->name_id in evp_keymgmt_util_export_to_provider()
119 && pk->keymgmt->prov == keymgmt->prov)) in evp_keymgmt_util_export_to_provider()
149 if (!ossl_assert(match_type(pk->keymgmt, keymgmt))) in evp_keymgmt_util_export_to_provider()
160 import_data.keymgmt = keymgmt; in evp_keymgmt_util_export_to_provider()
248 && (keymgmt == p->keymgmt in evp_keymgmt_util_find_operation_cache()
249 || (keymgmt->name_id == p->keymgmt->name_id in evp_keymgmt_util_find_operation_cache()
250 && keymgmt->prov == p->keymgmt->prov))) in evp_keymgmt_util_find_operation_cache()
[all …]
H A Dpmeth_gn.c35 if (ctx->keymgmt == NULL || ctx->keymgmt->gen_init == NULL) in gen_init()
40 ctx->op.keymgmt.genctx = in gen_init()
41 evp_keymgmt_gen_init(ctx->keymgmt, in gen_init()
45 ctx->op.keymgmt.genctx = in gen_init()
51 if (ctx->op.keymgmt.genctx == NULL) in gen_init()
152 if (ctx->op.keymgmt.genctx == NULL) in EVP_PKEY_generate()
169 EVP_KEYMGMT *tmp_keymgmt = ctx->keymgmt; in EVP_PKEY_generate()
180 ret = evp_keymgmt_gen_set_template(ctx->keymgmt, in EVP_PKEY_generate()
189 && (evp_keymgmt_util_gen(*ppkey, ctx->keymgmt, ctx->op.keymgmt.genctx, in EVP_PKEY_generate()
345 if (ctx->keymgmt == NULL) in fromdata_init()
[all …]
H A Dp_lib.c187 if (to->keymgmt != NULL && from->keymgmt != NULL) { in EVP_PKEY_copy_parameters()
272 keymgmt1 = a->keymgmt; in evp_pkey_cmp_any()
274 keymgmt2 = b->keymgmt; in evp_pkey_cmp_any()
319 if (a->keymgmt != NULL || b->keymgmt != NULL) in EVP_PKEY_parameters_eq()
350 if (a->keymgmt != NULL || b->keymgmt != NULL) { in EVP_PKEY_eq()
1570 if (keymgmt != NULL && !EVP_KEYMGMT_up_ref(keymgmt)) { in pkey_set_type()
1575 pkey->keymgmt = keymgmt; in pkey_set_type()
1781 x->keymgmt = NULL; in evp_pkey_free_it()
1876 if (keymgmt != NULL) { in evp_pkey_export_to_provider()
1878 *keymgmt = NULL; in evp_pkey_export_to_provider()
[all …]
H A Dpmeth_lib.c166 EVP_KEYMGMT *keymgmt = NULL; in int_ctx_new() local
257 keymgmt = pkey->keymgmt; in int_ctx_new()
261 if (keymgmt == NULL) in int_ctx_new()
272 if (keymgmt != NULL) { in int_ctx_new()
319 ret->keymgmt = keymgmt; in int_ctx_new()
382 if (ctx->op.keymgmt.genctx != NULL && ctx->keymgmt != NULL) in evp_pkey_ctx_free_old_ops()
383 evp_keymgmt_gen_cleanup(ctx->keymgmt, ctx->op.keymgmt.genctx); in evp_pkey_ctx_free_old_ops()
689 evp_keymgmt_gen_set_params(ctx->keymgmt, ctx->op.keymgmt.genctx, in EVP_PKEY_CTX_set_params()
739 evp_keymgmt_gen_get_params(ctx->keymgmt, ctx->op.keymgmt.genctx, in EVP_PKEY_CTX_get_params()
790 return ctx->keymgmt->gen_gettable_params(ctx->op.keymgmt.genctx, in EVP_PKEY_CTX_gettable_params()
[all …]
H A Dpmeth_check.c30 EVP_KEYMGMT *keymgmt; in try_provided_check() local
36 keymgmt = ctx->keymgmt; in try_provided_check()
38 &keymgmt, ctx->propquery); in try_provided_check()
44 return evp_keymgmt_validate(keymgmt, keydata, selection, checktype); in try_provided_check()
H A Dexchange.c226 || !EVP_PKEY_set_type_by_keymgmt(pkey, ctx->keymgmt) in EVP_PKEY_derive_init_ex()
227 || (pkey->keydata = evp_keymgmt_newdata(ctx->keymgmt)) == NULL) { in EVP_PKEY_derive_init_ex()
239 if (!ossl_assert(ctx->pkey->keymgmt == NULL in EVP_PKEY_derive_init_ex()
240 || ctx->pkey->keymgmt == ctx->keymgmt)) { in EVP_PKEY_derive_init_ex()
245 supported_exch = evp_keymgmt_util_query_operation_name(ctx->keymgmt, in EVP_PKEY_derive_init_ex()
290 tmp_prov = EVP_KEYMGMT_get0_provider(ctx->keymgmt); in EVP_PKEY_derive_init_ex()
312 EVP_KEYMGMT_get0_name(ctx->keymgmt), in EVP_PKEY_derive_init_ex()
419 EVP_KEYMGMT_get0_name(ctx->keymgmt), in EVP_PKEY_derive_set_peer_ex()
H A Dkem.c50 if (!ossl_assert(ctx->pkey->keymgmt == NULL in evp_kem_init()
51 || ctx->pkey->keymgmt == ctx->keymgmt)) { in evp_kem_init()
55 supported_kem = evp_keymgmt_util_query_operation_name(ctx->keymgmt, in evp_kem_init()
99 tmp_prov = EVP_KEYMGMT_get0_provider(ctx->keymgmt); in evp_kem_init()
124 EVP_KEYMGMT_get0_name(ctx->keymgmt), in evp_kem_init()
H A Dasymcipher.c53 if (!ossl_assert(ctx->pkey->keymgmt == NULL in evp_pkey_asym_cipher_init()
54 || ctx->pkey->keymgmt == ctx->keymgmt)) { in evp_pkey_asym_cipher_init()
60 = evp_keymgmt_util_query_operation_name(ctx->keymgmt, in evp_pkey_asym_cipher_init()
104 tmp_prov = EVP_KEYMGMT_get0_provider(ctx->keymgmt); in evp_pkey_asym_cipher_init()
126 EVP_KEYMGMT_get0_name(ctx->keymgmt), in evp_pkey_asym_cipher_init()
H A Devp_pkey.c250 if (key->keymgmt != NULL) in EVP_PKEY_get0_type_name()
251 return EVP_KEYMGMT_get0_name(key->keymgmt); in EVP_PKEY_get0_type_name()
265 return EVP_KEYMGMT_get0_provider(key->keymgmt); in EVP_PKEY_get0_provider()
H A Dsignature.c532 EVP_KEYMGMT_get0_name(ctx->keymgmt), in evp_pkey_signature_init()
565 const char *keytype = EVP_KEYMGMT_get0_name(ctx->keymgmt); in evp_pkey_signature_init()
575 = evp_keymgmt_util_query_operation_name(ctx->keymgmt, in evp_pkey_signature_init()
606 if (!ossl_assert(ctx->pkey->keymgmt == NULL in evp_pkey_signature_init()
607 || ctx->pkey->keymgmt == ctx->keymgmt)) { in evp_pkey_signature_init()
613 = evp_keymgmt_util_query_operation_name(ctx->keymgmt, in evp_pkey_signature_init()
657 tmp_prov = EVP_KEYMGMT_get0_provider(ctx->keymgmt); in evp_pkey_signature_init()
680 EVP_KEYMGMT_get0_name(ctx->keymgmt), in evp_pkey_signature_init()
H A Dm_sigver.c102 if (!ossl_assert(locpctx->pkey->keymgmt == NULL in do_sigver_init()
103 || locpctx->pkey->keymgmt == locpctx->keymgmt)) { in do_sigver_init()
108 supported_sig = evp_keymgmt_util_query_operation_name(locpctx->keymgmt, in do_sigver_init()
152 tmp_prov = EVP_KEYMGMT_get0_provider(locpctx->keymgmt); in do_sigver_init()
175 EVP_KEYMGMT_get0_name(locpctx->keymgmt), in do_sigver_init()
/openssl/doc/man3/
H A DEVP_KEYMGMT.pod29 int EVP_KEYMGMT_up_ref(EVP_KEYMGMT *keymgmt);
30 void EVP_KEYMGMT_free(EVP_KEYMGMT *keymgmt);
32 int EVP_KEYMGMT_is_a(const EVP_KEYMGMT *keymgmt, const char *name);
33 const char *EVP_KEYMGMT_get0_name(const EVP_KEYMGMT *keymgmt);
34 const char *EVP_KEYMGMT_get0_description(const EVP_KEYMGMT *keymgmt);
39 int EVP_KEYMGMT_names_do_all(const EVP_KEYMGMT *keymgmt,
63 B<EVP_KEYMGMT> I<keymgmt>.
72 EVP_KEYMGMT_is_a() checks if I<keymgmt> is an implementation of an
76 implementation for the given I<keymgmt>. Note that the I<keymgmt> may have
86 of the I<keymgmt> implementation.
[all …]
H A DEVP_PKEY_set_type.pod14 int EVP_PKEY_set_type_by_keymgmt(EVP_PKEY *pkey, EVP_KEYMGMT *keymgmt);
46 with I<keymgmt>. For keys initialised like this, the numeric type
/openssl/include/crypto/
H A Devp.h36 ((ctx)->keymgmt == NULL)
52 EVP_KEYMGMT *keymgmt; member
57 } keymgmt; member
596 EVP_KEYMGMT *keymgmt; member
642 ((pk)->keymgmt != NULL)
699 EVP_KEYMGMT *keymgmt; member
773 EVP_KEYMGMT *keymgmt; member
828 int evp_keymgmt_has_load(const EVP_KEYMGMT *keymgmt);
829 void *evp_keymgmt_load(const EVP_KEYMGMT *keymgmt,
835 int evp_keymgmt_match(const EVP_KEYMGMT *keymgmt,
[all …]
/openssl/crypto/encode_decode/
H A Ddecoder_pkey.c78 EVP_KEYMGMT *keymgmt = NULL; in decoder_construct_pkey() local
124 && evp_keymgmt_has_load(keymgmt) in decoder_construct_pkey()
130 if (!EVP_KEYMGMT_up_ref(keymgmt)) in decoder_construct_pkey()
138 if (keymgmt != NULL) { in decoder_construct_pkey()
155 import_data.keymgmt = keymgmt; in decoder_construct_pkey()
185 EVP_KEYMGMT_free(keymgmt); in decoder_construct_pkey()
269 EVP_KEYMGMT *keymgmt; in collect_decoder() local
354 if (!check_keymgmt(keymgmt, data)) in collect_keymgmt()
364 if (!EVP_KEYMGMT_up_ref(keymgmt)) in collect_keymgmt()
368 EVP_KEYMGMT_free(keymgmt); in collect_keymgmt()
[all …]
H A Dencoder_pkey.c188 const OSSL_PROVIDER *k_prov = EVP_KEYMGMT_get0_provider(pk->keymgmt); in encoder_construct_pkey()
198 if (!evp_keymgmt_export(pk->keymgmt, pk->keydata, selection, in encoder_construct_pkey()
246 prov = EVP_KEYMGMT_get0_provider(pkey->keymgmt); in ossl_encoder_ctx_setup_for_pkey()
250 if (pkey->keymgmt != NULL) { in ossl_encoder_ctx_setup_for_pkey()
268 EVP_KEYMGMT_names_do_all(pkey->keymgmt, collect_name, &keymgmt_data); in ossl_encoder_ctx_setup_for_pkey()
370 const OSSL_PROVIDER *prov = EVP_KEYMGMT_get0_provider(pkey->keymgmt); in OSSL_ENCODER_CTX_new_for_pkey()
/openssl/doc/internal/man3/
H A Devp_keymgmt_newdata.pod16 void *evp_keymgmt_newdata(const EVP_KEYMGMT *keymgmt);
17 void evp_keymgmt_freedata(const EVP_KEYMGMT *keymgmt, void *keyddata);
18 int evp_keymgmt_get_params(const EVP_KEYMGMT *keymgmt,
21 int evp_keymgmt_has(const EVP_KEYMGMT *keymgmt, void *keyddata, int selection);
22 int evp_keymgmt_validate(const EVP_KEYMGMT *keymgmt, void *keydata,
25 int evp_keymgmt_import(const EVP_KEYMGMT *keymgmt, void *keydata,
27 const OSSL_PARAM *evp_keymgmt_import_types(const EVP_KEYMGMT *keymgmt,
29 int evp_keymgmt_export(const EVP_KEYMGMT *keymgmt, void *keydata,
31 const OSSL_PARAM *evp_keymgmt_export_types(const EVP_KEYMGMT *keymgmt,
H A Devp_keymgmt_util_export_to_provider.pod23 void *evp_keymgmt_util_export_to_provider(EVP_PKEY *pk, EVP_KEYMGMT *keymgmt,
26 EVP_KEYMGMT *keymgmt,
29 int evp_keymgmt_util_cache_keydata(EVP_PKEY *pk, EVP_KEYMGMT *keymgmt,
32 void *evp_keymgmt_util_fromdata(EVP_PKEY *target, EVP_KEYMGMT *keymgmt,
38 I<keymgmt> and I<keydata> from I<pk>. This is used as a
51 I<keymgmt> in I<pk>'s cache of provided keys for operations.
81 operation cache slot. If I<keymgmt> is NULL, or if there is no slot
82 with a match for I<keymgmt>, NULL is returned.
H A Devp_pkey_export_to_provider.pod14 EVP_KEYMGMT **keymgmt,
26 with I<*keymgmt> or with an implicit fetch using I<libctx> (NULL means the
30 If I<keymgmt> isn't NULL but I<*keymgmt> is, and the "origin" was successfully
31 exported, then I<*keymgmt> is assigned the implicitly fetched B<EVP_KEYMGMT>.
52 allocated. It also either sets I<*keymgmt> to the B<EVP_KEYMGMT> associated
/openssl/crypto/store/
H A Dstore_result.c192 EVP_KEYMGMT *keymgmt = NULL; in try_key_ref() local
200 keymgmt = EVP_KEYMGMT_fetch(libctx, data->data_type, propq); in try_key_ref()
202 while (keymgmt != NULL && keydata == NULL && try_fallback-- > 0) { in try_key_ref()
211 if (EVP_KEYMGMT_get0_provider(keymgmt) == provider) { in try_key_ref()
214 keydata = evp_keymgmt_load(keymgmt, data->ref, data->ref_size); in try_key_ref()
220 import_data.keymgmt = keymgmt; in try_key_ref()
239 EVP_KEYMGMT_free(keymgmt); in try_key_ref()
240 keymgmt = evp_keymgmt_fetch_from_prov((OSSL_PROVIDER *)provider, in try_key_ref()
242 if (keymgmt != NULL) { in try_key_ref()
250 pk = evp_keymgmt_util_make_pkey(keymgmt, keydata); in try_key_ref()
[all …]
/openssl/test/
H A Dalgorithmid_test.c28 EVP_KEYMGMT *keymgmt = NULL; in test_spki_aid() local
61 &keymgmt, NULL)) == NULL) { in test_spki_aid()
69 if (!TEST_true(EVP_KEYMGMT_is_a(keymgmt, name))) { in test_spki_aid()
78 if (!TEST_ptr(gettable_params = EVP_KEYMGMT_gettable_params(keymgmt)) in test_spki_aid()
88 if (!TEST_true(evp_keymgmt_get_params(keymgmt, keydata, params))) in test_spki_aid()
98 EVP_KEYMGMT_free(keymgmt); in test_spki_aid()
H A Dkeymgmt_internal_test.c303 EVP_KEYMGMT *keymgmt = NULL; in test_evp_pkey_export_to_provider() local
334 &keymgmt, NULL))) in test_evp_pkey_export_to_provider()
337 keymgmt = EVP_KEYMGMT_fetch(libctx, "RSA", NULL); in test_evp_pkey_export_to_provider()
340 &keymgmt, NULL))) in test_evp_pkey_export_to_provider()
348 EVP_KEYMGMT_free(keymgmt); in test_evp_pkey_export_to_provider()
/openssl/providers/implementations/
H A Dbuild.info1 SUBDIRS=digests ciphers rands macs kdfs exchange keymgmt signature asymciphers \
/openssl/doc/man7/
H A DEVP_PKEY-X25519.pod33 See L<provider-keymgmt(7)/Common Information Parameters> for further information.
42 L<provider-keymgmt(7)/Common parameters>), the implementation of these keytypes
113 L<EVP_KEYMGMT(3)>, L<EVP_PKEY(3)>, L<provider-keymgmt(7)>,

Completed in 59 milliseconds

123