Home
last modified time | relevance | path

Searched full:aes (Results 1 – 25 of 468) sorted by relevance

12345678910>>...19

/Linux-v5.10/drivers/crypto/mediatek/
Dmtk-aes.c5 * Driver for EIP97 AES acceleration.
9 * Some ideas are from atmel-aes.c drivers.
12 #include <crypto/aes.h>
27 /* AES-CBC/ECB/CTR/OFB/CFB command token */
31 /* AES-GCM command token */
40 /* AES transform information word 0 fields */
51 /* AES transform information word 1 fields */
63 /* AES flags */
77 * mtk_aes_info - hardware information of AES
84 * | AES KEY | 128/196/256 bits
[all …]
/Linux-v5.10/drivers/crypto/ccp/
Dccp-crypto-aes-cmac.c3 * AMD Cryptographic Coprocessor (CCP) AES CMAC crypto API support
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.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()
[all …]
Dccp-crypto-aes.c3 * AMD Cryptographic Coprocessor (CCP) AES crypto API support
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.key, key_len); in ccp_aes_setkey()
[all …]
Dccp-crypto-aes-galois.c3 * AMD Cryptographic Coprocessor (CCP) AES GCM crypto API support
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.key_len) in ccp_aes_gcm_crypt()
[all …]
Dccp-crypto-aes-xts.c3 * AMD Cryptographic Coprocessor (CCP) AES XTS crypto API support
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.key_len) in ccp_aes_xts_crypt()
[all …]
Dccp-ops.c475 struct ccp_aes_engine *aes = &cmd->u.aes; in ccp_run_aes_cmac_cmd() local
482 if (!((aes->key_len == AES_KEYSIZE_128) || in ccp_run_aes_cmac_cmd()
483 (aes->key_len == AES_KEYSIZE_192) || in ccp_run_aes_cmac_cmd()
484 (aes->key_len == AES_KEYSIZE_256))) in ccp_run_aes_cmac_cmd()
487 if (aes->src_len & (AES_BLOCK_SIZE - 1)) in ccp_run_aes_cmac_cmd()
490 if (aes->iv_len != AES_BLOCK_SIZE) in ccp_run_aes_cmac_cmd()
493 if (!aes->key || !aes->iv || !aes->src) in ccp_run_aes_cmac_cmd()
496 if (aes->cmac_final) { in ccp_run_aes_cmac_cmd()
497 if (aes->cmac_key_len != AES_BLOCK_SIZE) in ccp_run_aes_cmac_cmd()
500 if (!aes->cmac_key) in ccp_run_aes_cmac_cmd()
[all …]
/Linux-v5.10/arch/arm64/crypto/
DMakefile32 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-ce-blk-y := aes-glue-ce.o aes-ce.o
41 obj-$(CONFIG_CRYPTO_AES_ARM64_NEON_BLK) += aes-neon-blk.o
42 aes-neon-blk-y := aes-glue-neon.o aes-neon.o
60 obj-$(CONFIG_CRYPTO_AES_ARM64) += aes-arm64.o
61 aes-arm64-y := aes-cipher-core.o aes-cipher-glue.o
[all …]
Daes-ce.S3 * 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\de \i4\().16b, \k\().16b
[all …]
DKconfig57 tristate "GHASH/AES-GCM using ARMv8 Crypto Extensions"
69 tristate "AES core cipher using scalar instructions"
73 tristate "AES core cipher using ARMv8 Crypto Extensions"
79 tristate "AES in CCM mode using ARMv8 Crypto Extensions"
87 tristate "AES in ECB/CBC/CTR/XTS modes using ARMv8 Crypto Extensions"
95 tristate "AES in ECB/CBC/CTR/XTS modes using NEON instructions"
121 tristate "AES in ECB/CBC/CTR/XTS modes using bit-sliced NEON algorithm"
/Linux-v5.10/tools/perf/pmu-events/arch/s390/cf_z10/
Dcrypto.json14 …"PublicDescription": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing P…
21 … PRNG functions that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy…
28 …PU cycles blocked for the PRNG functions issued by the CPU because the DEA/AES coprocessor is busy…
70 …"PublicDescription": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing t…
77 …e DEA functions that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy…
84 …CPU cycles blocked for the DEA functions issued by the CPU because the DEA/AES coprocessor is busy…
90 "BriefDescription": "AES Functions",
91 "PublicDescription": "Total number of AES functions issued by the CPU"
97 "BriefDescription": "AES Cycles",
98 …Description": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing the AES
[all …]
/Linux-v5.10/tools/perf/pmu-events/arch/s390/cf_zec12/
Dcrypto.json14 …"PublicDescription": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing P…
21 … PRNG functions that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy…
28 …PU cycles blocked for the PRNG functions issued by the CPU because the DEA/AES coprocessor is busy…
70 …"PublicDescription": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing t…
77 …e DEA functions that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy…
84 …CPU cycles blocked for the DEA functions issued by the CPU because the DEA/AES coprocessor is busy…
90 "BriefDescription": "AES Functions",
91 "PublicDescription": "Total number of AES functions issued by the CPU"
97 "BriefDescription": "AES Cycles",
98 …Description": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing the AES
[all …]
/Linux-v5.10/tools/perf/pmu-events/arch/s390/cf_z13/
Dcrypto.json14 …"PublicDescription": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing P…
21 … PRNG functions that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy…
28 …PU cycles blocked for the PRNG functions issued by the CPU because the DEA/AES coprocessor is busy…
70 …"PublicDescription": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing t…
77 …e DEA functions that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy…
84 …CPU cycles blocked for the DEA functions issued by the CPU because the DEA/AES coprocessor is busy…
90 "BriefDescription": "AES Functions",
91 "PublicDescription": "Total number of AES functions issued by the CPU"
97 "BriefDescription": "AES Cycles",
98 …Description": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing the AES
[all …]
/Linux-v5.10/tools/perf/pmu-events/arch/s390/cf_z14/
Dcrypto.json14 …"PublicDescription": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing P…
21 … PRNG functions that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy…
28 …PU cycles blocked for the PRNG functions issued by the CPU because the DEA/AES coprocessor is busy…
70 …"PublicDescription": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing t…
77 …e DEA functions that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy…
84 …CPU cycles blocked for the DEA functions issued by the CPU because the DEA/AES coprocessor is busy…
90 "BriefDescription": "AES Functions",
91 "PublicDescription": "Total number of AES functions issued by the CPU"
97 "BriefDescription": "AES Cycles",
98 …Description": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing the AES
[all …]
/Linux-v5.10/tools/perf/pmu-events/arch/s390/cf_z15/
Dcrypto.json14 …"PublicDescription": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing P…
21 … PRNG functions that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy…
28 …PU cycles blocked for the PRNG functions issued by the CPU because the DEA/AES coprocessor is busy…
70 …"PublicDescription": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing t…
77 …e DEA functions that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy…
84 …CPU cycles blocked for the DEA functions issued by the CPU because the DEA/AES coprocessor is busy…
90 "BriefDescription": "AES Functions",
91 "PublicDescription": "Total number of AES functions issued by the CPU"
97 "BriefDescription": "AES Cycles",
98 …Description": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing the AES
[all …]
/Linux-v5.10/tools/perf/pmu-events/arch/s390/cf_z196/
Dcrypto.json14 …"PublicDescription": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing P…
21 … PRNG functions that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy…
28 …PU cycles blocked for the PRNG functions issued by the CPU because the DEA/AES coprocessor is busy…
70 …"PublicDescription": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing t…
77 …e DEA functions that are issued by the CPU and are blocked because the DEA/AES coprocessor is busy…
84 …CPU cycles blocked for the DEA functions issued by the CPU because the DEA/AES coprocessor is busy…
90 "BriefDescription": "AES Functions",
91 "PublicDescription": "Total number of AES functions issued by the CPU"
97 "BriefDescription": "AES Cycles",
98 …Description": "Total number of CPU cycles when the DEA/AES coprocessor is busy performing the AES
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/crypto/
Domap-aes.txt1 OMAP SoC AES crypto Module
6 AES versions:
7 - "ti,omap2-aes" for OMAP2.
8 - "ti,omap3-aes" for OMAP3.
9 - "ti,omap4-aes" for OMAP4 and AM33XX.
12 - ti,hwmods: Name of the hwmod associated with the AES module
14 - interrupts : the interrupt-specifier for the AES module.
23 aes: aes@53500000 {
24 compatible = "ti,omap4-aes";
25 ti,hwmods = "aes";
Dxlnx,zynqmp-aes.yaml4 $id: http://devicetree.org/schemas/crypto/xlnx,zynqmp-aes.yaml#
7 title: Xilinx ZynqMP AES-GCM Hardware Accelerator Device Tree Bindings
14 The ZynqMP AES-GCM hardened cryptographic accelerator is used to
19 const: xlnx,zynqmp-aes
32 xlnx_aes: zynqmp-aes {
33 compatible = "xlnx,zynqmp-aes";
/Linux-v5.10/Documentation/crypto/
Darchitecture.rst38 - aes
40 - ecb(aes)
42 - cmac(aes)
44 - ccm(aes)
46 - rfc4106(gcm(aes))
52 - authenc(hmac(sha1),cbc(aes))
54 In these examples, "aes" and "sha1" are the ciphers and all others are
102 or a single block cipher. For example, AES on newer Intel hardware has
103 the following implementations: AES-NI, assembler implementation, or
104 straight C. Now, when using the string "aes" with the kernel crypto API,
[all …]
/Linux-v5.10/arch/arm/crypto/
DMakefile6 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-arm-ce-y := aes-ce-core.o aes-ce-glue.o
/Linux-v5.10/drivers/s390/crypto/
Dzcrypt_ccamisc.h26 #define TOKVER_CCA_AES 0x04 /* CCA AES key token */
57 /* inside view of a variable length symmetric cipher AES key token */
81 /* AES-128 512 640 */
82 /* AES-192 576 640 */
83 /* AES-256 640 640 */
85 u8 algtype; /* 0x02 for AES cipher */
106 u8 wtype; /* wrapping method, 0x00 clear, 0x01 AES */
122 /* Some defines for the CCA AES cipherkeytoken kmf1 field */
133 * Simple check if the token is a valid CCA secure AES data key
141 * Simple check if the token is a valid CCA secure AES cipher key
[all …]
/Linux-v5.10/drivers/crypto/
DKconfig29 tristate "PadLock driver for AES algorithm"
34 Use VIA PadLock for AES algorithm.
39 called padlock-aes.
56 tristate "Support for the Geode LX AES engine"
61 Say 'Y' here to use the AMD Geode LX processor on-board AES
62 engine for the CryptoAPI AES algorithm.
65 will be called geode-aes.
131 AES cipher algorithms for use with protected key.
200 tristate "AES cipher algorithms"
206 AES cipher algorithms (FIPS-197).
[all …]
/Linux-v5.10/arch/s390/include/uapi/asm/
Dpkey.h27 #define MAXAESCIPHERKEYSIZE 136 /* our aes cipher keys have always 136 bytes */
28 #define MINEP11AESKEYBLOBSIZE 256 /* min EP11 AES key blob size */
29 #define MAXEP11AESKEYBLOBSIZE 320 /* max EP11 AES key blob size */
62 /* keygenflags defines for CCA AES cipher keys */
78 /* Struct to hold a CCA AES secure key blob */
90 /* Struct to hold an AES clear key value */
110 * Generate CCA AES secure key.
121 * Construct CCA AES secure key from clear key value
133 * Fabricate AES protected key from a CCA AES secure key
144 * Fabricate AES protected key from clear key value
[all …]
/Linux-v5.10/arch/powerpc/crypto/
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-v5.10/drivers/crypto/nx/
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-v5.10/include/linux/
Dccp.h17 #include <crypto/aes.h>
89 /***** AES engine *****/
91 * ccp_aes_type - AES key size
105 * ccp_aes_mode - AES operation mode
129 * ccp_aes_mode - AES operation mode
131 * @CCP_AES_ACTION_DECRYPT: AES decrypt operation
132 * @CCP_AES_ACTION_ENCRYPT: AES encrypt operation
144 * struct ccp_aes_engine - CCP AES operation
145 * @type: AES operation key size
146 * @mode: AES operation mode
[all …]

12345678910>>...19