Home
last modified time | relevance | path

Searched refs:mechanism_info (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelSlotToken.c229 crypto_get_provider_mechanism_info_t mechanism_info; in C_GetMechanismList() local
290 mechanism_info.mi_provider_id = provider_id; in C_GetMechanismList()
291 bcopy(&pm->pm_list[i][0], mechanism_info.mi_mechanism_name, in C_GetMechanismList()
302 &mechanism_info)) < 0) { in C_GetMechanismList()
310 if (mechanism_info.mi_return_value != CRYPTO_SUCCESS) in C_GetMechanismList()
313 flags = mechanism_info.mi_flags; in C_GetMechanismList()
H A DkernelUtil.c1119 crypto_get_provider_mechanism_info_t mechanism_info; in get_mechanism_info() local
1137 (void) strcpy(mechanism_info.mi_mechanism_name, string); in get_mechanism_info()
1138 mechanism_info.mi_provider_id = pslot->sl_provider_id; in get_mechanism_info()
1141 &mechanism_info)) < 0) { in get_mechanism_info()
1149 mechanism_info.mi_return_value); in get_mechanism_info()
1160 mi_flags = mechanism_info.mi_flags; in get_mechanism_info()
1210 pInfo->ulMinKeySize = mechanism_info.mi_min_key_size; in get_mechanism_info()
1211 pInfo->ulMaxKeySize = mechanism_info.mi_max_key_size; in get_mechanism_info()
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaSlotToken.c305 (void) memcpy(pInfo, &(slots[0]->mechanism_info), in meta_GetMechanismInfo()
313 thisValue = slots[i]->mechanism_info.ulMinKeySize; in meta_GetMechanismInfo()
319 thisValue = slots[i]->mechanism_info.ulMaxKeySize; in meta_GetMechanismInfo()
324 pInfo->flags |= slots[i]->mechanism_info.flags; in meta_GetMechanismInfo()
H A DmetaMechManager.c242 info = mechlist[index].slots[i].mechanism_info; in meta_mechManager_get_slots()
466 bzero(&mechlist[index].slots[slotnum].mechanism_info, in update_slotmech()
475 mechlist[index].slots[slotnum].mechanism_info = info; in update_slotmech()
480 bzero(&mechlist[index].slots[slotnum].mechanism_info, in update_slotmech()
670 info = mechlist[index].slots[slotnum].mechanism_info; in meta_mechManager_slot_supports_mech()
H A DmetaGlobal.h289 CK_MECHANISM_INFO mechanism_info; member
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dcrypto.c1628 crypto_get_provider_mechanism_info_t mechanism_info; in get_provider_mechanism_info() local
1641 if (copyin(arg, &mechanism_info, sizeof (mechanism_info)) != 0) { in get_provider_mechanism_info()
1660 if (mechanism_info.mi_provider_id >= cm->cm_provider_count) { in get_provider_mechanism_info()
1665 pd = cm->cm_provider_array[mechanism_info.mi_provider_id]; in get_provider_mechanism_info()
1670 mechanism_info.mi_mechanism_name, in get_provider_mechanism_info()
1683 if (is_mech_disabled(pd, mechanism_info.mi_mechanism_name)) { in get_provider_mechanism_info()
1688 mechanism_info.mi_min_key_size = mi->cm_min_key_length; in get_provider_mechanism_info()
1689 mechanism_info.mi_max_key_size = mi->cm_max_key_length; in get_provider_mechanism_info()
1690 mechanism_info.mi_flags = mi->cm_func_group_mask; in get_provider_mechanism_info()
1695 mechanism_info.mi_return_value = rv; in get_provider_mechanism_info()
[all …]