Home
last modified time | relevance | path

Searched refs:cm_type (Results 1 – 18 of 18) sorted by relevance

/freebsd/sys/contrib/openzfs/module/icp/io/
H A Daes.c117 switch (mechanism->cm_type) { in aes_check_mech_param()
185 switch (mechanism->cm_type) { in aes_encrypt_atomic()
223 if (mechanism->cm_type == AES_CCM_MECH_INFO_TYPE) { in aes_encrypt_atomic()
230 } else if (mechanism->cm_type == AES_GCM_MECH_INFO_TYPE) { in aes_encrypt_atomic()
284 switch (mechanism->cm_type) { in aes_decrypt_atomic()
322 if (mechanism->cm_type == AES_CCM_MECH_INFO_TYPE) { in aes_decrypt_atomic()
338 } else if (mechanism->cm_type == AES_GCM_MECH_INFO_TYPE) { in aes_decrypt_atomic()
385 if (mechanism->cm_type != AES_CCM_MECH_INFO_TYPE && in aes_create_ctx_template()
386 mechanism->cm_type != AES_GCM_MECH_INFO_TYPE) in aes_create_ctx_template()
459 switch (mechanism->cm_type) { in aes_common_init_ctx()
H A Dsha2_mod.c369 switch (mechanism->cm_type) { in sha2_mac_init()
383 PROV_SHA2_HMAC_CTX(ctx)->hc_mech_type = mechanism->cm_type; in sha2_mac_init()
399 PROV_SHA2_DIGEST_KEY(mechanism->cm_type / 3, in sha2_mac_init()
559 switch (mechanism->cm_type) { in sha2_mac_atomic()
572 sha2_hmac_ctx.hc_mech_type = mechanism->cm_type; in sha2_mac_atomic()
580 PROV_SHA2_DIGEST_KEY(mechanism->cm_type / 3, in sha2_mac_atomic()
606 ASSERT3U(mechanism->cm_type, ==, SHA512_HMAC_MECH_INFO_TYPE); in sha2_mac_atomic()
662 switch (mechanism->cm_type) { in sha2_mac_verify_atomic()
675 sha2_hmac_ctx.hc_mech_type = mechanism->cm_type; in sha2_mac_verify_atomic()
683 PROV_SHA2_DIGEST_KEY(mechanism->cm_type / 3, in sha2_mac_verify_atomic()
[all …]
/freebsd/sys/contrib/openzfs/module/icp/api/
H A Dkcf_cipher.c71 if ((pd = kcf_get_mech_provider(mech->cm_type, &me, &error, in crypto_encrypt()
82 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_encrypt()
142 if ((pd = kcf_get_mech_provider(mech->cm_type, &me, &error, in crypto_decrypt()
153 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_decrypt()
H A Dkcf_ctxops.c78 error = kcf_get_sw_prov(mech->cm_type, &pd, &me, B_TRUE); in crypto_create_ctx_template()
89 prov_mech.cm_type = KCF_TO_PROV_MECHNUM(pd, mech->cm_type); in crypto_create_ctx_template()
H A Dkcf_mac.c87 if ((pd = kcf_get_mech_provider(mech->cm_type, &me, &error, in crypto_mac()
98 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_mac()
162 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, real_provider, &lmech); in crypto_mac_init_prov()
193 if ((pd = kcf_get_mech_provider(mech->cm_type, &me, &error, in crypto_mac_init()
/freebsd/usr.sbin/rtadvd/
H A Dcontrol_client.c80 cm->cm_type = cm_orig->cm_type; in cm_handler_client()
110 switch (cm->cm_type) { in cm_handler_client()
H A Dcontrol_server.c728 switch (cm->cm_type) { in cm_handler_server()
756 "<%s> cm->cm_type = %d", __func__, cm->cm_type); in cm_handler_server()
760 switch (cm->cm_type) { in cm_handler_server()
764 cm->cm_type = CM_TYPE_ACK; in cm_handler_server()
771 cm->cm_type = CM_TYPE_ERR; in cm_handler_server()
774 cm->cm_type = CM_TYPE_ACK; in cm_handler_server()
785 cm->cm_type = CM_TYPE_ERR; in cm_handler_server()
788 cm->cm_type = CM_TYPE_ACK; in cm_handler_server()
793 cm->cm_type = CM_TYPE_ERR; in cm_handler_server()
797 switch (cm->cm_type) { in cm_handler_server()
H A Dcontrol.c116 if (cm->cm_type >= CM_TYPE_MAX) { in cm_recv()
124 cm->cm_type); in cm_recv()
197 cm->cm_type, iovcnt, iov_len_total); in cm_send()
H A Dcontrol.h53 int cm_type; member
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dhkdf.c31 mech.cm_type = crypto_mech2id(SUN_CKM_SHA512_HMAC); in hkdf_sha512_extract()
77 mech.cm_type = crypto_mech2id(SUN_CKM_SHA512_HMAC); in hkdf_sha512_expand()
/freebsd/contrib/opencsd/decoder/source/etmv3/
H A Dtrc_pkt_elem_etmv3.cpp121 const bool cm_type, in SetException() argument
129 m_pkt_data.exception.bits.cm_type = cm_type ? 1 : 0; in SetException()
669 if(m_pkt_data.exception.bits.cm_type) in getExcepStr()
/freebsd/sys/contrib/openzfs/module/icp/include/sys/crypto/
H A Dsched_impl.h99 (mechp)->cm_type = \
/freebsd/sys/contrib/openzfs/include/sys/crypto/
H A Dcommon.h42 crypto_mech_type_t cm_type; /* mechanism type */ member
/freebsd/contrib/opencsd/decoder/include/opencsd/etmv3/
H A Dtrc_pkt_types_etmv3.h91 uint32_t cm_type:1; member
H A Dtrc_pkt_elem_etmv3.h80 const bool cm_type,
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c285 mech.cm_type = crypto_mech2id(zio_crypt_table[crypt].ci_mechname); in zio_crypt_key_init()
291 mech.cm_type = crypto_mech2id(SUN_CKM_SHA512_HMAC); in zio_crypt_key_init()
412 mech.cm_type = crypto_mech2id(crypt_info.ci_mechname); in zio_do_crypt_uio()
632 mech.cm_type = crypto_mech2id(zio_crypt_table[crypt].ci_mechname); in zio_crypt_key_unwrap()
638 mech.cm_type = crypto_mech2id(SUN_CKM_SHA512_HMAC); in zio_crypt_key_unwrap()
685 mech.cm_type = crypto_mech2id(SUN_CKM_SHA512_HMAC); in zio_crypt_do_hmac()
1146 mech.cm_type = crypto_mech2id(SUN_CKM_SHA512_HMAC); in zio_crypt_do_objset_hmacs()
/freebsd/usr.sbin/rtadvctl/
H A Drtadvctl.c237 cm->cm_type = action; in action_plgeneric()
291 __func__, cm->cm_type, cm->cm_len); in action_propget()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dcrypto_test.c611 mech->cm_type = crypto_mech2id(SUN_CKM_AES_GCM); in init_mech()
623 mech->cm_type = crypto_mech2id(SUN_CKM_AES_CCM); in init_mech()