1 # SPDX-License-Identifier: GPL-2.0
4 bool "ARM Accelerated Cryptographic Algorithms"
7 Say Y here to choose from a selection of cryptographic algorithms
8 implemented using ARM specific CPU features or instructions.
12 config CRYPTO_SHA1_ARM
13 tristate "SHA1 digest algorithm (ARM-asm)"
17 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
18 using optimized ARM assembler.
20 config CRYPTO_SHA1_ARM_NEON
21 tristate "SHA1 digest algorithm (ARM NEON)"
22 depends on KERNEL_MODE_NEON
23 select CRYPTO_SHA1_ARM
27 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
28 using optimized ARM NEON assembly, when NEON instructions are
31 config CRYPTO_SHA1_ARM_CE
32 tristate "SHA1 digest algorithm (ARM v8 Crypto Extensions)"
33 depends on KERNEL_MODE_NEON
34 select CRYPTO_SHA1_ARM
37 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
38 using special ARMv8 Crypto Extensions.
40 config CRYPTO_SHA2_ARM_CE
41 tristate "SHA-224/256 digest algorithm (ARM v8 Crypto Extensions)"
42 depends on KERNEL_MODE_NEON
43 select CRYPTO_SHA256_ARM
46 SHA-256 secure hash standard (DFIPS 180-2) implemented
47 using special ARMv8 Crypto Extensions.
49 config CRYPTO_SHA256_ARM
50 tristate "SHA-224/256 digest algorithm (ARM-asm and NEON)"
54 SHA-256 secure hash standard (DFIPS 180-2) implemented
55 using optimized ARM assembler and NEON, when available.
57 config CRYPTO_SHA512_ARM
58 tristate "SHA-384/512 digest algorithm (ARM-asm and NEON)"
62 SHA-512 secure hash standard (DFIPS 180-2) implemented
63 using optimized ARM assembler and NEON, when available.
65 config CRYPTO_BLAKE2S_ARM
66 tristate "BLAKE2s digest algorithm (ARM)"
67 select CRYPTO_ARCH_HAVE_LIB_BLAKE2S
69 BLAKE2s digest algorithm optimized with ARM scalar instructions. This
70 is faster than the generic implementations of BLAKE2s and BLAKE2b, but
71 slower than the NEON implementation of BLAKE2b. (There is no NEON
72 implementation of BLAKE2s, since NEON doesn't really help with it.)
74 config CRYPTO_BLAKE2B_NEON
75 tristate "BLAKE2b digest algorithm (ARM NEON)"
76 depends on KERNEL_MODE_NEON
79 BLAKE2b digest algorithm optimized with ARM NEON instructions.
80 On ARM processors that have NEON support but not the ARMv8
81 Crypto Extensions, typically this BLAKE2b implementation is
82 much faster than SHA-2 and slightly faster than SHA-1.
85 tristate "Scalar AES cipher for ARM"
89 Use optimized AES assembler routines for ARM platforms.
91 On ARM processors without the Crypto Extensions, this is the
92 fastest AES implementation for single blocks. For multiple
93 blocks, the NEON bit-sliced implementation is usually faster.
95 This implementation may be vulnerable to cache timing attacks,
96 since it uses lookup tables. However, as countermeasures it
97 disables IRQs and preloads the tables; it is hoped this makes
98 such attacks very difficult.
100 config CRYPTO_AES_ARM_BS
101 tristate "Bit sliced AES using NEON instructions"
102 depends on KERNEL_MODE_NEON
103 select CRYPTO_SKCIPHER
104 select CRYPTO_LIB_AES
107 Use a faster and more secure NEON based implementation of AES in CBC,
110 Bit sliced AES gives around 45% speedup on Cortex-A15 for CTR mode
111 and for XTS mode encryption, CBC and XTS mode decryption speedup is
112 around 25%. (CBC encryption speed is not affected by this driver.)
113 This implementation does not rely on any lookup tables so it is
114 believed to be invulnerable to cache timing attacks.
116 config CRYPTO_AES_ARM_CE
117 tristate "Accelerated AES using ARMv8 Crypto Extensions"
118 depends on KERNEL_MODE_NEON
119 select CRYPTO_SKCIPHER
120 select CRYPTO_LIB_AES
123 Use an implementation of AES in CBC, CTR and XTS modes that uses
124 ARMv8 Crypto Extensions
126 config CRYPTO_GHASH_ARM_CE
127 tristate "PMULL-accelerated GHASH using NEON/ARMv8 Crypto Extensions"
128 depends on KERNEL_MODE_NEON
131 select CRYPTO_GF128MUL
133 Use an implementation of GHASH (used by the GCM AEAD chaining mode)
134 that uses the 64x64 to 128 bit polynomial multiplication (vmull.p64)
135 that is part of the ARMv8 Crypto Extensions, or a slower variant that
136 uses the vmull.p8 instruction that is part of the basic NEON ISA.
138 config CRYPTO_CRCT10DIF_ARM_CE
139 tristate "CRCT10DIF digest algorithm using PMULL instructions"
140 depends on KERNEL_MODE_NEON
141 depends on CRC_T10DIF
144 config CRYPTO_CRC32_ARM_CE
145 tristate "CRC32(C) digest algorithm using CRC and/or PMULL instructions"
146 depends on KERNEL_MODE_NEON
150 config CRYPTO_CHACHA20_NEON
151 tristate "NEON and scalar accelerated ChaCha stream cipher algorithms"
152 select CRYPTO_SKCIPHER
153 select CRYPTO_ARCH_HAVE_LIB_CHACHA
155 config CRYPTO_POLY1305_ARM
156 tristate "Accelerated scalar and SIMD Poly1305 hash implementations"
158 select CRYPTO_ARCH_HAVE_LIB_POLY1305
160 config CRYPTO_NHPOLY1305_NEON
161 tristate "NEON accelerated NHPoly1305 hash function (for Adiantum)"
162 depends on KERNEL_MODE_NEON
163 select CRYPTO_NHPOLY1305
165 config CRYPTO_CURVE25519_NEON
166 tristate "NEON accelerated Curve25519 scalar multiplication library"
167 depends on KERNEL_MODE_NEON
168 select CRYPTO_LIB_CURVE25519_GENERIC
169 select CRYPTO_ARCH_HAVE_LIB_CURVE25519