]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/arm/crypto/Kconfig
Merge tag 'iio-fixes-for-4.11c' of git://git.kernel.org/pub/scm/linux/kernel/git...
[mirror_ubuntu-bionic-kernel.git] / arch / arm / crypto / Kconfig
CommitLineData
652ccae5
AB
1
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
864cbeed
AB
30config CRYPTO_SHA1_ARM_CE
31 tristate "SHA1 digest algorithm (ARM v8 Crypto Extensions)"
32 depends on KERNEL_MODE_NEON
33 select CRYPTO_SHA1_ARM
864cbeed
AB
34 select CRYPTO_HASH
35 help
36 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
37 using special ARMv8 Crypto Extensions.
006d0624
AB
38
39config CRYPTO_SHA2_ARM_CE
40 tristate "SHA-224/256 digest algorithm (ARM v8 Crypto Extensions)"
41 depends on KERNEL_MODE_NEON
9205b949 42 select CRYPTO_SHA256_ARM
006d0624
AB
43 select CRYPTO_HASH
44 help
45 SHA-256 secure hash standard (DFIPS 180-2) implemented
46 using special ARMv8 Crypto Extensions.
864cbeed 47
f2f770d7
ST
48config CRYPTO_SHA256_ARM
49 tristate "SHA-224/256 digest algorithm (ARM-asm and NEON)"
50 select CRYPTO_HASH
b48321de 51 depends on !CPU_V7M
f2f770d7
ST
52 help
53 SHA-256 secure hash standard (DFIPS 180-2) implemented
54 using optimized ARM assembler and NEON, when available.
55
c80ae7ca
AB
56config CRYPTO_SHA512_ARM
57 tristate "SHA-384/512 digest algorithm (ARM-asm and NEON)"
652ccae5 58 select CRYPTO_HASH
c80ae7ca 59 depends on !CPU_V7M
652ccae5
AB
60 help
61 SHA-512 secure hash standard (DFIPS 180-2) implemented
c80ae7ca 62 using optimized ARM assembler and NEON, when available.
652ccae5
AB
63
64config CRYPTO_AES_ARM
81edb426 65 tristate "Scalar AES cipher for ARM"
652ccae5
AB
66 select CRYPTO_ALGAPI
67 select CRYPTO_AES
68 help
69 Use optimized AES assembler routines for ARM platforms.
70
652ccae5
AB
71config CRYPTO_AES_ARM_BS
72 tristate "Bit sliced AES using NEON instructions"
73 depends on KERNEL_MODE_NEON
6fdf436f
HX
74 select CRYPTO_BLKCIPHER
75 select CRYPTO_SIMD
cc477bf6 76 select CRYPTO_AES_ARM
652ccae5
AB
77 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
86464859
AB
87config CRYPTO_AES_ARM_CE
88 tristate "Accelerated AES using ARMv8 Crypto Extensions"
89 depends on KERNEL_MODE_NEON
6fdf436f 90 select CRYPTO_BLKCIPHER
585b5fa6 91 select CRYPTO_SIMD
86464859
AB
92 help
93 Use an implementation of AES in CBC, CTR and XTS modes that uses
94 ARMv8 Crypto Extensions
95
f1e866b1
AB
96config 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
1d481f1c
AB
106config 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
d0a3431a
AB
111config 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
afaf712e
AB
116config 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
652ccae5 122endif