Home
last modified time | relevance | path

Searched refs:cipher_mode (Results 1 – 15 of 15) sorted by relevance

/drivers/staging/ccree/
Dssi_cipher.c61 int cipher_mode; member
79 if (likely((ctx_p->cipher_mode != DRV_CIPHER_XTS) && in validate_keys_sizes()
80 (ctx_p->cipher_mode != DRV_CIPHER_ESSIV) && in validate_keys_sizes()
81 (ctx_p->cipher_mode != DRV_CIPHER_BITLOCKER))) in validate_keys_sizes()
88 if (likely((ctx_p->cipher_mode == DRV_CIPHER_XTS) || in validate_keys_sizes()
89 (ctx_p->cipher_mode == DRV_CIPHER_ESSIV) || in validate_keys_sizes()
90 (ctx_p->cipher_mode == DRV_CIPHER_BITLOCKER))) in validate_keys_sizes()
116 switch (ctx_p->cipher_mode) { in validate_data_size()
147 switch (ctx_p->cipher_mode) { in validate_data_size()
191 ctx_p->cipher_mode = ssi_alg->cipher_mode; in ssi_blkcipher_init()
[all …]
Dssi_aead.c83 enum drv_cipher_mode cipher_mode; member
157 ctx->cipher_mode = ssi_alg->cipher_mode; in ssi_aead_init()
245 ctx->authsize, ctx->cipher_mode); in ssi_aead_complete()
260 if (ctx->cipher_mode == DRV_CIPHER_CTR) in ssi_aead_complete()
262 else if (ctx->cipher_mode == DRV_CIPHER_CCM) in ssi_aead_complete()
576 if (ctx->cipher_mode == DRV_CIPHER_CTR) { in ssi_aead_setkey()
941 if (ctx->cipher_mode == DRV_CIPHER_CTR) in ssi_aead_setup_cipher_desc()
945 set_cipher_mode(&desc[idx], ctx->cipher_mode); in ssi_aead_setup_cipher_desc()
963 set_cipher_mode(&desc[idx], ctx->cipher_mode); in ssi_aead_setup_cipher_desc()
1348 if (unlikely((ctx->cipher_mode == DRV_CIPHER_CBC) && in validate_data_size()
[all …]
Dssi_driver.h159 int cipher_mode; member
179 int cipher_mode; member
Dssi_aead.h108 enum drv_cipher_mode cipher_mode; member
Dssi_buffer_mgr.c638 if (areq_ctx->cipher_mode == DRV_CIPHER_GCTR) { in ssi_buffer_mgr_unmap_aead_request()
1360 if (areq_ctx->cipher_mode == DRV_CIPHER_GCTR) { in ssi_buffer_mgr_map_aead_request()
/drivers/crypto/bcm/
Dspu.h204 static __always_inline bool spu_req_incl_icv(enum spu_cipher_mode cipher_mode, in spu_req_incl_icv() argument
207 if ((cipher_mode == CIPHER_MODE_GCM) && !is_encrypt) in spu_req_incl_icv()
209 if ((cipher_mode == CIPHER_MODE_CCM) && !is_encrypt) in spu_req_incl_icv()
232 enum spu_cipher_mode cipher_mode,
235 enum spu_cipher_mode cipher_mode,
241 u32 spum_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode,
243 u32 spum_assoc_resp_len(enum spu_cipher_mode cipher_mode,
246 u8 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len);
247 bool spu_req_incl_icv(enum spu_cipher_mode cipher_mode, bool is_encrypt);
Dspu.c46 u32 cipher_mode; in spum_dump_msg_hdr() local
91 cipher_mode = (cflags & CIPHER_MODE) >> CIPHER_MODE_SHIFT; in spum_dump_msg_hdr()
94 cipher_alg, cipher_mode, cipher_type); in spum_dump_msg_hdr()
267 if (cipher_mode == CIPHER_MODE_XTS) { in spum_dump_msg_hdr()
351 enum spu_cipher_mode cipher_mode, in spum_ns2_ctx_max_payload() argument
358 if (cipher_mode == CIPHER_MODE_XTS) in spum_ns2_ctx_max_payload()
380 enum spu_cipher_mode cipher_mode, in spum_nsp_ctx_max_payload() argument
387 if (cipher_mode == CIPHER_MODE_XTS) in spum_nsp_ctx_max_payload()
482 u32 spum_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, in spum_gcm_ccm_pad_len() argument
488 if ((cipher_mode == CIPHER_MODE_GCM) || in spum_gcm_ccm_pad_len()
[all …]
Dspu2.c77 static char *spu2_ciph_mode_name(enum spu2_cipher_mode cipher_mode) in spu2_ciph_mode_name() argument
79 if (cipher_mode >= SPU2_CIPHER_MODE_LAST) in spu2_ciph_mode_name()
81 return spu2_cipher_mode_names[cipher_mode]; in spu2_ciph_mode_name()
102 static int spu2_cipher_mode_xlate(enum spu_cipher_mode cipher_mode, in spu2_cipher_mode_xlate() argument
105 switch (cipher_mode) { in spu2_cipher_mode_xlate()
148 enum spu_cipher_mode cipher_mode, in spu2_cipher_xlate() argument
155 err = spu2_cipher_mode_xlate(cipher_mode, spu2_mode); in spu2_cipher_xlate()
157 flow_log("Invalid cipher mode %d\n", cipher_mode); in spu2_cipher_xlate()
623 enum spu2_cipher_mode cipher_mode, in spu2_fmd_ctrl0_write() argument
633 ((u64)cipher_mode << SPU2_CIPH_MODE_SHIFT); in spu2_fmd_ctrl0_write()
[all …]
Dspu2.h187 enum spu_cipher_mode cipher_mode,
193 u32 spu2_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode,
195 u32 spu2_assoc_resp_len(enum spu_cipher_mode cipher_mode,
198 u8 spu2_aead_ivlen(enum spu_cipher_mode cipher_mode,
Dcipher.h373 enum spu_cipher_mode cipher_mode,
381 u32 (*spu_gcm_ccm_pad_len)(enum spu_cipher_mode cipher_mode,
383 u32 (*spu_assoc_resp_len)(enum spu_cipher_mode cipher_mode,
386 u8 (*spu_aead_ivlen)(enum spu_cipher_mode cipher_mode,
/drivers/staging/wilc1000/
Dhost_interface.h311 u8 mode, u8 cipher_mode, u8 index);
317 u8 cipher_mode);
Dhost_interface.c2813 u8 mode, u8 cipher_mode, u8 index) in wilc_add_ptk() argument
2854 msg.body.key_info.attr.wpa.mode = cipher_mode; in wilc_add_ptk()
2870 u8 cipher_mode) in wilc_add_rx_gtk() argument
2903 msg.body.key_info.attr.wpa.mode = cipher_mode; in wilc_add_rx_gtk()
/drivers/scsi/pm8001/
Dpm80xx_hwi.c982 pm8001_ha->encrypt_info.cipher_mode = CIPHER_MODE_XTS; in pm80xx_get_encrypt_info()
996 scratch3_value, pm8001_ha->encrypt_info.cipher_mode, in pm80xx_get_encrypt_info()
1006 pm8001_ha->encrypt_info.cipher_mode = 0; in pm80xx_get_encrypt_info()
1014 pm8001_ha->encrypt_info.cipher_mode = CIPHER_MODE_XTS; in pm80xx_get_encrypt_info()
1027 scratch3_value, pm8001_ha->encrypt_info.cipher_mode, in pm80xx_get_encrypt_info()
1036 pm8001_ha->encrypt_info.cipher_mode = CIPHER_MODE_XTS; in pm80xx_get_encrypt_info()
1050 scratch3_value, pm8001_ha->encrypt_info.cipher_mode, in pm80xx_get_encrypt_info()
Dpm8001_sas.h322 u32 cipher_mode; member
/drivers/crypto/chelsio/
Dchcr_algo.c2200 unsigned int cipher_mode = CHCR_SCMD_CIPHER_MODE_AES_CCM; in fill_sec_cpl_for_aead() local
2240 cipher_mode, mac_mode, in fill_sec_cpl_for_aead()