xref: /openbmc/linux/arch/arm64/crypto/Kconfig (revision 711aab1d)
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_SHA256_ARM64
12	tristate "SHA-224/SHA-256 digest algorithm for arm64"
13	select CRYPTO_HASH
14
15config CRYPTO_SHA512_ARM64
16	tristate "SHA-384/SHA-512 digest algorithm for arm64"
17	select CRYPTO_HASH
18
19config CRYPTO_SHA1_ARM64_CE
20	tristate "SHA-1 digest algorithm (ARMv8 Crypto Extensions)"
21	depends on KERNEL_MODE_NEON
22	select CRYPTO_HASH
23	select CRYPTO_SHA1
24
25config CRYPTO_SHA2_ARM64_CE
26	tristate "SHA-224/SHA-256 digest algorithm (ARMv8 Crypto Extensions)"
27	depends on KERNEL_MODE_NEON
28	select CRYPTO_HASH
29	select CRYPTO_SHA256_ARM64
30
31config CRYPTO_GHASH_ARM64_CE
32	tristate "GHASH/AES-GCM using ARMv8 Crypto Extensions"
33	depends on KERNEL_MODE_NEON
34	select CRYPTO_HASH
35	select CRYPTO_GF128MUL
36	select CRYPTO_AES
37	select CRYPTO_AES_ARM64
38
39config CRYPTO_CRCT10DIF_ARM64_CE
40	tristate "CRCT10DIF digest algorithm using PMULL instructions"
41	depends on KERNEL_MODE_NEON && CRC_T10DIF
42	select CRYPTO_HASH
43
44config CRYPTO_CRC32_ARM64_CE
45	tristate "CRC32 and CRC32C digest algorithms using ARMv8 extensions"
46	depends on CRC32
47	select CRYPTO_HASH
48
49config CRYPTO_AES_ARM64
50	tristate "AES core cipher using scalar instructions"
51	select CRYPTO_AES
52
53config CRYPTO_AES_ARM64_CE
54	tristate "AES core cipher using ARMv8 Crypto Extensions"
55	depends on ARM64 && KERNEL_MODE_NEON
56	select CRYPTO_ALGAPI
57	select CRYPTO_AES_ARM64
58
59config CRYPTO_AES_ARM64_CE_CCM
60	tristate "AES in CCM mode using ARMv8 Crypto Extensions"
61	depends on ARM64 && KERNEL_MODE_NEON
62	select CRYPTO_ALGAPI
63	select CRYPTO_AES_ARM64_CE
64	select CRYPTO_AES_ARM64
65	select CRYPTO_AEAD
66
67config CRYPTO_AES_ARM64_CE_BLK
68	tristate "AES in ECB/CBC/CTR/XTS modes using ARMv8 Crypto Extensions"
69	depends on KERNEL_MODE_NEON
70	select CRYPTO_BLKCIPHER
71	select CRYPTO_AES_ARM64_CE
72	select CRYPTO_AES_ARM64
73	select CRYPTO_SIMD
74
75config CRYPTO_AES_ARM64_NEON_BLK
76	tristate "AES in ECB/CBC/CTR/XTS modes using NEON instructions"
77	depends on KERNEL_MODE_NEON
78	select CRYPTO_BLKCIPHER
79	select CRYPTO_AES_ARM64
80	select CRYPTO_AES
81	select CRYPTO_SIMD
82
83config CRYPTO_CHACHA20_NEON
84	tristate "NEON accelerated ChaCha20 symmetric cipher"
85	depends on KERNEL_MODE_NEON
86	select CRYPTO_BLKCIPHER
87	select CRYPTO_CHACHA20
88
89config CRYPTO_AES_ARM64_BS
90	tristate "AES in ECB/CBC/CTR/XTS modes using bit-sliced NEON algorithm"
91	depends on KERNEL_MODE_NEON
92	select CRYPTO_BLKCIPHER
93	select CRYPTO_AES_ARM64_NEON_BLK
94	select CRYPTO_AES_ARM64
95	select CRYPTO_SIMD
96
97endif
98