/Linux-v5.4/drivers/crypto/ccree/ |
D | cc_cipher.c | 53 int cipher_mode; member 81 if (ctx_p->cipher_mode != DRV_CIPHER_XTS && in validate_keys_sizes() 82 ctx_p->cipher_mode != DRV_CIPHER_ESSIV && in validate_keys_sizes() 83 ctx_p->cipher_mode != DRV_CIPHER_BITLOCKER) in validate_keys_sizes() 90 if (ctx_p->cipher_mode == DRV_CIPHER_XTS || in validate_keys_sizes() 91 ctx_p->cipher_mode == DRV_CIPHER_ESSIV || in validate_keys_sizes() 92 ctx_p->cipher_mode == DRV_CIPHER_BITLOCKER) in validate_keys_sizes() 117 switch (ctx_p->cipher_mode) { in validate_data_size() 142 switch (ctx_p->cipher_mode) { in validate_data_size() 174 ctx_p->cipher_mode = cc_alg->cipher_mode; in cc_cipher_init() [all …]
|
D | cc_aead.c | 58 enum drv_cipher_mode cipher_mode; member 141 ctx->cipher_mode = cc_alg->cipher_mode; in cc_aead_init() 235 ctx->authsize, ctx->cipher_mode); in cc_aead_complete() 570 if (ctx->cipher_mode == DRV_CIPHER_CTR) { in cc_aead_setkey() 947 if (ctx->cipher_mode == DRV_CIPHER_CTR) in cc_set_cipher_desc() 951 set_cipher_mode(&desc[idx], ctx->cipher_mode); in cc_set_cipher_desc() 969 set_cipher_mode(&desc[idx], ctx->cipher_mode); in cc_set_cipher_desc() 1339 if (ctx->cipher_mode == DRV_CIPHER_CBC && in validate_data_size() 1342 if (ctx->cipher_mode == DRV_CIPHER_CCM) in validate_data_size() 1344 if (ctx->cipher_mode == DRV_CIPHER_GCTR) { in validate_data_size() [all …]
|
D | cc_driver.h | 168 int cipher_mode; member 185 int cipher_mode; member
|
D | cc_aead.h | 100 enum drv_cipher_mode cipher_mode; member
|
D | cc_hw_queue_defs.h | 512 enum drv_cipher_mode cipher_mode, in set_hash_cipher_mode() argument 515 set_cipher_mode(pdesc, cipher_mode); in set_hash_cipher_mode()
|
D | cc_buffer_mgr.c | 506 if (areq_ctx->cipher_mode == DRV_CIPHER_GCTR) { in cc_unmap_aead_request() 1073 if (areq_ctx->cipher_mode == DRV_CIPHER_GCTR) { in cc_map_aead_request()
|
/Linux-v5.4/drivers/crypto/bcm/ |
D | spu.h | 193 static __always_inline bool spu_req_incl_icv(enum spu_cipher_mode cipher_mode, in spu_req_incl_icv() argument 196 if ((cipher_mode == CIPHER_MODE_GCM) && !is_encrypt) in spu_req_incl_icv() 198 if ((cipher_mode == CIPHER_MODE_CCM) && !is_encrypt) in spu_req_incl_icv() 221 enum spu_cipher_mode cipher_mode, 224 enum spu_cipher_mode cipher_mode, 230 u32 spum_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, 232 u32 spum_assoc_resp_len(enum spu_cipher_mode cipher_mode, 235 u8 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len); 236 bool spu_req_incl_icv(enum spu_cipher_mode cipher_mode, bool is_encrypt);
|
D | spu.c | 32 u32 cipher_mode; in spum_dump_msg_hdr() local 77 cipher_mode = (cflags & CIPHER_MODE) >> CIPHER_MODE_SHIFT; in spum_dump_msg_hdr() 80 cipher_alg, cipher_mode, cipher_type); in spum_dump_msg_hdr() 253 if (cipher_mode == CIPHER_MODE_XTS) { in spum_dump_msg_hdr() 337 enum spu_cipher_mode cipher_mode, in spum_ns2_ctx_max_payload() argument 344 if (cipher_mode == CIPHER_MODE_XTS) in spum_ns2_ctx_max_payload() 366 enum spu_cipher_mode cipher_mode, in spum_nsp_ctx_max_payload() argument 373 if (cipher_mode == CIPHER_MODE_XTS) in spum_nsp_ctx_max_payload() 468 u32 spum_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, in spum_gcm_ccm_pad_len() argument 474 if ((cipher_mode == CIPHER_MODE_GCM) || in spum_gcm_ccm_pad_len() [all …]
|
D | spu2.h | 176 enum spu_cipher_mode cipher_mode, 182 u32 spu2_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, 184 u32 spu2_assoc_resp_len(enum spu_cipher_mode cipher_mode, 187 u8 spu2_aead_ivlen(enum spu_cipher_mode cipher_mode,
|
D | spu2.c | 66 static char *spu2_ciph_mode_name(enum spu2_cipher_mode cipher_mode) in spu2_ciph_mode_name() argument 68 if (cipher_mode >= SPU2_CIPHER_MODE_LAST) in spu2_ciph_mode_name() 70 return spu2_cipher_mode_names[cipher_mode]; in spu2_ciph_mode_name() 91 static int spu2_cipher_mode_xlate(enum spu_cipher_mode cipher_mode, in spu2_cipher_mode_xlate() argument 94 switch (cipher_mode) { in spu2_cipher_mode_xlate() 137 enum spu_cipher_mode cipher_mode, in spu2_cipher_xlate() argument 144 err = spu2_cipher_mode_xlate(cipher_mode, spu2_mode); in spu2_cipher_xlate() 146 flow_log("Invalid cipher mode %d\n", cipher_mode); in spu2_cipher_xlate() 612 enum spu2_cipher_mode cipher_mode, in spu2_fmd_ctrl0_write() argument 622 ((u64)cipher_mode << SPU2_CIPH_MODE_SHIFT); in spu2_fmd_ctrl0_write() [all …]
|
D | cipher.h | 359 enum spu_cipher_mode cipher_mode, 367 u32 (*spu_gcm_ccm_pad_len)(enum spu_cipher_mode cipher_mode, 369 u32 (*spu_assoc_resp_len)(enum spu_cipher_mode cipher_mode, 372 u8 (*spu_aead_ivlen)(enum spu_cipher_mode cipher_mode,
|
/Linux-v5.4/drivers/staging/wilc1000/ |
D | wilc_hif.h | 181 u8 mode, u8 cipher_mode, u8 index); 187 u8 cipher_mode);
|
D | wilc_hif.c | 1195 u8 mode, u8 cipher_mode, u8 index) in wilc_add_ptk() argument 1207 wid_list[0].val = (s8 *)&cipher_mode; in wilc_add_ptk() 1267 u8 cipher_mode) in wilc_add_rx_gtk() argument 1301 wid_list[0].val = (s8 *)&cipher_mode; in wilc_add_rx_gtk()
|
/Linux-v5.4/drivers/scsi/pm8001/ |
D | pm80xx_hwi.c | 993 pm8001_ha->encrypt_info.cipher_mode = CIPHER_MODE_XTS; in pm80xx_get_encrypt_info() 1007 scratch3_value, pm8001_ha->encrypt_info.cipher_mode, in pm80xx_get_encrypt_info() 1017 pm8001_ha->encrypt_info.cipher_mode = 0; in pm80xx_get_encrypt_info() 1025 pm8001_ha->encrypt_info.cipher_mode = CIPHER_MODE_XTS; in pm80xx_get_encrypt_info() 1038 scratch3_value, pm8001_ha->encrypt_info.cipher_mode, in pm80xx_get_encrypt_info() 1047 pm8001_ha->encrypt_info.cipher_mode = CIPHER_MODE_XTS; in pm80xx_get_encrypt_info() 1061 scratch3_value, pm8001_ha->encrypt_info.cipher_mode, in pm80xx_get_encrypt_info()
|
D | pm8001_sas.h | 328 u32 cipher_mode; member
|
/Linux-v5.4/drivers/crypto/chelsio/ |
D | chcr_algo.c | 2817 unsigned int cipher_mode = CHCR_SCMD_CIPHER_MODE_AES_CCM; in fill_sec_cpl_for_aead() local 2856 cipher_mode, mac_mode, in fill_sec_cpl_for_aead()
|