Home
last modified time | relevance | path

Searched refs:mech_info (Results 1 – 12 of 12) sorted by relevance

/titanic_50/usr/src/uts/common/crypto/core/
H A Dkcf_mech_tabs.c387 crypto_mech_info_t *mech_info; in kcf_add_mech_provider() local
398 mech_info = &prov_desc->pd_mechanisms[mech_indx]; in kcf_add_mech_provider()
403 if (is_mech_disabled(prov_desc, mech_info->cm_mech_name)) { in kcf_add_mech_provider()
413 kcf_mech_type = kcf_mech_hash_find(mech_info->cm_mech_name); in kcf_add_mech_provider()
415 crypto_func_group_t fg = mech_info->cm_func_group_mask; in kcf_add_mech_provider()
446 mech_info->cm_mech_name)) != KCF_SUCCESS) { in kcf_add_mech_provider()
450 kcf_mech_type = kcf_mech_hash_find(mech_info->cm_mech_name); in kcf_add_mech_provider()
459 bcopy(mech_info, &prov_mech->pm_mech_info, sizeof (crypto_mech_info_t)); in kcf_add_mech_provider()
466 dual_fg_mask = mech_info->cm_func_group_mask & CRYPTO_FG_DUAL_MASK; in kcf_add_mech_provider()
471 simple_fg_mask = mech_info->cm_func_group_mask & in kcf_add_mech_provider()
[all …]
H A Dkcf_callprov.c115 crypto_mech_info_t *mech_info = NULL; in kcf_check_prov_mech_keylen() local
120 mech_info = &(KCF_TO_PROV_MECHINFO(provider, mech_type)); in kcf_check_prov_mech_keylen()
124 if (mech_info->cm_mech_flags & in kcf_check_prov_mech_keylen()
136 if (mech_info->cm_mech_flags & in kcf_check_prov_mech_keylen()
145 if (mech_info->cm_mech_flags & in kcf_check_prov_mech_keylen()
172 ssize_t, mech_info->cm_min_key_length, in kcf_check_prov_mech_keylen()
173 ssize_t, mech_info->cm_max_key_length); in kcf_check_prov_mech_keylen()
175 if ((keylen > mech_info->cm_max_key_length) || in kcf_check_prov_mech_keylen()
176 (keylen < mech_info->cm_min_key_length)) { in kcf_check_prov_mech_keylen()
/titanic_50/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11SUNWExtensions.c100 CK_MECHANISM_INFO mech_info; in match_mech() local
104 return (C_GetMechanismInfo(slot_id, mech, &mech_info) == CKR_OK); in match_mech()
212 CK_MECHANISM_INFO mech_info; in SUNW_C_GetMechSession() local
253 if (C_GetMechanismInfo(slot_id, mech, &mech_info) == CKR_OK) { in SUNW_C_GetMechSession()
284 CK_MECHANISM_INFO mech_info; in SUNW_C_KeyToObject() local
333 rv = C_GetMechanismInfo(slot_id, mech, &mech_info); in SUNW_C_KeyToObject()
344 if (mech_info.flags & ((mapping[j]).flag)) { in SUNW_C_KeyToObject()
H A DmetaMechManager.c216 boolean_t force_update, CK_MECHANISM_INFO *mech_info) in meta_mechManager_get_slots() argument
243 if (mech_info) { in meta_mechManager_get_slots()
245 if (!(info.flags & mech_info->flags)) { in meta_mechManager_get_slots()
648 boolean_t force_update, CK_MECHANISM_INFO *mech_info) in meta_mechManager_slot_supports_mech() argument
671 if (mech_info) { in meta_mechManager_slot_supports_mech()
673 if (!(info.flags & mech_info->flags)) { in meta_mechManager_slot_supports_mech()
H A DmetaUtil.c118 CK_MECHANISM_INFO mech_info; in meta_operation_init() local
161 mech_info.flags = optype; in meta_operation_init()
174 B_FALSE, &mech_info); in meta_operation_init()
860 CK_MECHANISM_INFO *mech_info) in get_slotlist_for_mech() argument
869 mech_info); in get_slotlist_for_mech()
901 B_FALSE, mech_info); in get_slotlist_for_mech()
930 CK_MECHANISM_INFO mech_info; in meta_generate_keys() local
951 mech_info.flags = CKF_GENERATE; in meta_generate_keys()
969 mech_info.flags = CKF_GENERATE_KEY_PAIR; in meta_generate_keys()
1018 &mech_info); in meta_generate_keys()
[all …]
H A DmetaObjectManager.c1030 CK_MECHANISM_INFO mech_info; in find_best_match_wrap_mech() local
1032 mech_info.flags = CKF_WRAP; in find_best_match_wrap_mech()
1040 &src_supports, NULL, B_FALSE, &mech_info); in find_best_match_wrap_mech()
1047 &dst_supports, NULL, B_FALSE, &mech_info); in find_best_match_wrap_mech()
1084 CK_MECHANISM_INFO mech_info; in get_wrap_mechanism() local
1086 mech_info.flags = CKF_WRAP; in get_wrap_mechanism()
1105 &src_supports, NULL, B_FALSE, &mech_info); in get_wrap_mechanism()
1112 &dst_supports, NULL, B_FALSE, &mech_info); in get_wrap_mechanism()
H A DmetaGlobal.h580 boolean_t force_update, CK_MECHANISM_INFO *mech_info);
583 boolean_t force_update, CK_MECHANISM_INFO *mech_info);
/titanic_50/usr/src/uts/common/crypto/api/
H A Dkcf_miscapi.c615 init_mechanism_info(crypto_mechanism_info_t *mech_info, in init_mechanism_info() argument
621 mech_info->mi_keysize_unit = pmd->pm_mech_info.cm_mech_flags & in init_mechanism_info()
623 mech_info->mi_min_key_size = in init_mechanism_info()
625 mech_info->mi_max_key_size = in init_mechanism_info()
629 mech_info->mi_usage = 0; in init_mechanism_info()
631 mech_info->mi_usage |= CRYPTO_MECH_USAGE_ENCRYPT; in init_mechanism_info()
633 mech_info->mi_usage |= CRYPTO_MECH_USAGE_DECRYPT; in init_mechanism_info()
635 mech_info->mi_usage |= CRYPTO_MECH_USAGE_MAC; in init_mechanism_info()
/titanic_50/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_metaslot.c294 CK_MECHANISM_INFO mech_info; in list_metaslot_info() local
296 mech, &mech_info); in list_metaslot_info()
303 display_mech_info(&mech_info); in list_metaslot_info()
H A Dadm_uef.c456 CK_MECHANISM_INFO mech_info; in list_mechlist_for_lib() local
459 prov_slots[i], mech, &mech_info); in list_mechlist_for_lib()
478 display_mech_info(&mech_info); in list_mechlist_for_lib()
/titanic_50/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dtpmtok_int.h387 CK_MECHANISM_INFO mech_info; member
H A Dnew_host.c351 (void) memcpy(pInfo, &mech_list[i].mech_info, in SC_GetMechanismInfo()