blob: b9adedcc5b2e2d58b43be91b803f7ed8a61ed8a4 [file] [log] [blame]
Ard Biesheuvel652ccae2015-03-10 09:47:44 +01001
2menuconfig ARM_CRYPTO
3 bool "ARM Accelerated Cryptographic Algorithms"
4 depends on ARM
5 help
6 Say Y here to choose from a selection of cryptographic algorithms
7 implemented using ARM specific CPU features or instructions.
8
9if ARM_CRYPTO
10
11config CRYPTO_SHA1_ARM
12 tristate "SHA1 digest algorithm (ARM-asm)"
13 select CRYPTO_SHA1
14 select CRYPTO_HASH
15 help
16 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
17 using optimized ARM assembler.
18
19config CRYPTO_SHA1_ARM_NEON
20 tristate "SHA1 digest algorithm (ARM NEON)"
21 depends on KERNEL_MODE_NEON
22 select CRYPTO_SHA1_ARM
23 select CRYPTO_SHA1
24 select CRYPTO_HASH
25 help
26 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
27 using optimized ARM NEON assembly, when NEON instructions are
28 available.
29
Ard Biesheuvel864cbee2015-03-10 09:47:45 +010030config CRYPTO_SHA1_ARM_CE
31 tristate "SHA1 digest algorithm (ARM v8 Crypto Extensions)"
32 depends on KERNEL_MODE_NEON
33 select CRYPTO_SHA1_ARM
Ard Biesheuvel864cbee2015-03-10 09:47:45 +010034 select CRYPTO_HASH
35 help
36 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
37 using special ARMv8 Crypto Extensions.
38
Ard Biesheuvel006d0622015-03-10 09:47:46 +010039config CRYPTO_SHA2_ARM_CE
40 tristate "SHA-224/256 digest algorithm (ARM v8 Crypto Extensions)"
41 depends on KERNEL_MODE_NEON
Ard Biesheuvel9205b942015-04-09 12:55:43 +020042 select CRYPTO_SHA256_ARM
Ard Biesheuvel006d0622015-03-10 09:47:46 +010043 select CRYPTO_HASH
44 help
45 SHA-256 secure hash standard (DFIPS 180-2) implemented
46 using special ARMv8 Crypto Extensions.
47
Sami Tolvanenf2f770d2015-04-03 18:03:40 +080048config CRYPTO_SHA256_ARM
49 tristate "SHA-224/256 digest algorithm (ARM-asm and NEON)"
50 select CRYPTO_HASH
Arnd Bergmannb48321d2015-04-11 10:48:44 +020051 depends on !CPU_V7M
Sami Tolvanenf2f770d2015-04-03 18:03:40 +080052 help
53 SHA-256 secure hash standard (DFIPS 180-2) implemented
54 using optimized ARM assembler and NEON, when available.
55
Ard Biesheuvelc80ae7c2015-05-08 10:46:21 +020056config CRYPTO_SHA512_ARM
57 tristate "SHA-384/512 digest algorithm (ARM-asm and NEON)"
Ard Biesheuvel652ccae2015-03-10 09:47:44 +010058 select CRYPTO_HASH
Ard Biesheuvelc80ae7c2015-05-08 10:46:21 +020059 depends on !CPU_V7M
Ard Biesheuvel652ccae2015-03-10 09:47:44 +010060 help
61 SHA-512 secure hash standard (DFIPS 180-2) implemented
Ard Biesheuvelc80ae7c2015-05-08 10:46:21 +020062 using optimized ARM assembler and NEON, when available.
Ard Biesheuvel652ccae2015-03-10 09:47:44 +010063
64config CRYPTO_AES_ARM
Ard Biesheuvel81edb422017-01-11 16:41:53 +000065 tristate "Scalar AES cipher for ARM"
Ard Biesheuvel652ccae2015-03-10 09:47:44 +010066 select CRYPTO_ALGAPI
67 select CRYPTO_AES
68 help
69 Use optimized AES assembler routines for ARM platforms.
70
Ard Biesheuvel652ccae2015-03-10 09:47:44 +010071config CRYPTO_AES_ARM_BS
72 tristate "Bit sliced AES using NEON instructions"
73 depends on KERNEL_MODE_NEON
Herbert Xu6fdf4362016-11-29 16:43:33 +080074 select CRYPTO_BLKCIPHER
75 select CRYPTO_SIMD
Ard Biesheuvelb56f5cb2017-02-14 21:51:01 +000076 select CRYPTO_AES
Ard Biesheuvel652ccae2015-03-10 09:47:44 +010077 help
78 Use a faster and more secure NEON based implementation of AES in CBC,
79 CTR and XTS modes
80
81 Bit sliced AES gives around 45% speedup on Cortex-A15 for CTR mode
82 and for XTS mode encryption, CBC and XTS mode decryption speedup is
83 around 25%. (CBC encryption speed is not affected by this driver.)
84 This implementation does not rely on any lookup tables so it is
85 believed to be invulnerable to cache timing attacks.
86
Ard Biesheuvel86464852015-03-10 09:47:47 +010087config CRYPTO_AES_ARM_CE
88 tristate "Accelerated AES using ARMv8 Crypto Extensions"
89 depends on KERNEL_MODE_NEON
Herbert Xu6fdf4362016-11-29 16:43:33 +080090 select CRYPTO_BLKCIPHER
Herbert Xu585b5fa2016-11-29 15:08:40 +080091 select CRYPTO_SIMD
Ard Biesheuvel86464852015-03-10 09:47:47 +010092 help
93 Use an implementation of AES in CBC, CTR and XTS modes that uses
94 ARMv8 Crypto Extensions
95
Ard Biesheuvelf1e866b2015-03-10 09:47:48 +010096config CRYPTO_GHASH_ARM_CE
97 tristate "PMULL-accelerated GHASH using ARMv8 Crypto Extensions"
98 depends on KERNEL_MODE_NEON
99 select CRYPTO_HASH
100 select CRYPTO_CRYPTD
101 help
102 Use an implementation of GHASH (used by the GCM AEAD chaining mode)
103 that uses the 64x64 to 128 bit polynomial multiplication (vmull.p64)
104 that is part of the ARMv8 Crypto Extensions
105
Ard Biesheuvel1d481f12016-12-05 18:42:26 +0000106config CRYPTO_CRCT10DIF_ARM_CE
107 tristate "CRCT10DIF digest algorithm using PMULL instructions"
108 depends on KERNEL_MODE_NEON && CRC_T10DIF
109 select CRYPTO_HASH
110
Ard Biesheuveld0a34312016-12-05 18:42:28 +0000111config CRYPTO_CRC32_ARM_CE
112 tristate "CRC32(C) digest algorithm using CRC and/or PMULL instructions"
113 depends on KERNEL_MODE_NEON && CRC32
114 select CRYPTO_HASH
115
Ard Biesheuvelafaf7122017-01-11 16:41:50 +0000116config CRYPTO_CHACHA20_NEON
117 tristate "NEON accelerated ChaCha20 symmetric cipher"
118 depends on KERNEL_MODE_NEON
119 select CRYPTO_BLKCIPHER
120 select CRYPTO_CHACHA20
121
Ard Biesheuvel652ccae2015-03-10 09:47:44 +0100122endif