Lines Matching refs:keymgmt

78     EVP_KEYMGMT *keymgmt = NULL;  in decoder_construct_pkey()  local
120 keymgmt = sk_EVP_KEYMGMT_value(data->keymgmts, i); in decoder_construct_pkey()
121 keymgmt_prov = EVP_KEYMGMT_get0_provider(keymgmt); in decoder_construct_pkey()
124 && evp_keymgmt_has_load(keymgmt) in decoder_construct_pkey()
125 && EVP_KEYMGMT_is_a(keymgmt, data->object_type)) in decoder_construct_pkey()
130 if (!EVP_KEYMGMT_up_ref(keymgmt)) in decoder_construct_pkey()
132 } else if ((keymgmt = EVP_KEYMGMT_fetch(data->libctx, in decoder_construct_pkey()
135 keymgmt_prov = EVP_KEYMGMT_get0_provider(keymgmt); in decoder_construct_pkey()
138 if (keymgmt != NULL) { in decoder_construct_pkey()
151 keydata = evp_keymgmt_load(keymgmt, object_ref, object_ref_sz); in decoder_construct_pkey()
155 import_data.keymgmt = keymgmt; in decoder_construct_pkey()
176 && (pkey = evp_keymgmt_util_make_pkey(keymgmt, keydata)) == NULL) in decoder_construct_pkey()
177 evp_keymgmt_freedata(keymgmt, keydata); in decoder_construct_pkey()
185 EVP_KEYMGMT_free(keymgmt); in decoder_construct_pkey()
220 static void collect_decoder_keymgmt(EVP_KEYMGMT *keymgmt, OSSL_DECODER *decoder, in collect_decoder_keymgmt() argument
231 if (keymgmt->name_id != decoder->base.id) in collect_decoder_keymgmt()
269 EVP_KEYMGMT *keymgmt; in collect_decoder() local
299 keymgmt = sk_EVP_KEYMGMT_value(keymgmts, i); in collect_decoder()
301 collect_decoder_keymgmt(keymgmt, decoder, provctx, data); in collect_decoder()
311 static int check_keymgmt(EVP_KEYMGMT *keymgmt, struct collect_data_st *data) in check_keymgmt() argument
343 if (keymgmt->name_id != data->keytype_id in check_keymgmt()
344 && keymgmt->name_id != data->sm2_id) in check_keymgmt()
350 static void collect_keymgmt(EVP_KEYMGMT *keymgmt, void *arg) in collect_keymgmt() argument
354 if (!check_keymgmt(keymgmt, data)) in collect_keymgmt()
364 if (!EVP_KEYMGMT_up_ref(keymgmt)) in collect_keymgmt()
367 if (sk_EVP_KEYMGMT_push(data->keymgmts, keymgmt) <= 0) { in collect_keymgmt()
368 EVP_KEYMGMT_free(keymgmt); in collect_keymgmt()
480 static EVP_KEYMGMT *keymgmt_dup(const EVP_KEYMGMT *keymgmt) in keymgmt_dup() argument
482 if (!EVP_KEYMGMT_up_ref((EVP_KEYMGMT *)keymgmt)) in keymgmt_dup()
485 return (EVP_KEYMGMT *)keymgmt; in keymgmt_dup()