Home
last modified time | relevance | path

Searched refs:aes (Results 1 – 25 of 107) sorted by relevance

12345

/linux-6.3-rc2/drivers/crypto/ccp/
A Dccp-crypto-aes-cmac.c159 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()
162 rctx->cmd.u.aes.key = &ctx->u.aes.key_sg; in ccp_do_cmac_update()
163 rctx->cmd.u.aes.key_len = ctx->u.aes.key_len; in ccp_do_cmac_update()
170 rctx->cmd.u.aes.cmac_key_len = ctx->u.aes.kn_len; in ccp_do_cmac_update()
292 memset(ctx->u.aes.key, 0, sizeof(ctx->u.aes.key)); in ccp_aes_cmac_setkey()
293 aes_encrypt(&aes, ctx->u.aes.key, ctx->u.aes.key); in ccp_aes_cmac_setkey()
294 memzero_explicit(&aes, sizeof(aes)); in ccp_aes_cmac_setkey()
322 ctx->u.aes.kn_len = sizeof(ctx->u.aes.k1); in ccp_aes_cmac_setkey()
323 sg_init_one(&ctx->u.aes.k1_sg, ctx->u.aes.k1, sizeof(ctx->u.aes.k1)); in ccp_aes_cmac_setkey()
[all …]
A Dccp-crypto-aes-galois.c49 ctx->u.aes.key_len = 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.key_len) in ccp_aes_gcm_crypt()
120 rctx->cmd.u.aes.type = ctx->u.aes.type; in ccp_aes_gcm_crypt()
121 rctx->cmd.u.aes.mode = ctx->u.aes.mode; in ccp_aes_gcm_crypt()
123 rctx->cmd.u.aes.key = &ctx->u.aes.key_sg; in ccp_aes_gcm_crypt()
124 rctx->cmd.u.aes.key_len = ctx->u.aes.key_len; in ccp_aes_gcm_crypt()
125 rctx->cmd.u.aes.iv = iv_sg; in ccp_aes_gcm_crypt()
127 rctx->cmd.u.aes.src = req->src; in ccp_aes_gcm_crypt()
132 rctx->cmd.u.aes.dst = req->dst; in ccp_aes_gcm_crypt()
[all …]
A Dccp-crypto-aes.c57 ctx->u.aes.mode = alg->mode; in ccp_aes_setkey()
61 sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len); in ccp_aes_setkey()
74 if (!ctx->u.aes.key_len) in ccp_aes_crypt()
95 rctx->cmd.u.aes.type = ctx->u.aes.type; in ccp_aes_crypt()
96 rctx->cmd.u.aes.mode = ctx->u.aes.mode; in ccp_aes_crypt()
97 rctx->cmd.u.aes.action = in ccp_aes_crypt()
99 rctx->cmd.u.aes.key = &ctx->u.aes.key_sg; in ccp_aes_crypt()
100 rctx->cmd.u.aes.key_len = ctx->u.aes.key_len; in ccp_aes_crypt()
101 rctx->cmd.u.aes.iv = iv_sg; in ccp_aes_crypt()
125 ctx->u.aes.key_len = 0; in ccp_aes_init_tfm()
[all …]
A Dccp-ops.c493 if (!aes->key || !aes->iv || !aes->src) in ccp_run_aes_cmac_cmd()
514 op.u.aes.type = aes->type; in ccp_run_aes_cmac_cmd()
515 op.u.aes.mode = aes->mode; in ccp_run_aes_cmac_cmd()
516 op.u.aes.action = aes->action; in ccp_run_aes_cmac_cmd()
701 op.u.aes.type = aes->type; in ccp_run_aes_gcm_cmd()
770 op.u.aes.action = aes->action; in ccp_run_aes_gcm_cmd()
853 op.u.aes.type = aes->type; in ccp_run_aes_gcm_cmd()
933 if (!aes->key || !aes->src || !aes->dst) in ccp_run_aes_cmd()
954 op.u.aes.type = aes->type; in ccp_run_aes_cmd()
955 op.u.aes.mode = aes->mode; in ccp_run_aes_cmd()
[all …]
A Dccp-crypto-aes-xts.c91 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()
116 if (!ctx->u.aes.key_len) in ccp_aes_xts_crypt()
142 (ctx->u.aes.key_len != AES_KEYSIZE_128)) in ccp_aes_xts_crypt()
145 (ctx->u.aes.key_len != AES_KEYSIZE_256)) in ccp_aes_xts_crypt()
152 ctx->u.aes.tfm_skcipher); in ccp_aes_xts_crypt()
174 rctx->cmd.u.xts.key = &ctx->u.aes.key_sg; in ccp_aes_xts_crypt()
203 ctx->u.aes.key_len = 0; in ccp_aes_xts_init_tfm()
[all …]
A DMakefile17 ccp-crypto-aes.o \
18 ccp-crypto-aes-cmac.o \
19 ccp-crypto-aes-xts.o \
20 ccp-crypto-aes-galois.o \
/linux-6.3-rc2/arch/arm64/crypto/
A DMakefile50 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
57 aes-ce-blk-y := aes-glue-ce.o aes-ce.o
60 aes-neon-blk-y := aes-glue-neon.o aes-neon.o
78 obj-$(CONFIG_CRYPTO_AES_ARM64) += aes-arm64.o
79 aes-arm64-y := aes-cipher-core.o aes-cipher-glue.o
81 obj-$(CONFIG_CRYPTO_AES_ARM64_BS) += aes-neon-bs.o
82 aes-neon-bs-y := aes-neonbs-core.o aes-neonbs-glue.o
[all …]
A Daes-ce.S58 aes\de \i0\().16b, \k\().16b
59 aes\mc \i0\().16b, \i0\().16b
61 aes\de \i1\().16b, \k\().16b
64 aes\de \i2\().16b, \k\().16b
66 aes\de \i3\().16b, \k\().16b
69 aes\de \i4\().16b, \k\().16b
87 aes\de \i0\().16b, \k\().16b
89 aes\de \i1\().16b, \k\().16b
91 aes\de \i2\().16b, \k\().16b
92 aes\de \i3\().16b, \k\().16b
[all …]
/linux-6.3-rc2/arch/arm/crypto/
A DMakefile6 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-arm-ce-y := aes-ce-core.o aes-ce-glue.o
/linux-6.3-rc2/arch/powerpc/crypto/
A DMakefile8 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
/linux-6.3-rc2/drivers/crypto/nx/
A DMakefile5 nx-aes-cbc.o \
6 nx-aes-ecb.o \
7 nx-aes-gcm.o \
8 nx-aes-ccm.o \
9 nx-aes-ctr.o \
10 nx-aes-xcbc.o \
/linux-6.3-rc2/Documentation/devicetree/bindings/crypto/
A Domap-aes.txt7 - "ti,omap2-aes" for OMAP2.
8 - "ti,omap3-aes" for OMAP3.
9 - "ti,omap4-aes" for OMAP4 and AM33XX.
23 aes: aes@53500000 {
24 compatible = "ti,omap4-aes";
25 ti,hwmods = "aes";
A Dxlnx,zynqmp-aes.yaml4 $id: http://devicetree.org/schemas/crypto/xlnx,zynqmp-aes.yaml#
19 const: xlnx,zynqmp-aes
32 xlnx_aes: zynqmp-aes {
33 compatible = "xlnx,zynqmp-aes";
A Datmel,at91sam9g46-aes.yaml5 $id: http://devicetree.org/schemas/crypto/atmel,at91sam9g46-aes.yaml#
15 const: atmel,at91sam9g46-aes
57 aes: crypto@e1810000 {
58 compatible = "atmel,at91sam9g46-aes";
A Dintel,keembay-ocs-aes.yaml4 $id: http://devicetree.org/schemas/crypto/intel,keembay-ocs-aes.yaml#
18 const: intel,keembay-ocs-aes
41 compatible = "intel,keembay-ocs-aes";
/linux-6.3-rc2/drivers/net/wireless/ti/wl12xx/
A Ddebugfs.c80 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");
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_packets); in wl12xx_debugfs_add_files()
184 DEBUGFS_FWSTATS_ADD(aes, encrypt_interrupt); in wl12xx_debugfs_add_files()
[all …]
/linux-6.3-rc2/drivers/crypto/
A DMakefile4 obj-$(CONFIG_CRYPTO_DEV_ATMEL_AES) += atmel-aes.o
19 obj-$(CONFIG_CRYPTO_DEV_GEODE) += geode-aes.o
29 obj-$(CONFIG_CRYPTO_DEV_OMAP_AES) += omap-aes-driver.o
30 omap-aes-driver-objs := omap-aes.o omap-aes-gcm.o
33 obj-$(CONFIG_CRYPTO_DEV_PADLOCK_AES) += padlock-aes.o
/linux-6.3-rc2/drivers/crypto/keembay/
A DMakefile4 obj-$(CONFIG_CRYPTO_DEV_KEEMBAY_OCS_AES_SM4) += keembay-ocs-aes.o
5 keembay-ocs-aes-objs := keembay-ocs-aes-core.o ocs-aes.o
A DKconfig13 cbc(aes), ctr(aes), ccm(aes), gcm(aes), cbc(sm4), ctr(sm4), ccm(sm4)
17 enabled: ecb(aes), cts(cbc(aes)), ecb(sm4) and cts(cbc(sm4)).
26 Provides OCS version of ecb(aes) and ecb(sm4)
38 Provides OCS version of cts(cbc(aes)) and cts(cbc(sm4)).
/linux-6.3-rc2/drivers/net/wireless/ti/wl1251/
A Ddebugfs.c302 DEBUGFS_FWSTATS_DEL(aes, encrypt_fail); in wl1251_debugfs_delete_files()
303 DEBUGFS_FWSTATS_DEL(aes, decrypt_fail); in wl1251_debugfs_delete_files()
304 DEBUGFS_FWSTATS_DEL(aes, encrypt_packets); in wl1251_debugfs_delete_files()
305 DEBUGFS_FWSTATS_DEL(aes, decrypt_packets); in wl1251_debugfs_delete_files()
306 DEBUGFS_FWSTATS_DEL(aes, encrypt_interrupt); in wl1251_debugfs_delete_files()
307 DEBUGFS_FWSTATS_DEL(aes, decrypt_interrupt); in wl1251_debugfs_delete_files()
401 DEBUGFS_FWSTATS_ADD(aes, encrypt_fail); in wl1251_debugfs_add_files()
402 DEBUGFS_FWSTATS_ADD(aes, decrypt_fail); in wl1251_debugfs_add_files()
403 DEBUGFS_FWSTATS_ADD(aes, encrypt_packets); in wl1251_debugfs_add_files()
404 DEBUGFS_FWSTATS_ADD(aes, decrypt_packets); in wl1251_debugfs_add_files()
[all …]
/linux-6.3-rc2/Documentation/devicetree/bindings/firmware/xilinx/
A Dxlnx,zynqmp-firmware.yaml46 zynqmp-aes:
47 $ref: /schemas/crypto/xlnx,zynqmp-aes.yaml#
77 xlnx_aes: zynqmp-aes {
78 compatible = "xlnx,zynqmp-aes";
/linux-6.3-rc2/Documentation/admin-guide/device-mapper/
A Ddm-crypt.rst25 aes-cbc-essiv:sha256
26 aes-xts-plain64
40 capi:cbc(aes)-essiv:sha256
41 capi:xts(aes)-plain64
45 capi:gcm(aes)-random
46 capi:authenc(hmac(sha256),xts(aes))-random
168 …dmsetup create crypt1 --table "0 `blockdev --getsz $1` crypt aes-cbc-essiv:sha256 babebabebabebabe…
174 …dmsetup create crypt2 --table "0 `blockdev --getsize $1` crypt aes-cbc-essiv:sha256 :32:logon:my_p…
/linux-6.3-rc2/drivers/crypto/marvell/cesa/
A Dcipher.c31 struct crypto_aes_ctx aes; member
270 ret = aes_expandkey(&ctx->aes, key, len); in mv_cesa_aes_setkey()
274 remaining = (ctx->aes.key_length - 16) / 4; in mv_cesa_aes_setkey()
275 offset = ctx->aes.key_length + 24 - remaining; in mv_cesa_aes_setkey()
277 ctx->aes.key_dec[4 + i] = ctx->aes.key_enc[offset + i]; in mv_cesa_aes_setkey()
707 key = ctx->aes.key_dec; in mv_cesa_aes_op()
709 key = ctx->aes.key_enc; in mv_cesa_aes_op()
711 for (i = 0; i < ctx->aes.key_length / sizeof(u32); i++) in mv_cesa_aes_op()
714 if (ctx->aes.key_length == 24) in mv_cesa_aes_op()
716 else if (ctx->aes.key_length == 32) in mv_cesa_aes_op()
/linux-6.3-rc2/drivers/crypto/qat/qat_c62x/
A Dadf_c62x_hw_data.c70 int aes = self->get_num_aes(self); in get_sku() local
72 if (aes == 8) in get_sku()
74 else if (aes == 10) in get_sku()
/linux-6.3-rc2/drivers/crypto/inside-secure/
A Dsafexcel_cipher.c377 struct crypto_aes_ctx aes; in safexcel_skcipher_aes_setkey() local
398 memzero_explicit(&aes, sizeof(aes)); in safexcel_skcipher_aes_setkey()
409 struct crypto_aes_ctx aes; in safexcel_aead_setkey() local
1434 struct crypto_aes_ctx aes; in safexcel_skcipher_aesctr_setkey() local
1460 memzero_explicit(&aes, sizeof(aes)); in safexcel_skcipher_aesctr_setkey()
2504 aes.key_enc[i]) { in safexcel_skcipher_aesxts_setkey()
2517 memzero_explicit(&aes, sizeof(aes)); in safexcel_skcipher_aesxts_setkey()
2589 memzero_explicit(&aes, sizeof(aes)); in safexcel_aead_gcm_setkey()
2624 memzero_explicit(&aes, sizeof(aes)); in safexcel_aead_gcm_setkey()
2690 memzero_explicit(&aes, sizeof(aes)); in safexcel_aead_ccm_setkey()
[all …]

Completed in 32 milliseconds

12345