Home
last modified time | relevance | path

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

/openbmc/linux/drivers/crypto/ccree/
H A Dcc_cipher.c48 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 == DRV_CIPHER_ESSIV) { in cc_cipher_exit()
350 if (ctx_p->cipher_mode == DRV_CIPHER_XTS || in cc_cipher_sethkey()
[all …]
H A Dcc_aead.c59 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 == DRV_CIPHER_CCM) in validate_data_size()
1334 if (ctx->cipher_mode == DRV_CIPHER_GCTR) { in validate_data_size()
[all …]
H A Dcc_driver.h162 int cipher_mode; member
178 int cipher_mode; member
H A Dcc_aead.h99 enum drv_cipher_mode cipher_mode; member
H A Dcc_hw_queue_defs.h508 enum drv_cipher_mode cipher_mode, in set_hash_cipher_mode() argument
511 set_cipher_mode(pdesc, cipher_mode); in set_hash_cipher_mode()
H A Dcc_buffer_mgr.c469 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()
/openbmc/qemu/tests/unit/
H A Dtest-crypto-block.c82 .cipher_mode = QCRYPTO_CIPHER_MODE_CBC,
96 .cipher_mode = QCRYPTO_CIPHER_MODE_CBC,
116 QCryptoCipherMode cipher_mode; member
132 .cipher_mode = QCRYPTO_CIPHER_MODE_CBC,
145 .cipher_mode = QCRYPTO_CIPHER_MODE_XTS,
160 .cipher_mode = QCRYPTO_CIPHER_MODE_CBC,
175 .cipher_mode = QCRYPTO_CIPHER_MODE_CBC,
261 g_assert_cmpint(data->cipher_mode, ==, cipher->mode); in test_block_assert_setup()
408 char *offset = hdr->cipher_mode + strlen(hdr->cipher_mode); in luks_bad_null_term_cipher_mode()
409 memset(offset, ' ', sizeof(hdr->cipher_mode) - (offset - hdr->cipher_mode)); in luks_bad_null_term_cipher_mode()
[all …]
/openbmc/linux/drivers/crypto/bcm/
H A Dspu.h194 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, bool is_encrypt);
H A Dspu.c32 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()
331 enum spu_cipher_mode cipher_mode, in spum_ns2_ctx_max_payload() argument
338 if (cipher_mode == CIPHER_MODE_XTS) in spum_ns2_ctx_max_payload()
360 enum spu_cipher_mode cipher_mode, in spum_nsp_ctx_max_payload() argument
367 if (cipher_mode == CIPHER_MODE_XTS) in spum_nsp_ctx_max_payload()
462 u32 spum_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, in spum_gcm_ccm_pad_len() argument
468 if ((cipher_mode == CIPHER_MODE_GCM) || in spum_gcm_ccm_pad_len()
[all …]
H A Dspu2.c66 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()
613 enum spu2_cipher_mode cipher_mode, in spu2_fmd_ctrl0_write() argument
623 ((u64)cipher_mode << SPU2_CIPH_MODE_SHIFT); in spu2_fmd_ctrl0_write()
[all …]
H A Dspu2.h176 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 Dcipher.h359 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,
/openbmc/qemu/crypto/
H A Dblock-luks.c129 QCryptoCipherMode cipher_mode; member
500 if (!memchr(luks->header.cipher_mode, '\0', in qcrypto_block_luks_check_header()
501 sizeof(luks->header.cipher_mode))) { in qcrypto_block_luks_check_header()
595 g_autofree char *cipher_mode = g_strdup(luks->header.cipher_mode); in qcrypto_block_luks_parse_header() local
607 ivgen_name = strchr(cipher_mode, '-'); in qcrypto_block_luks_parse_header()
610 luks->header.cipher_mode); in qcrypto_block_luks_parse_header()
631 luks->cipher_mode = qcrypto_block_luks_cipher_mode_lookup(cipher_mode, in qcrypto_block_luks_parse_header()
640 luks->cipher_mode, in qcrypto_block_luks_parse_header()
790 luks->cipher_mode, in qcrypto_block_luks_store_key()
940 luks->cipher_mode, in qcrypto_block_luks_load_key()
[all …]
H A Dblock-luks-priv.h110 char cipher_mode[QCRYPTO_BLOCK_LUKS_CIPHER_MODE_LEN]; member
/openbmc/linux/drivers/net/wireless/microchip/wilc1000/
H A Dhif.h156 u8 mode, u8 cipher_mode, u8 index);
165 u8 cipher_mode);
H A Dhif.c1108 u8 mode, u8 cipher_mode, u8 index) in wilc_add_ptk() argument
1120 wid_list[0].val = (s8 *)&cipher_mode; in wilc_add_ptk()
1210 u8 cipher_mode) in wilc_add_rx_gtk() argument
1244 wid_list[0].val = (s8 *)&cipher_mode; in wilc_add_rx_gtk()
/openbmc/estoraged/src/test/include/
H A Destoraged_test.hpp48 const char* cipher_mode, const char* uuid,
/openbmc/linux/drivers/scsi/pm8001/
H A Dpm80xx_hwi.c1317 pm8001_ha->encrypt_info.cipher_mode = CIPHER_MODE_XTS; in pm80xx_get_encrypt_info()
1331 pm8001_ha->encrypt_info.cipher_mode, in pm80xx_get_encrypt_info()
1341 pm8001_ha->encrypt_info.cipher_mode = 0; in pm80xx_get_encrypt_info()
1349 pm8001_ha->encrypt_info.cipher_mode = CIPHER_MODE_XTS; in pm80xx_get_encrypt_info()
1362 pm8001_ha->encrypt_info.cipher_mode, in pm80xx_get_encrypt_info()
1371 pm8001_ha->encrypt_info.cipher_mode = CIPHER_MODE_XTS; in pm80xx_get_encrypt_info()
1385 pm8001_ha->encrypt_info.cipher_mode, in pm80xx_get_encrypt_info()
H A Dpm8001_sas.h316 u32 cipher_mode; member
/openbmc/linux/drivers/crypto/chelsio/
H A Dchcr_algo.c2968 unsigned int cipher_mode = CHCR_SCMD_CIPHER_MODE_AES_CCM; in fill_sec_cpl_for_aead() local
3007 cipher_mode, mac_mode, in fill_sec_cpl_for_aead()