/titanic_50/usr/src/uts/common/crypto/core/ |
H A D | kcf_mech_tabs.c | 387 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 D | kcf_callprov.c | 115 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 D | pkcs11SUNWExtensions.c | 100 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 D | metaMechManager.c | 216 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 D | metaUtil.c | 118 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 D | metaObjectManager.c | 1030 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 D | metaGlobal.h | 580 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 D | kcf_miscapi.c | 615 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 D | adm_metaslot.c | 294 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 D | adm_uef.c | 456 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 D | tpmtok_int.h | 387 CK_MECHANISM_INFO mech_info; member
|
H A D | new_host.c | 351 (void) memcpy(pInfo, &mech_list[i].mech_info, in SC_GetMechanismInfo()
|