Lines Matching refs:keymgmt
54 int len, EVP_KEYMGMT *keymgmt);
163 if (EVP_PKEY_set_type_by_keymgmt(to, from->keymgmt) == 0) in EVP_PKEY_copy_parameters()
187 if (to->keymgmt != NULL && from->keymgmt != NULL) { in EVP_PKEY_copy_parameters()
199 if (to->keymgmt != NULL && to->keydata == NULL) { in EVP_PKEY_copy_parameters()
200 EVP_KEYMGMT *to_keymgmt = to->keymgmt; in EVP_PKEY_copy_parameters()
212 ok = (to->keydata = evp_keymgmt_dup(to->keymgmt, in EVP_PKEY_copy_parameters()
229 if (pkey->keymgmt != NULL) in EVP_PKEY_missing_parameters()
261 && !EVP_KEYMGMT_is_a(b->keymgmt, OBJ_nid2sn(a->type))) in evp_pkey_cmp_any()
264 && !EVP_KEYMGMT_is_a(a->keymgmt, OBJ_nid2sn(b->type))) in evp_pkey_cmp_any()
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()
560 if (pkey->keymgmt != NULL) { in EVP_PKEY_get_raw_private_key()
592 if (pkey->keymgmt != NULL) { in EVP_PKEY_get_raw_public_key()
1060 if (pkey->keymgmt == NULL) in EVP_PKEY_is_a()
1062 return EVP_KEYMGMT_is_a(pkey->keymgmt, name); in EVP_PKEY_is_a()
1078 return EVP_KEYMGMT_names_do_all(pkey->keymgmt, fn, data); in EVP_PKEY_type_names_do_all()
1083 if (pkey->keymgmt == NULL) { in EVP_PKEY_can_sign()
1103 const OSSL_PROVIDER *prov = EVP_KEYMGMT_get0_provider(pkey->keymgmt); in EVP_PKEY_can_sign()
1106 pkey->keymgmt->query_operation_name != NULL in EVP_PKEY_can_sign()
1107 ? pkey->keymgmt->query_operation_name(OSSL_OP_SIGNATURE) in EVP_PKEY_can_sign()
1108 : EVP_KEYMGMT_get0_name(pkey->keymgmt); in EVP_PKEY_can_sign()
1280 if (pkey->keymgmt == NULL) in legacy_asn1_ctrl_to_param()
1291 OSSL_LIB_CTX *libctx = ossl_provider_libctx(pkey->keymgmt->prov); in legacy_asn1_ctrl_to_param()
1346 return evp_keymgmt_util_get_deflt_digest_name(pkey->keymgmt, in EVP_PKEY_get_default_digest_name()
1501 int len, EVP_KEYMGMT *keymgmt) in pkey_set_type() argument
1512 if (!ossl_assert(type == EVP_PKEY_NONE || keymgmt == NULL) in pkey_set_type()
1513 || !ossl_assert(e == NULL || keymgmt == NULL)) { in pkey_set_type()
1563 check = check && keymgmt == NULL; in pkey_set_type()
1570 if (keymgmt != NULL && !EVP_KEYMGMT_up_ref(keymgmt)) { in pkey_set_type()
1575 pkey->keymgmt = keymgmt; in pkey_set_type()
1586 if (keymgmt == NULL) in pkey_set_type()
1638 int EVP_PKEY_set_type_by_keymgmt(EVP_PKEY *pkey, EVP_KEYMGMT *keymgmt) in EVP_PKEY_set_type_by_keymgmt() argument
1650 if (!EVP_KEYMGMT_names_do_all(keymgmt, find_ameth, &str) in EVP_PKEY_set_type_by_keymgmt()
1661 keymgmt); in EVP_PKEY_set_type_by_keymgmt()
1778 if (x->keymgmt != NULL) { in evp_pkey_free_it()
1779 evp_keymgmt_freedata(x->keymgmt, x->keydata); in evp_pkey_free_it()
1780 EVP_KEYMGMT_free(x->keymgmt); in evp_pkey_free_it()
1781 x->keymgmt = NULL; in evp_pkey_free_it()
1834 if (evp_pkey_is_provided(pkey) && pkey->keymgmt->description != NULL) in EVP_PKEY_get0_description()
1835 return pkey->keymgmt->description; in EVP_PKEY_get0_description()
1844 EVP_KEYMGMT **keymgmt, in evp_pkey_export_to_provider() argument
1876 if (keymgmt != NULL) { in evp_pkey_export_to_provider()
1877 tmp_keymgmt = *keymgmt; in evp_pkey_export_to_provider()
1878 *keymgmt = NULL; in evp_pkey_export_to_provider()
1890 allocated_keymgmt = tmp_keymgmt = ctx->keymgmt; in evp_pkey_export_to_provider()
1891 ctx->keymgmt = NULL; in evp_pkey_export_to_provider()
1928 if (op != NULL && op->keymgmt != NULL) { in evp_pkey_export_to_provider()
1976 if (op != NULL && op->keymgmt != NULL) { in evp_pkey_export_to_provider()
2013 if (keymgmt != NULL && tmp_keymgmt != NULL) { in evp_pkey_export_to_provider()
2014 *keymgmt = tmp_keymgmt; in evp_pkey_export_to_provider()
2031 EVP_KEYMGMT *keymgmt = src->keymgmt; in evp_pkey_copy_downgraded() local
2036 keytype = EVP_KEYMGMT_get0_name(keymgmt); in evp_pkey_copy_downgraded()
2080 ossl_provider_libctx(keymgmt->prov); in evp_pkey_copy_downgraded()
2088 && evp_keymgmt_export(keymgmt, keydata, in evp_pkey_copy_downgraded()
2368 ? EVP_KEYMGMT_settable_params(pkey->keymgmt) in EVP_PKEY_settable_params()
2377 return evp_keymgmt_set_params(pkey->keymgmt, pkey->keydata, params); in EVP_PKEY_set_params()
2400 ? EVP_KEYMGMT_gettable_params(pkey->keymgmt) in EVP_PKEY_gettable_params()
2408 return evp_keymgmt_get_params(pkey->keymgmt, pkey->keydata, params) > 0; in EVP_PKEY_get_params()
2427 if (pkey->keymgmt == NULL in EVP_PKEY_get_ec_point_conv_form()
2467 if (pkey->keymgmt == NULL in EVP_PKEY_get_field_type()