Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/crypto/ccree/
Dcc_cipher.c40 int cipher_mode; member
65 if (ctx_p->cipher_mode != DRV_CIPHER_XTS && in validate_keys_sizes()
66 ctx_p->cipher_mode != DRV_CIPHER_ESSIV && in validate_keys_sizes()
67 ctx_p->cipher_mode != DRV_CIPHER_BITLOCKER) in validate_keys_sizes()
74 if (ctx_p->cipher_mode == DRV_CIPHER_XTS || in validate_keys_sizes()
75 ctx_p->cipher_mode == DRV_CIPHER_ESSIV || in validate_keys_sizes()
76 ctx_p->cipher_mode == DRV_CIPHER_BITLOCKER) in validate_keys_sizes()
97 switch (ctx_p->cipher_mode) { in validate_data_size()
147 ctx_p->cipher_mode = cc_alg->cipher_mode; in cc_cipher_init()
171 if (ctx_p->cipher_mode == DRV_CIPHER_ESSIV) { in cc_cipher_init()
[all …]
Dcc_aead.c61 enum drv_cipher_mode cipher_mode; member
137 ctx->cipher_mode = cc_alg->cipher_mode; in cc_aead_init()
226 ctx->authsize, ctx->cipher_mode); in cc_aead_complete()
247 if (ctx->cipher_mode == DRV_CIPHER_CTR) in cc_aead_complete()
251 else if (ctx->cipher_mode == DRV_CIPHER_CCM) in cc_aead_complete()
571 if (ctx->cipher_mode == DRV_CIPHER_CTR) { in cc_aead_setkey()
928 if (ctx->cipher_mode == DRV_CIPHER_CTR) in cc_set_cipher_desc()
932 set_cipher_mode(&desc[idx], ctx->cipher_mode); in cc_set_cipher_desc()
950 set_cipher_mode(&desc[idx], ctx->cipher_mode); in cc_set_cipher_desc()
1318 if (ctx->cipher_mode == DRV_CIPHER_CBC && in validate_data_size()
[all …]
Dcc_driver.h138 int cipher_mode; member
155 int cipher_mode; member
Dcc_aead.h100 enum drv_cipher_mode cipher_mode; member
Dcc_buffer_mgr.c582 if (areq_ctx->cipher_mode == DRV_CIPHER_GCTR) { in cc_unmap_aead_request()
1245 if (areq_ctx->cipher_mode == DRV_CIPHER_GCTR) { in cc_map_aead_request()
/Linux-v4.19/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.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,
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 …]
Dcipher.h372 enum spu_cipher_mode cipher_mode,
380 u32 (*spu_gcm_ccm_pad_len)(enum spu_cipher_mode cipher_mode,
382 u32 (*spu_assoc_resp_len)(enum spu_cipher_mode cipher_mode,
385 u8 (*spu_aead_ivlen)(enum spu_cipher_mode cipher_mode,
/Linux-v4.19/drivers/staging/wilc1000/
Dhost_interface.h309 u8 mode, u8 cipher_mode, u8 index);
315 u8 cipher_mode);
Dhost_interface.c2868 u8 mode, u8 cipher_mode, u8 index) in wilc_add_ptk() argument
2914 msg->body.key_info.attr.wpa.mode = cipher_mode; in wilc_add_ptk()
2935 u8 cipher_mode) in wilc_add_rx_gtk() argument
2971 msg->body.key_info.attr.wpa.mode = cipher_mode; in wilc_add_rx_gtk()
/Linux-v4.19/drivers/scsi/pm8001/
Dpm80xx_hwi.c990 pm8001_ha->encrypt_info.cipher_mode = CIPHER_MODE_XTS; in pm80xx_get_encrypt_info()
1004 scratch3_value, pm8001_ha->encrypt_info.cipher_mode, in pm80xx_get_encrypt_info()
1014 pm8001_ha->encrypt_info.cipher_mode = 0; in pm80xx_get_encrypt_info()
1022 pm8001_ha->encrypt_info.cipher_mode = CIPHER_MODE_XTS; in pm80xx_get_encrypt_info()
1035 scratch3_value, pm8001_ha->encrypt_info.cipher_mode, in pm80xx_get_encrypt_info()
1044 pm8001_ha->encrypt_info.cipher_mode = CIPHER_MODE_XTS; in pm80xx_get_encrypt_info()
1058 scratch3_value, pm8001_ha->encrypt_info.cipher_mode, in pm80xx_get_encrypt_info()
Dpm8001_sas.h329 u32 cipher_mode; member
/Linux-v4.19/drivers/crypto/chelsio/
Dchcr_algo.c2763 unsigned int cipher_mode = CHCR_SCMD_CIPHER_MODE_AES_CCM; in fill_sec_cpl_for_aead() local
2802 cipher_mode, mac_mode, in fill_sec_cpl_for_aead()