1 # SPDX-License-Identifier: GPL-2.0
3 menuconfig ARM64_CRYPTO
4 bool "ARM64 Accelerated Cryptographic Algorithms"
7 Say Y here to choose from a selection of cryptographic algorithms
8 implemented using ARM64 specific CPU features or instructions.
12 config CRYPTO_SHA256_ARM64
13 tristate "SHA-224/SHA-256 digest algorithm for arm64"
16 config CRYPTO_SHA512_ARM64
17 tristate "SHA-384/SHA-512 digest algorithm for arm64"
20 config CRYPTO_SHA1_ARM64_CE
21 tristate "SHA-1 digest algorithm (ARMv8 Crypto Extensions)"
22 depends on KERNEL_MODE_NEON
26 config CRYPTO_SHA2_ARM64_CE
27 tristate "SHA-224/SHA-256 digest algorithm (ARMv8 Crypto Extensions)"
28 depends on KERNEL_MODE_NEON
30 select CRYPTO_SHA256_ARM64
32 config CRYPTO_SHA512_ARM64_CE
33 tristate "SHA-384/SHA-512 digest algorithm (ARMv8 Crypto Extensions)"
34 depends on KERNEL_MODE_NEON
36 select CRYPTO_SHA512_ARM64
38 config CRYPTO_SHA3_ARM64
39 tristate "SHA3 digest algorithm (ARMv8.2 Crypto Extensions)"
40 depends on KERNEL_MODE_NEON
44 config CRYPTO_SM3_ARM64_CE
45 tristate "SM3 digest algorithm (ARMv8.2 Crypto Extensions)"
46 depends on KERNEL_MODE_NEON
50 config CRYPTO_SM4_ARM64_CE
51 tristate "SM4 symmetric cipher (ARMv8.2 Crypto Extensions)"
52 depends on KERNEL_MODE_NEON
56 config CRYPTO_GHASH_ARM64_CE
57 tristate "GHASH/AES-GCM using ARMv8 Crypto Extensions"
58 depends on KERNEL_MODE_NEON
60 select CRYPTO_GF128MUL
62 select CRYPTO_AES_ARM64
64 config CRYPTO_CRCT10DIF_ARM64_CE
65 tristate "CRCT10DIF digest algorithm using PMULL instructions"
66 depends on KERNEL_MODE_NEON && CRC_T10DIF
69 config CRYPTO_AES_ARM64
70 tristate "AES core cipher using scalar instructions"
73 config CRYPTO_AES_ARM64_CE
74 tristate "AES core cipher using ARMv8 Crypto Extensions"
75 depends on ARM64 && KERNEL_MODE_NEON
77 select CRYPTO_AES_ARM64
79 config CRYPTO_AES_ARM64_CE_CCM
80 tristate "AES in CCM mode using ARMv8 Crypto Extensions"
81 depends on ARM64 && KERNEL_MODE_NEON
83 select CRYPTO_AES_ARM64_CE
84 select CRYPTO_AES_ARM64
87 config CRYPTO_AES_ARM64_CE_BLK
88 tristate "AES in ECB/CBC/CTR/XTS modes using ARMv8 Crypto Extensions"
89 depends on KERNEL_MODE_NEON
90 select CRYPTO_BLKCIPHER
91 select CRYPTO_AES_ARM64_CE
92 select CRYPTO_AES_ARM64
95 config CRYPTO_AES_ARM64_NEON_BLK
96 tristate "AES in ECB/CBC/CTR/XTS modes using NEON instructions"
97 depends on KERNEL_MODE_NEON
98 select CRYPTO_BLKCIPHER
99 select CRYPTO_AES_ARM64
103 config CRYPTO_CHACHA20_NEON
104 tristate "ChaCha20, XChaCha20, and XChaCha12 stream ciphers using NEON instructions"
105 depends on KERNEL_MODE_NEON
106 select CRYPTO_BLKCIPHER
107 select CRYPTO_CHACHA20
109 config CRYPTO_NHPOLY1305_NEON
110 tristate "NHPoly1305 hash function using NEON instructions (for Adiantum)"
111 depends on KERNEL_MODE_NEON
112 select CRYPTO_NHPOLY1305
114 config CRYPTO_AES_ARM64_BS
115 tristate "AES in ECB/CBC/CTR/XTS modes using bit-sliced NEON algorithm"
116 depends on KERNEL_MODE_NEON
117 select CRYPTO_BLKCIPHER
118 select CRYPTO_AES_ARM64_NEON_BLK
119 select CRYPTO_AES_ARM64