xref: /openbmc/linux/arch/arm64/crypto/Kconfig (revision bb970707)
1
2menuconfig ARM64_CRYPTO
3	bool "ARM64 Accelerated Cryptographic Algorithms"
4	depends on ARM64
5	help
6	  Say Y here to choose from a selection of cryptographic algorithms
7	  implemented using ARM64 specific CPU features or instructions.
8
9if ARM64_CRYPTO
10
11config CRYPTO_SHA1_ARM64_CE
12	tristate "SHA-1 digest algorithm (ARMv8 Crypto Extensions)"
13	depends on ARM64 && KERNEL_MODE_NEON
14	select CRYPTO_HASH
15
16config CRYPTO_SHA2_ARM64_CE
17	tristate "SHA-224/SHA-256 digest algorithm (ARMv8 Crypto Extensions)"
18	depends on ARM64 && KERNEL_MODE_NEON
19	select CRYPTO_HASH
20
21config CRYPTO_GHASH_ARM64_CE
22	tristate "GHASH (for GCM chaining mode) using ARMv8 Crypto Extensions"
23	depends on ARM64 && KERNEL_MODE_NEON
24	select CRYPTO_HASH
25
26config CRYPTO_AES_ARM64_CE
27	tristate "AES core cipher using ARMv8 Crypto Extensions"
28	depends on ARM64 && KERNEL_MODE_NEON
29	select CRYPTO_ALGAPI
30
31config CRYPTO_AES_ARM64_CE_CCM
32	tristate "AES in CCM mode using ARMv8 Crypto Extensions"
33	depends on ARM64 && KERNEL_MODE_NEON
34	select CRYPTO_ALGAPI
35	select CRYPTO_AES_ARM64_CE
36	select CRYPTO_AEAD
37
38config CRYPTO_AES_ARM64_CE_BLK
39	tristate "AES in ECB/CBC/CTR/XTS modes using ARMv8 Crypto Extensions"
40	depends on ARM64 && KERNEL_MODE_NEON
41	select CRYPTO_BLKCIPHER
42	select CRYPTO_AES_ARM64_CE
43	select CRYPTO_ABLK_HELPER
44
45config CRYPTO_AES_ARM64_NEON_BLK
46	tristate "AES in ECB/CBC/CTR/XTS modes using NEON instructions"
47	depends on ARM64 && KERNEL_MODE_NEON
48	select CRYPTO_BLKCIPHER
49	select CRYPTO_AES
50	select CRYPTO_ABLK_HELPER
51
52config CRYPTO_CRC32_ARM64
53	tristate "CRC32 and CRC32C using optional ARMv8 instructions"
54	depends on ARM64
55	select CRYPTO_HASH
56endif
57