/kernel/linux/linux-5.10/drivers/crypto/mediatek/ |
H A D | mtk-aes.c | 9 * Some ideas are from atmel-aes.c drivers. 12 #include <crypto/aes.h> 221 static inline void mtk_aes_set_mode(struct mtk_aes_rec *aes, in mtk_aes_set_mode() argument 225 aes->flags = (aes->flags & AES_FLAGS_BUSY) | rctx->mode; in mtk_aes_set_mode() 246 struct mtk_aes_rec *aes, in mtk_aes_complete() 249 aes->flags &= ~AES_FLAGS_BUSY; in mtk_aes_complete() 250 aes->areq->complete(aes->areq, err); in mtk_aes_complete() 252 tasklet_schedule(&aes in mtk_aes_complete() 245 mtk_aes_complete(struct mtk_cryp *cryp, struct mtk_aes_rec *aes, int err) mtk_aes_complete() argument 260 mtk_aes_xmit(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_xmit() argument 322 mtk_aes_unmap(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_unmap() argument 354 mtk_aes_map(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_map() argument 397 mtk_aes_info_init(struct mtk_cryp *cryp, struct mtk_aes_rec *aes, size_t len) mtk_aes_info_init() argument 446 mtk_aes_dma(struct mtk_cryp *cryp, struct mtk_aes_rec *aes, struct scatterlist *src, struct scatterlist *dst, size_t len) mtk_aes_dma() argument 495 struct mtk_aes_rec *aes = cryp->aes[id]; mtk_aes_handle_queue() local 530 mtk_aes_transfer_complete(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_transfer_complete() argument 536 mtk_aes_start(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_start() argument 553 mtk_aes_ctr_transfer(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_ctr_transfer() argument 602 mtk_aes_ctr_start(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_ctr_start() argument 831 mtk_aes_gcm_tag_verify(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_gcm_tag_verify() argument 841 mtk_aes_gcm_info_init(struct mtk_cryp *cryp, struct mtk_aes_rec *aes, size_t len) mtk_aes_gcm_info_init() argument 879 mtk_aes_gcm_dma(struct mtk_cryp *cryp, struct mtk_aes_rec *aes, struct scatterlist *src, struct scatterlist *dst, size_t len) mtk_aes_gcm_dma() argument 922 mtk_aes_gcm_start(struct mtk_cryp *cryp, struct mtk_aes_rec *aes) mtk_aes_gcm_start() argument 1085 struct mtk_aes_rec *aes = (struct mtk_aes_rec *)data; mtk_aes_queue_task() local 1092 struct mtk_aes_rec *aes = (struct mtk_aes_rec *)data; mtk_aes_done_task() local 1101 struct mtk_aes_rec *aes = (struct mtk_aes_rec *)dev_id; mtk_aes_irq() local 1127 struct mtk_aes_rec **aes = cryp->aes; mtk_aes_record_init() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/ccp/ |
H A D | ccp-crypto-aes-cmac.c | 16 #include <crypto/aes.h> 69 if (!ctx->u.aes.key_len) in ccp_do_cmac_update() 153 cmac_key_sg = (need_pad) ? &ctx->u.aes.k2_sg in ccp_do_cmac_update() 154 : &ctx->u.aes.k1_sg; in ccp_do_cmac_update() 159 rctx->cmd.u.aes.type = ctx->u.aes.type; in ccp_do_cmac_update() 160 rctx->cmd.u.aes.mode = ctx->u.aes.mode; in ccp_do_cmac_update() 161 rctx->cmd.u.aes.action = CCP_AES_ACTION_ENCRYPT; in ccp_do_cmac_update() 162 rctx->cmd.u.aes in ccp_do_cmac_update() 264 struct crypto_aes_ctx aes; ccp_aes_cmac_setkey() local [all...] |
H A D | ccp-crypto-aes-galois.c | 17 #include <crypto/aes.h> 36 ctx->u.aes.type = CCP_AES_TYPE_128; in ccp_aes_gcm_setkey() 39 ctx->u.aes.type = CCP_AES_TYPE_192; in ccp_aes_gcm_setkey() 42 ctx->u.aes.type = CCP_AES_TYPE_256; in ccp_aes_gcm_setkey() 48 ctx->u.aes.mode = CCP_AES_MODE_GCM; in ccp_aes_gcm_setkey() 49 ctx->u.aes.key_len = key_len; in ccp_aes_gcm_setkey() 51 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_gcm_setkey() 52 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_gcm_setkey() 86 if (!ctx->u.aes in ccp_aes_gcm_crypt() [all...] |
H A D | ccp-crypto-aes.c | 16 #include <crypto/aes.h> 31 if (ctx->u.aes.mode != CCP_AES_MODE_ECB) in ccp_aes_complete() 45 ctx->u.aes.type = CCP_AES_TYPE_128; in ccp_aes_setkey() 48 ctx->u.aes.type = CCP_AES_TYPE_192; in ccp_aes_setkey() 51 ctx->u.aes.type = CCP_AES_TYPE_256; in ccp_aes_setkey() 56 ctx->u.aes.mode = alg->mode; in ccp_aes_setkey() 57 ctx->u.aes.key_len = key_len; in ccp_aes_setkey() 59 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_setkey() 60 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes in ccp_aes_setkey() [all...] |
H A D | ccp-ops.c | 478 struct ccp_aes_engine *aes = &cmd->u.aes; in ccp_run_aes_cmac_cmd() local 485 if (!((aes->key_len == AES_KEYSIZE_128) || in ccp_run_aes_cmac_cmd() 486 (aes->key_len == AES_KEYSIZE_192) || in ccp_run_aes_cmac_cmd() 487 (aes->key_len == AES_KEYSIZE_256))) in ccp_run_aes_cmac_cmd() 490 if (aes->src_len & (AES_BLOCK_SIZE - 1)) in ccp_run_aes_cmac_cmd() 493 if (aes->iv_len != AES_BLOCK_SIZE) in ccp_run_aes_cmac_cmd() 496 if (!aes->key || !aes->iv || !aes in ccp_run_aes_cmac_cmd() 634 struct ccp_aes_engine *aes = &cmd->u.aes; ccp_run_aes_gcm_cmd() local 918 struct ccp_aes_engine *aes = &cmd->u.aes; ccp_run_aes_cmd() local [all...] |
H A D | ccp-crypto-aes-xts.c | 15 #include <crypto/aes.h> 29 .name = "xts(aes)", 30 .drv_name = "xts-aes-ccp", 91 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_xts_setkey() 95 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_xts_setkey() 98 ctx->u.aes.key_len = key_len / 2; in ccp_aes_xts_setkey() 99 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_xts_setkey() 101 return crypto_skcipher_setkey(ctx->u.aes.tfm_skcipher, key, key_len); in ccp_aes_xts_setkey() 116 if (!ctx->u.aes in ccp_aes_xts_crypt() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/ccp/ |
H A D | ccp-crypto-aes-cmac.c | 16 #include <crypto/aes.h> 69 if (!ctx->u.aes.key_len) in ccp_do_cmac_update() 153 cmac_key_sg = (need_pad) ? &ctx->u.aes.k2_sg in ccp_do_cmac_update() 154 : &ctx->u.aes.k1_sg; in ccp_do_cmac_update() 159 rctx->cmd.u.aes.type = ctx->u.aes.type; in ccp_do_cmac_update() 160 rctx->cmd.u.aes.mode = ctx->u.aes.mode; in ccp_do_cmac_update() 161 rctx->cmd.u.aes.action = CCP_AES_ACTION_ENCRYPT; in ccp_do_cmac_update() 162 rctx->cmd.u.aes in ccp_do_cmac_update() 264 struct crypto_aes_ctx aes; ccp_aes_cmac_setkey() local [all...] |
H A D | ccp-crypto-aes-galois.c | 17 #include <crypto/aes.h> 36 ctx->u.aes.type = CCP_AES_TYPE_128; in ccp_aes_gcm_setkey() 39 ctx->u.aes.type = CCP_AES_TYPE_192; in ccp_aes_gcm_setkey() 42 ctx->u.aes.type = CCP_AES_TYPE_256; in ccp_aes_gcm_setkey() 48 ctx->u.aes.mode = CCP_AES_MODE_GCM; in ccp_aes_gcm_setkey() 49 ctx->u.aes.key_len = key_len; in ccp_aes_gcm_setkey() 51 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_gcm_setkey() 52 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_gcm_setkey() 86 if (!ctx->u.aes in ccp_aes_gcm_crypt() [all...] |
H A D | ccp-crypto-aes.c | 16 #include <crypto/aes.h> 32 if (ctx->u.aes.mode != CCP_AES_MODE_ECB) in ccp_aes_complete() 46 ctx->u.aes.type = CCP_AES_TYPE_128; in ccp_aes_setkey() 49 ctx->u.aes.type = CCP_AES_TYPE_192; in ccp_aes_setkey() 52 ctx->u.aes.type = CCP_AES_TYPE_256; in ccp_aes_setkey() 57 ctx->u.aes.mode = alg->mode; in ccp_aes_setkey() 58 ctx->u.aes.key_len = key_len; in ccp_aes_setkey() 60 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_setkey() 61 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes in ccp_aes_setkey() [all...] |
H A D | ccp-ops.c | 478 struct ccp_aes_engine *aes = &cmd->u.aes; in ccp_run_aes_cmac_cmd() local 485 if (!((aes->key_len == AES_KEYSIZE_128) || in ccp_run_aes_cmac_cmd() 486 (aes->key_len == AES_KEYSIZE_192) || in ccp_run_aes_cmac_cmd() 487 (aes->key_len == AES_KEYSIZE_256))) in ccp_run_aes_cmac_cmd() 490 if (aes->src_len & (AES_BLOCK_SIZE - 1)) in ccp_run_aes_cmac_cmd() 493 if (aes->iv_len != AES_BLOCK_SIZE) in ccp_run_aes_cmac_cmd() 496 if (!aes->key || !aes->iv || !aes in ccp_run_aes_cmac_cmd() 634 struct ccp_aes_engine *aes = &cmd->u.aes; ccp_run_aes_gcm_cmd() local 918 struct ccp_aes_engine *aes = &cmd->u.aes; ccp_run_aes_cmd() local [all...] |
H A D | ccp-crypto-aes-xts.c | 15 #include <crypto/aes.h> 29 .name = "xts(aes)", 30 .drv_name = "xts-aes-ccp", 91 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_xts_setkey() 95 memcpy(ctx->u.aes.key, key, key_len); in ccp_aes_xts_setkey() 98 ctx->u.aes.key_len = key_len / 2; in ccp_aes_xts_setkey() 99 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_xts_setkey() 101 return crypto_skcipher_setkey(ctx->u.aes.tfm_skcipher, key, key_len); in ccp_aes_xts_setkey() 116 if (!ctx->u.aes in ccp_aes_xts_crypt() [all...] |
/kernel/linux/linux-5.10/arch/arm64/crypto/ |
H A D | Makefile | 32 obj-$(CONFIG_CRYPTO_AES_ARM64_CE) += aes-ce-cipher.o 33 aes-ce-cipher-y := aes-ce-core.o aes-ce-glue.o 35 obj-$(CONFIG_CRYPTO_AES_ARM64_CE_CCM) += aes-ce-ccm.o 36 aes-ce-ccm-y := aes-ce-ccm-glue.o aes-ce-ccm-core.o 38 obj-$(CONFIG_CRYPTO_AES_ARM64_CE_BLK) += aes-ce-blk.o 39 aes [all...] |
H A D | aes-ce.S | 3 * linux/arch/arm64/crypto/aes-ce.S - AES cipher for ARMv8 with 58 aes\de \i0\().16b, \k\().16b 59 aes\mc \i0\().16b, \i0\().16b 61 aes\de \i1\().16b, \k\().16b 62 aes\mc \i1\().16b, \i1\().16b 64 aes\de \i2\().16b, \k\().16b 65 aes\mc \i2\().16b, \i2\().16b 66 aes\de \i3\().16b, \k\().16b 67 aes\mc \i3\().16b, \i3\().16b 69 aes\d [all...] |
/kernel/linux/linux-6.6/arch/arm64/crypto/ |
H A D | Makefile | 50 obj-$(CONFIG_CRYPTO_AES_ARM64_CE) += aes-ce-cipher.o 51 aes-ce-cipher-y := aes-ce-core.o aes-ce-glue.o 53 obj-$(CONFIG_CRYPTO_AES_ARM64_CE_CCM) += aes-ce-ccm.o 54 aes-ce-ccm-y := aes-ce-ccm-glue.o aes-ce-ccm-core.o 56 obj-$(CONFIG_CRYPTO_AES_ARM64_CE_BLK) += aes-ce-blk.o 57 aes [all...] |
H A D | aes-ce.S | 3 * linux/arch/arm64/crypto/aes-ce.S - AES cipher for ARMv8 with 58 aes\de \i0\().16b, \k\().16b 59 aes\mc \i0\().16b, \i0\().16b 61 aes\de \i1\().16b, \k\().16b 62 aes\mc \i1\().16b, \i1\().16b 64 aes\de \i2\().16b, \k\().16b 65 aes\mc \i2\().16b, \i2\().16b 66 aes\de \i3\().16b, \k\().16b 67 aes\mc \i3\().16b, \i3\().16b 69 aes\d [all...] |
/kernel/linux/linux-6.6/arch/powerpc/crypto/ |
H A D | Makefile | 8 obj-$(CONFIG_CRYPTO_AES_PPC_SPE) += aes-ppc-spe.o 16 obj-$(CONFIG_CRYPTO_AES_GCM_P10) += aes-gcm-p10-crypto.o 20 aes-ppc-spe-y := aes-spe-core.o aes-spe-keys.o aes-tab-4k.o aes-spe-modes.o aes-spe-glue.o 27 aes-gcm-p10-crypto-y := aes [all...] |
/kernel/linux/linux-5.10/drivers/crypto/nx/ |
H A D | Makefile | 4 nx-aes-cbc.o \ 5 nx-aes-ecb.o \ 6 nx-aes-gcm.o \ 7 nx-aes-ccm.o \ 8 nx-aes-ctr.o \ 9 nx-aes-xcbc.o \
|
/kernel/linux/linux-5.10/arch/arm/crypto/ |
H A D | Makefile | 6 obj-$(CONFIG_CRYPTO_AES_ARM) += aes-arm.o 7 obj-$(CONFIG_CRYPTO_AES_ARM_BS) += aes-arm-bs.o 17 obj-$(CONFIG_CRYPTO_AES_ARM_CE) += aes-arm-ce.o 24 aes-arm-y := aes-cipher-core.o aes-cipher-glue.o 25 aes-arm-bs-y := aes-neonbs-core.o aes-neonbs-glue.o 34 aes [all...] |
/kernel/linux/linux-6.6/arch/arm/crypto/ |
H A D | Makefile | 6 obj-$(CONFIG_CRYPTO_AES_ARM) += aes-arm.o 7 obj-$(CONFIG_CRYPTO_AES_ARM_BS) += aes-arm-bs.o 19 obj-$(CONFIG_CRYPTO_AES_ARM_CE) += aes-arm-ce.o 26 aes-arm-y := aes-cipher-core.o aes-cipher-glue.o 27 aes-arm-bs-y := aes-neonbs-core.o aes-neonbs-glue.o 38 aes [all...] |
/kernel/linux/linux-5.10/arch/powerpc/crypto/ |
H A D | Makefile | 8 obj-$(CONFIG_CRYPTO_AES_PPC_SPE) += aes-ppc-spe.o 17 aes-ppc-spe-y := aes-spe-core.o aes-spe-keys.o aes-tab-4k.o aes-spe-modes.o aes-spe-glue.o
|
/kernel/linux/linux-6.6/drivers/crypto/nx/ |
H A D | Makefile | 4 nx-aes-cbc.o \ 5 nx-aes-ecb.o \ 6 nx-aes-gcm.o \ 7 nx-aes-ccm.o \ 8 nx-aes-ctr.o \ 9 nx-aes-xcbc.o \
|
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | Makefile | 3 obj-$(CONFIG_CRYPTO_DEV_ATMEL_AES) += atmel-aes.o 17 obj-$(CONFIG_CRYPTO_DEV_GEODE) += geode-aes.o 28 obj-$(CONFIG_CRYPTO_DEV_OMAP_AES) += omap-aes-driver.o 29 omap-aes-driver-objs := omap-aes.o omap-aes-gcm.o 32 obj-$(CONFIG_CRYPTO_DEV_PADLOCK_AES) += padlock-aes.o
|
/kernel/linux/linux-6.6/drivers/crypto/ |
H A D | Makefile | 4 obj-$(CONFIG_CRYPTO_DEV_ATMEL_AES) += atmel-aes.o 19 obj-$(CONFIG_CRYPTO_DEV_GEODE) += geode-aes.o 28 obj-$(CONFIG_CRYPTO_DEV_OMAP_AES) += omap-aes-driver.o 29 omap-aes-driver-objs := omap-aes.o omap-aes-gcm.o 32 obj-$(CONFIG_CRYPTO_DEV_PADLOCK_AES) += padlock-aes.o
|
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl12xx/ |
H A D | debugfs.c | 80 WL12XX_DEBUGFS_FWSTATS_FILE(aes, encrypt_fail, "%u"); 81 WL12XX_DEBUGFS_FWSTATS_FILE(aes, decrypt_fail, "%u"); 82 WL12XX_DEBUGFS_FWSTATS_FILE(aes, encrypt_packets, "%u"); 83 WL12XX_DEBUGFS_FWSTATS_FILE(aes, decrypt_packets, "%u"); 84 WL12XX_DEBUGFS_FWSTATS_FILE(aes, encrypt_interrupt, "%u"); 85 WL12XX_DEBUGFS_FWSTATS_FILE(aes, decrypt_interrupt, "%u"); 180 DEBUGFS_FWSTATS_ADD(aes, encrypt_fail); in wl12xx_debugfs_add_files() 181 DEBUGFS_FWSTATS_ADD(aes, decrypt_fail); in wl12xx_debugfs_add_files() 182 DEBUGFS_FWSTATS_ADD(aes, encrypt_packets); in wl12xx_debugfs_add_files() 183 DEBUGFS_FWSTATS_ADD(aes, decrypt_packet in wl12xx_debugfs_add_files() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wl12xx/ |
H A D | debugfs.c | 80 WL12XX_DEBUGFS_FWSTATS_FILE(aes, encrypt_fail, "%u"); 81 WL12XX_DEBUGFS_FWSTATS_FILE(aes, decrypt_fail, "%u"); 82 WL12XX_DEBUGFS_FWSTATS_FILE(aes, encrypt_packets, "%u"); 83 WL12XX_DEBUGFS_FWSTATS_FILE(aes, decrypt_packets, "%u"); 84 WL12XX_DEBUGFS_FWSTATS_FILE(aes, encrypt_interrupt, "%u"); 85 WL12XX_DEBUGFS_FWSTATS_FILE(aes, decrypt_interrupt, "%u"); 180 DEBUGFS_FWSTATS_ADD(aes, encrypt_fail); in wl12xx_debugfs_add_files() 181 DEBUGFS_FWSTATS_ADD(aes, decrypt_fail); in wl12xx_debugfs_add_files() 182 DEBUGFS_FWSTATS_ADD(aes, encrypt_packets); in wl12xx_debugfs_add_files() 183 DEBUGFS_FWSTATS_ADD(aes, decrypt_packet in wl12xx_debugfs_add_files() [all...] |