Home
last modified time | relevance | path

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

/illumos-gate/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.c153 convert_mechlist(CK_MECHANISM_TYPE **pmech_list, CK_ULONG *mech_count, in convert_mechlist() argument
177 *mech_count = n; in convert_mechlist()
196 CK_ULONG mech_count; in list_mechlist_for_lib() local
405 NULL_PTR, &mech_count); in list_mechlist_for_lib()
414 if (mech_count == 0) { in list_mechlist_for_lib()
419 pmech_list = malloc(mech_count * in list_mechlist_for_lib()
429 pmech_list, &mech_count); in list_mechlist_for_lib()
440 rc = convert_mechlist(&pmech_list, &mech_count, mlist); in list_mechlist_for_lib()
455 for (j = 0; show_mechs && j < mech_count; j++) { in list_mechlist_for_lib()
/illumos-gate/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.h39 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()
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_cryptoadm.c198 int mech_count, r; in kcf_soft_config_init() local
201 mech_count = count_mechanisms(p->mechs); in kcf_soft_config_init()
202 alloc_size = mech_count * CRYPTO_MAX_MECH_NAME; in kcf_soft_config_init()
206 r = add_soft_config(p->name, mech_count, mechsp); in kcf_soft_config_init()
/illumos-gate/usr/src/uts/common/c2/
H A Daudit.c1857 uint_t mech_count, uint_t device_instance, uint32_t rv, int error) in audit_cryptoadm() argument
1967 if (mech_count == 0) { in audit_cryptoadm()
1977 for (i = 0; i < mech_count; i++) { in audit_cryptoadm()
1981 if (i == mech_count - 1) in audit_cryptoadm()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dspdsock.c3662 uint_t mech_count, mech_idx; in spdsock_merge_algs() local
3676 mechs = crypto_get_mech_list(&mech_count, KM_SLEEP); in spdsock_merge_algs()
3697 for (mech_idx = 0; mech_idx < mech_count; mech_idx++) { in spdsock_merge_algs()
3769 crypto_free_mech_list(mechs, mech_count); in spdsock_merge_algs()
H A Dspd.c5043 uint_t algidx, algid, algtype, mech_count, mech_idx; in ipsec_prov_update_callback_stack() local
5057 mechs = crypto_get_mech_list(&mech_count, KM_SLEEP); in ipsec_prov_update_callback_stack()
5089 for (mech_idx = 0; mech_idx < mech_count; mech_idx++) in ipsec_prov_update_callback_stack()
5093 if (mech_idx == mech_count && in ipsec_prov_update_callback_stack()
5097 } else if (mech_idx < mech_count && in ipsec_prov_update_callback_stack()
5130 crypto_free_mech_list(mechs, mech_count); in ipsec_prov_update_callback_stack()