/kernel/linux/linux-5.10/drivers/crypto/ccree/ |
H A D | cc_cipher.c | 48 int cipher_mode; member 78 if (ctx_p->cipher_mode != DRV_CIPHER_XTS) in validate_keys_sizes() 85 if (ctx_p->cipher_mode == DRV_CIPHER_XTS || in validate_keys_sizes() 86 ctx_p->cipher_mode == DRV_CIPHER_ESSIV) in validate_keys_sizes() 111 switch (ctx_p->cipher_mode) { in validate_data_size() 135 switch (ctx_p->cipher_mode) { in validate_data_size() 164 ctx_p->cipher_mode = cc_alg->cipher_mode; in cc_cipher_init() 168 if (ctx_p->cipher_mode == DRV_CIPHER_ESSIV) { in cc_cipher_init() 242 if (ctx_p->cipher_mode in cc_cipher_exit() 514 int cipher_mode = ctx_p->cipher_mode; cc_setup_readiv_desc() local 571 int cipher_mode = ctx_p->cipher_mode; cc_setup_state_desc() local 615 int cipher_mode = ctx_p->cipher_mode; cc_setup_xex_state_desc() local 692 int cipher_mode = ctx_p->cipher_mode; cc_setup_key_desc() local [all...] |
H A D | cc_aead.c | 59 enum drv_cipher_mode cipher_mode; member 137 ctx->cipher_mode = cc_alg->cipher_mode; in cc_aead_init() 231 ctx->authsize, ctx->cipher_mode); in cc_aead_complete() 568 if (ctx->cipher_mode == DRV_CIPHER_CTR) { in cc_aead_setkey() 937 if (ctx->cipher_mode == DRV_CIPHER_CTR) in cc_set_cipher_desc() 941 set_cipher_mode(&desc[idx], ctx->cipher_mode); in cc_set_cipher_desc() 959 set_cipher_mode(&desc[idx], ctx->cipher_mode); in cc_set_cipher_desc() 1329 if (ctx->cipher_mode == DRV_CIPHER_CBC && in validate_data_size() 1332 if (ctx->cipher_mode in validate_data_size() [all...] |
H A D | cc_driver.h | 162 int cipher_mode; member 178 int cipher_mode; member
|
H A D | cc_aead.h | 99 enum drv_cipher_mode cipher_mode; member
|
H A D | cc_hw_queue_defs.h | 504 * @cipher_mode: Any one of the modes defined in [CC7x-DESC] 508 enum drv_cipher_mode cipher_mode, in set_hash_cipher_mode() 511 set_cipher_mode(pdesc, cipher_mode); in set_hash_cipher_mode() 507 set_hash_cipher_mode(struct cc_hw_desc *pdesc, enum drv_cipher_mode cipher_mode, enum drv_hash_mode hash_mode) set_hash_cipher_mode() argument
|
H A D | cc_buffer_mgr.c | 469 if (areq_ctx->cipher_mode == DRV_CIPHER_GCTR) { in cc_unmap_aead_request() 1008 if (areq_ctx->cipher_mode == DRV_CIPHER_GCTR) { in cc_map_aead_request()
|
/kernel/linux/linux-6.6/drivers/crypto/ccree/ |
H A D | cc_cipher.c | 48 int cipher_mode; member 78 if (ctx_p->cipher_mode != DRV_CIPHER_XTS) in validate_keys_sizes() 85 if (ctx_p->cipher_mode == DRV_CIPHER_XTS || in validate_keys_sizes() 86 ctx_p->cipher_mode == DRV_CIPHER_ESSIV) in validate_keys_sizes() 112 switch (ctx_p->cipher_mode) { in validate_data_size() 136 switch (ctx_p->cipher_mode) { in validate_data_size() 167 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() 245 if (ctx_p->cipher_mode in cc_cipher_exit() 517 int cipher_mode = ctx_p->cipher_mode; cc_setup_readiv_desc() local 574 int cipher_mode = ctx_p->cipher_mode; cc_setup_state_desc() local 618 int cipher_mode = ctx_p->cipher_mode; cc_setup_xex_state_desc() local 695 int cipher_mode = ctx_p->cipher_mode; cc_setup_key_desc() local [all...] |
H A D | cc_aead.c | 59 enum drv_cipher_mode cipher_mode; member 137 ctx->cipher_mode = cc_alg->cipher_mode; in cc_aead_init() 231 ctx->authsize, ctx->cipher_mode); in cc_aead_complete() 568 if (ctx->cipher_mode == DRV_CIPHER_CTR) { in cc_aead_setkey() 937 if (ctx->cipher_mode == DRV_CIPHER_CTR) in cc_set_cipher_desc() 941 set_cipher_mode(&desc[idx], ctx->cipher_mode); in cc_set_cipher_desc() 959 set_cipher_mode(&desc[idx], ctx->cipher_mode); in cc_set_cipher_desc() 1329 if (ctx->cipher_mode == DRV_CIPHER_CBC && in validate_data_size() 1332 if (ctx->cipher_mode in validate_data_size() [all...] |
H A D | cc_driver.h | 162 int cipher_mode; member 178 int cipher_mode; member
|
H A D | cc_aead.h | 99 enum drv_cipher_mode cipher_mode; member
|
H A D | cc_hw_queue_defs.h | 504 * @cipher_mode: Any one of the modes defined in [CC7x-DESC] 508 enum drv_cipher_mode cipher_mode, in set_hash_cipher_mode() 511 set_cipher_mode(pdesc, cipher_mode); in set_hash_cipher_mode() 507 set_hash_cipher_mode(struct cc_hw_desc *pdesc, enum drv_cipher_mode cipher_mode, enum drv_hash_mode hash_mode) set_hash_cipher_mode() argument
|
/kernel/linux/linux-5.10/drivers/crypto/bcm/ |
H A D | spu.h | 188 * @cipher_mode: the cipher mode being requested 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, boo [all...] |
H A 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() 249 if (cipher_mode == CIPHER_MODE_XTS) { in spum_dump_msg_hdr() 323 * @cipher_mode: The cipher mode 333 enum spu_cipher_mode cipher_mode, in spum_ns2_ctx_max_payload() 340 if (cipher_mode == CIPHER_MODE_XTS) in spum_ns2_ctx_max_payload() 352 * @cipher_mode: The cipher mode 362 enum spu_cipher_mode cipher_mode, in spum_nsp_ctx_max_payload() 369 if (cipher_mode in spum_nsp_ctx_max_payload() 332 spum_ns2_ctx_max_payload(enum spu_cipher_alg cipher_alg, enum spu_cipher_mode cipher_mode, unsigned int blocksize) spum_ns2_ctx_max_payload() argument 361 spum_nsp_ctx_max_payload(enum spu_cipher_alg cipher_alg, enum spu_cipher_mode cipher_mode, unsigned int blocksize) spum_nsp_ctx_max_payload() argument 464 spum_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, unsigned int data_size) spum_gcm_ccm_pad_len() argument 487 spum_assoc_resp_len(enum spu_cipher_mode cipher_mode, unsigned int assoc_len, unsigned int iv_len, bool is_encrypt) spum_assoc_resp_len() argument 525 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) spum_aead_ivlen() argument [all...] |
H A 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() 129 * @cipher_mode: [in] cipher mode value from software enumeration 137 enum spu_cipher_mode cipher_mode, in spu2_cipher_xlate() 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() 604 * @cipher_mode 136 spu2_cipher_xlate(enum spu_cipher_alg cipher_alg, enum spu_cipher_mode cipher_mode, enum spu_cipher_type cipher_type, enum spu2_cipher_type *spu2_type, enum spu2_cipher_mode *spu2_mode) spu2_cipher_xlate() argument 608 spu2_fmd_ctrl0_write(struct SPU2_FMD *fmd, bool is_inbound, bool auth_first, enum spu2_proto_sel protocol, enum spu2_cipher_type cipher_type, enum spu2_cipher_mode cipher_mode, enum spu2_hash_type auth_type, enum spu2_hash_mode auth_mode) spu2_fmd_ctrl0_write() argument 781 spu2_ctx_max_payload(enum spu_cipher_alg cipher_alg, enum spu_cipher_mode cipher_mode, unsigned int blocksize) spu2_ctx_max_payload() argument 853 spu2_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, unsigned int data_size) spu2_gcm_ccm_pad_len() argument 869 spu2_assoc_resp_len(enum spu_cipher_mode cipher_mode, unsigned int assoc_len, unsigned int iv_len, bool is_encrypt) spu2_assoc_resp_len() argument 892 spu2_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) spu2_aead_ivlen() argument [all...] |
H A 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,
|
H A D | cipher.h | 361 enum spu_cipher_mode cipher_mode, 369 u32 (*spu_gcm_ccm_pad_len)(enum spu_cipher_mode cipher_mode, 371 u32 (*spu_assoc_resp_len)(enum spu_cipher_mode cipher_mode, 374 u8 (*spu_aead_ivlen)(enum spu_cipher_mode cipher_mode,
|
/kernel/linux/linux-6.6/drivers/crypto/bcm/ |
H A D | spu.h | 189 * @cipher_mode: the cipher mode being requested 194 static __always_inline bool spu_req_incl_icv(enum spu_cipher_mode cipher_mode, in spu_req_incl_icv() argument 197 if ((cipher_mode == CIPHER_MODE_GCM) && !is_encrypt) in spu_req_incl_icv() 199 if ((cipher_mode == CIPHER_MODE_CCM) && !is_encrypt) in spu_req_incl_icv() 222 enum spu_cipher_mode cipher_mode, 225 enum spu_cipher_mode cipher_mode, 231 u32 spum_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, 233 u32 spum_assoc_resp_len(enum spu_cipher_mode cipher_mode, 236 u8 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len); 237 bool spu_req_incl_icv(enum spu_cipher_mode cipher_mode, boo [all...] |
H A 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() 249 if (cipher_mode == CIPHER_MODE_XTS) { in spum_dump_msg_hdr() 321 * @cipher_mode: The cipher mode 331 enum spu_cipher_mode cipher_mode, in spum_ns2_ctx_max_payload() 338 if (cipher_mode == CIPHER_MODE_XTS) in spum_ns2_ctx_max_payload() 350 * @cipher_mode: The cipher mode 360 enum spu_cipher_mode cipher_mode, in spum_nsp_ctx_max_payload() 367 if (cipher_mode in spum_nsp_ctx_max_payload() 330 spum_ns2_ctx_max_payload(enum spu_cipher_alg cipher_alg, enum spu_cipher_mode cipher_mode, unsigned int blocksize) spum_ns2_ctx_max_payload() argument 359 spum_nsp_ctx_max_payload(enum spu_cipher_alg cipher_alg, enum spu_cipher_mode cipher_mode, unsigned int blocksize) spum_nsp_ctx_max_payload() argument 462 spum_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, unsigned int data_size) spum_gcm_ccm_pad_len() argument 485 spum_assoc_resp_len(enum spu_cipher_mode cipher_mode, unsigned int assoc_len, unsigned int iv_len, bool is_encrypt) spum_assoc_resp_len() argument 523 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) spum_aead_ivlen() argument [all...] |
H A 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() 129 * @cipher_mode: [in] cipher mode value from software enumeration 137 enum spu_cipher_mode cipher_mode, in spu2_cipher_xlate() 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() 605 * @cipher_mode 136 spu2_cipher_xlate(enum spu_cipher_alg cipher_alg, enum spu_cipher_mode cipher_mode, enum spu_cipher_type cipher_type, enum spu2_cipher_type *spu2_type, enum spu2_cipher_mode *spu2_mode) spu2_cipher_xlate() argument 609 spu2_fmd_ctrl0_write(struct SPU2_FMD *fmd, bool is_inbound, bool auth_first, enum spu2_proto_sel protocol, enum spu2_cipher_type cipher_type, enum spu2_cipher_mode cipher_mode, enum spu2_hash_type auth_type, enum spu2_hash_mode auth_mode) spu2_fmd_ctrl0_write() argument 783 spu2_ctx_max_payload(enum spu_cipher_alg cipher_alg, enum spu_cipher_mode cipher_mode, unsigned int blocksize) spu2_ctx_max_payload() argument 858 spu2_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, unsigned int data_size) spu2_gcm_ccm_pad_len() argument 874 spu2_assoc_resp_len(enum spu_cipher_mode cipher_mode, unsigned int assoc_len, unsigned int iv_len, bool is_encrypt) spu2_assoc_resp_len() argument 897 spu2_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) spu2_aead_ivlen() argument [all...] |
H A 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,
|
H A 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,
|
/kernel/linux/linux-5.10/drivers/net/wireless/microchip/wilc1000/ |
H A D | hif.h | 162 u8 mode, u8 cipher_mode, u8 index); 168 u8 cipher_mode);
|
H A D | hif.c | 1132 u8 mode, u8 cipher_mode, u8 index) in wilc_add_ptk() 1144 wid_list[0].val = (s8 *)&cipher_mode; in wilc_add_ptk() 1204 u8 cipher_mode) in wilc_add_rx_gtk() 1238 wid_list[0].val = (s8 *)&cipher_mode; in wilc_add_rx_gtk() 1130 wilc_add_ptk(struct wilc_vif *vif, const u8 *ptk, u8 ptk_key_len, const u8 *mac_addr, const u8 *rx_mic, const u8 *tx_mic, u8 mode, u8 cipher_mode, u8 index) wilc_add_ptk() argument 1201 wilc_add_rx_gtk(struct wilc_vif *vif, const u8 *rx_gtk, u8 gtk_key_len, u8 index, u32 key_rsc_len, const u8 *key_rsc, const u8 *rx_mic, const u8 *tx_mic, u8 mode, u8 cipher_mode) wilc_add_rx_gtk() argument
|
/kernel/linux/linux-6.6/drivers/net/wireless/microchip/wilc1000/ |
H A D | hif.h | 156 u8 mode, u8 cipher_mode, u8 index); 165 u8 cipher_mode);
|
H A D | hif.c | 1105 u8 mode, u8 cipher_mode, u8 index) in wilc_add_ptk() 1117 wid_list[0].val = (s8 *)&cipher_mode; in wilc_add_ptk() 1207 u8 cipher_mode) in wilc_add_rx_gtk() 1241 wid_list[0].val = (s8 *)&cipher_mode; in wilc_add_rx_gtk() 1103 wilc_add_ptk(struct wilc_vif *vif, const u8 *ptk, u8 ptk_key_len, const u8 *mac_addr, const u8 *rx_mic, const u8 *tx_mic, u8 mode, u8 cipher_mode, u8 index) wilc_add_ptk() argument 1204 wilc_add_rx_gtk(struct wilc_vif *vif, const u8 *rx_gtk, u8 gtk_key_len, u8 index, u32 key_rsc_len, const u8 *key_rsc, const u8 *rx_mic, const u8 *tx_mic, u8 mode, u8 cipher_mode) wilc_add_rx_gtk() argument
|