| /freebsd/sys/contrib/openzfs/module/icp/io/ |
| H A D | aes.c | 117 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 D | sha2_mod.c | 369 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 D | kcf_cipher.c | 71 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 D | kcf_ctxops.c | 78 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 D | kcf_mac.c | 87 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 D | control_client.c | 80 cm->cm_type = cm_orig->cm_type; in cm_handler_client() 110 switch (cm->cm_type) { in cm_handler_client()
|
| H A D | control_server.c | 728 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 D | control.c | 116 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 D | control.h | 53 int cm_type; member
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | hkdf.c | 31 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 D | trc_pkt_elem_etmv3.cpp | 121 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 D | sched_impl.h | 99 (mechp)->cm_type = \
|
| /freebsd/sys/contrib/openzfs/include/sys/crypto/ |
| H A D | common.h | 42 crypto_mech_type_t cm_type; /* mechanism type */ member
|
| /freebsd/contrib/opencsd/decoder/include/opencsd/etmv3/ |
| H A D | trc_pkt_types_etmv3.h | 91 uint32_t cm_type:1; member
|
| H A D | trc_pkt_elem_etmv3.h | 80 const bool cm_type,
|
| /freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zio_crypt.c | 285 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 D | rtadvctl.c | 237 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 D | crypto_test.c | 611 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()
|