xref: /linux/arch/riscv/crypto/Kconfig (revision bb54668837a073f18e173dd7be63f9ef5ee9f7ac)
1# SPDX-License-Identifier: GPL-2.0
2
3menu "Accelerated Cryptographic Algorithms for CPU (riscv)"
4
5config CRYPTO_AES_RISCV64
6	tristate "Ciphers: AES, modes: ECB, CBC, CTR, XTS"
7	depends on 64BIT && RISCV_ISA_V && TOOLCHAIN_HAS_VECTOR_CRYPTO
8	select CRYPTO_ALGAPI
9	select CRYPTO_LIB_AES
10	select CRYPTO_SKCIPHER
11	help
12	  Block cipher: AES cipher algorithms
13	  Length-preserving ciphers: AES with ECB, CBC, CTR, XTS
14
15	  Architecture: riscv64 using:
16	  - Zvkned vector crypto extension
17	  - Zvbb vector extension (XTS)
18	  - Zvkb vector crypto extension (CTR)
19	  - Zvkg vector crypto extension (XTS)
20
21config CRYPTO_CHACHA_RISCV64
22	tristate "Ciphers: ChaCha"
23	depends on 64BIT && RISCV_ISA_V && TOOLCHAIN_HAS_VECTOR_CRYPTO
24	select CRYPTO_SKCIPHER
25	select CRYPTO_LIB_CHACHA_GENERIC
26	help
27	  Length-preserving ciphers: ChaCha20 stream cipher algorithm
28
29	  Architecture: riscv64 using:
30	  - Zvkb vector crypto extension
31
32endmenu
33