summaryrefslogtreecommitdiff
path: root/arch/riscv/crypto/Kconfig
blob: 0fd0bf46c9099a5397d6a7a93754e95b45f1b7bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# SPDX-License-Identifier: GPL-2.0

menu "Accelerated Cryptographic Algorithms for CPU (riscv)"

config CRYPTO_AES_RISCV64
	tristate "Ciphers: AES, modes: ECB, CBC, CTR, XTS"
	depends on 64BIT && RISCV_ISA_V && TOOLCHAIN_HAS_VECTOR_CRYPTO
	select CRYPTO_ALGAPI
	select CRYPTO_LIB_AES
	select CRYPTO_SKCIPHER
	help
	  Block cipher: AES cipher algorithms
	  Length-preserving ciphers: AES with ECB, CBC, CTR, XTS

	  Architecture: riscv64 using:
	  - Zvkned vector crypto extension
	  - Zvbb vector extension (XTS)
	  - Zvkb vector crypto extension (CTR)
	  - Zvkg vector crypto extension (XTS)

config CRYPTO_CHACHA_RISCV64
	tristate "Ciphers: ChaCha"
	depends on 64BIT && RISCV_ISA_V && TOOLCHAIN_HAS_VECTOR_CRYPTO
	select CRYPTO_SKCIPHER
	select CRYPTO_LIB_CHACHA_GENERIC
	help
	  Length-preserving ciphers: ChaCha20 stream cipher algorithm

	  Architecture: riscv64 using:
	  - Zvkb vector crypto extension

config CRYPTO_GHASH_RISCV64
	tristate "Hash functions: GHASH"
	depends on 64BIT && RISCV_ISA_V && TOOLCHAIN_HAS_VECTOR_CRYPTO
	select CRYPTO_GCM
	help
	  GCM GHASH function (NIST SP 800-38D)

	  Architecture: riscv64 using:
	  - Zvkg vector crypto extension

config CRYPTO_SHA256_RISCV64
	tristate "Hash functions: SHA-224 and SHA-256"
	depends on 64BIT && RISCV_ISA_V && TOOLCHAIN_HAS_VECTOR_CRYPTO
	select CRYPTO_SHA256
	help
	  SHA-224 and SHA-256 secure hash algorithm (FIPS 180)

	  Architecture: riscv64 using:
	  - Zvknha or Zvknhb vector crypto extensions
	  - Zvkb vector crypto extension

config CRYPTO_SHA512_RISCV64
	tristate "Hash functions: SHA-384 and SHA-512"
	depends on 64BIT && RISCV_ISA_V && TOOLCHAIN_HAS_VECTOR_CRYPTO
	select CRYPTO_SHA512
	help
	  SHA-384 and SHA-512 secure hash algorithm (FIPS 180)

	  Architecture: riscv64 using:
	  - Zvknhb vector crypto extension
	  - Zvkb vector crypto extension

endmenu