Home
last modified time | relevance | path

Searched refs:mech_count (Results 1 – 11 of 11) sorted by relevance

/titanic_41/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_metaslot.c65 CK_ULONG mech_count; in list_metaslot_info() local
242 &mech_count); in list_metaslot_info()
250 if (mech_count > 0) { in list_metaslot_info()
251 pmech_list = malloc(mech_count * in list_metaslot_info()
259 &mech_count); in list_metaslot_info()
268 rc = convert_mechlist(&pmech_list, &mech_count, mechlist); in list_metaslot_info()
275 if (mech_count == 0) { in list_metaslot_info()
284 for (i = 0; i < mech_count; i++) { in list_metaslot_info()
H A Dadm_uef.c152 convert_mechlist(CK_MECHANISM_TYPE **pmech_list, CK_ULONG *mech_count, in convert_mechlist() argument
176 *mech_count = n; in convert_mechlist()
195 CK_ULONG mech_count; in list_mechlist_for_lib() local
404 NULL_PTR, &mech_count); in list_mechlist_for_lib()
413 if (mech_count == 0) { in list_mechlist_for_lib()
418 pmech_list = malloc(mech_count * in list_mechlist_for_lib()
428 pmech_list, &mech_count); in list_mechlist_for_lib()
439 rc = convert_mechlist(&pmech_list, &mech_count, mlist); in list_mechlist_for_lib()
454 for (j = 0; show_mechs && j < mech_count; j++) { in list_mechlist_for_lib()
/titanic_41/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11SlotToken.c586 CK_ULONG mech_count; in C_GetMechanismList() local
623 mech_count = 0; in C_GetMechanismList()
696 if (pMechanismList && (*pulCount > mech_count)) { in C_GetMechanismList()
697 pMechanismList[mech_count] = pmech_list[i]; in C_GetMechanismList()
699 mech_count++; in C_GetMechanismList()
708 if ((*pulCount < mech_count) && (pMechanismList != NULL)) { in C_GetMechanismList()
709 *pulCount = mech_count; in C_GetMechanismList()
714 *pulCount = mech_count; in C_GetMechanismList()
H A Dpkcs11Conf.h41 CK_MECHANISM_TYPE_PTR *mech_list, int mech_count);
H A Dpkcs11Conf.c759 int mech_count) in pkcs11_mech_parse() argument
764 tmp_list = malloc(mech_count * sizeof (CK_MECHANISM_TYPE)); in pkcs11_mech_parse()
/titanic_41/usr/src/uts/common/inet/kssl/
H A Dkssl.c436 uint_t mech_count; in kssl_event_callback() local
467 mechs = crypto_get_mech_list(&mech_count, KM_SLEEP); in kssl_event_callback()
492 if (!is_in_mechlist(mc->name, mechs, mech_count)) { in kssl_event_callback()
535 crypto_free_mech_list(mechs, mech_count); in kssl_event_callback()
H A Dksslioctl.c406 uint_t cnt, mech_count; in create_kssl_entry() local
437 mechs = crypto_get_mech_list(&mech_count, KM_SLEEP); in create_kssl_entry()
441 for (i = 0; i < mech_count; i++) { in create_kssl_entry()
499 crypto_free_mech_list(mechs, mech_count); in create_kssl_entry()
/titanic_41/usr/src/uts/common/crypto/core/
H A Dkcf_cryptoadm.c190 int mech_count, r; in kcf_soft_config_init() local
193 mech_count = count_mechanisms(p->mechs); in kcf_soft_config_init()
194 alloc_size = mech_count * CRYPTO_MAX_MECH_NAME; in kcf_soft_config_init()
198 r = add_soft_config(p->name, mech_count, mechsp); in kcf_soft_config_init()
/titanic_41/usr/src/uts/common/c2/
H A Daudit.c1798 uint_t mech_count, uint_t device_instance, uint32_t rv, int error) in audit_cryptoadm() argument
1908 if (mech_count == 0) { in audit_cryptoadm()
1918 for (i = 0; i < mech_count; i++) { in audit_cryptoadm()
1922 if (i == mech_count - 1) in audit_cryptoadm()
/titanic_41/usr/src/uts/common/inet/ip/
H A Dspdsock.c3638 uint_t mech_count, mech_idx; in spdsock_merge_algs() local
3652 mechs = crypto_get_mech_list(&mech_count, KM_SLEEP); in spdsock_merge_algs()
3673 for (mech_idx = 0; mech_idx < mech_count; mech_idx++) { in spdsock_merge_algs()
3745 crypto_free_mech_list(mechs, mech_count); in spdsock_merge_algs()
H A Dspd.c5036 uint_t algidx, algid, algtype, mech_count, mech_idx; in ipsec_prov_update_callback_stack() local
5050 mechs = crypto_get_mech_list(&mech_count, KM_SLEEP); in ipsec_prov_update_callback_stack()
5082 for (mech_idx = 0; mech_idx < mech_count; mech_idx++) in ipsec_prov_update_callback_stack()
5086 if (mech_idx == mech_count && in ipsec_prov_update_callback_stack()
5090 } else if (mech_idx < mech_count && in ipsec_prov_update_callback_stack()
5123 crypto_free_mech_list(mechs, mech_count); in ipsec_prov_update_callback_stack()