Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/openzfs/module/icp/core/
H A Dkcf_mech_tabs.c612 crypto_mech_type_t mech_type; in kcf_remove_mech_provider() local
621 if ((mech_type = kcf_mech_hash_find(mech_name)) == in kcf_remove_mech_provider()
631 if (kcf_get_mech_entry(mech_type, &mech_entry) != KCF_SUCCESS) { in kcf_remove_mech_provider()
704 mil2->ml_kcf_mechid != mech_type) { in kcf_remove_mech_provider()
746 kcf_get_mech_entry(crypto_mech_type_t mech_type, kcf_mech_entry_t **mep) in kcf_get_mech_entry() argument
754 class = KCF_MECH2CLASS(mech_type); in kcf_get_mech_entry()
762 index = KCF_MECH2INDEX(mech_type); in kcf_get_mech_entry()
H A Dkcf_prov_tabs.c613 kcf_get_sw_prov(crypto_mech_type_t mech_type, kcf_provider_desc_t **pd, in kcf_get_sw_prov() argument
619 if (kcf_get_mech_entry(mech_type, &me) != KCF_SUCCESS) in kcf_get_sw_prov()
H A Dkcf_callprov.c251 kcf_get_mech_provider(crypto_mech_type_t mech_type, kcf_mech_entry_t **mepp, in kcf_get_mech_provider() argument
263 class = KCF_MECH2CLASS(mech_type); in kcf_get_mech_provider()
270 index = KCF_MECH2INDEX(mech_type); in kcf_get_mech_provider()
/f-stack/freebsd/contrib/openzfs/module/icp/include/sys/crypto/
H A Dimpl.h438 #define KCF_MECH2CLASS(mech_type) ((kcf_ops_class_t)((mech_type) >> 32)) argument
440 #define KCF_MECH2INDEX(mech_type) ((int)(mech_type)) argument
442 #define KCF_TO_PROV_MECH_INDX(pd, mech_type) \ argument
443 ((pd)->pd_mech_indx[KCF_MECH2CLASS(mech_type)] \
444 [KCF_MECH2INDEX(mech_type)])
446 #define KCF_TO_PROV_MECHINFO(pd, mech_type) \ argument
447 ((pd)->pd_mechanisms[KCF_TO_PROV_MECH_INDX(pd, mech_type)])
449 #define KCF_TO_PROV_MECHNUM(pd, mech_type) \ argument
450 (KCF_TO_PROV_MECHINFO(pd, mech_type).cm_mech_number)
452 #define KCF_CAN_SHARE_OPSTATE(pd, mech_type) \ argument
[all …]
H A Dioctl.h61 int mech_type; member
/f-stack/freebsd/contrib/openzfs/module/icp/io/
H A Dsha1_mod.c1206 sha1_mech_type_t mech_type; in sha1_free_context() local
1216 mech_type = PROV_SHA1_CTX(ctx)->sc_mech_type; in sha1_free_context()
1217 if (mech_type == SHA1_MECH_INFO_TYPE) in sha1_free_context()
1220 ASSERT(mech_type == SHA1_HMAC_MECH_INFO_TYPE || in sha1_free_context()
1221 mech_type == SHA1_HMAC_GEN_MECH_INFO_TYPE); in sha1_free_context()