xref: /openbmc/linux/arch/mips/crypto/Kconfig (revision 440b075b)
1# SPDX-License-Identifier: GPL-2.0
2
3menu "Accelerated Cryptographic Algorithms for CPU (mips)"
4
5config CRYPTO_CRC32_MIPS
6	tristate "CRC32c and CRC32"
7	depends on MIPS_CRC_SUPPORT
8	select CRYPTO_HASH
9	help
10	  CRC32c and CRC32 CRC algorithms
11
12	  Architecture: mips
13
14config CRYPTO_POLY1305_MIPS
15	tristate "Hash functions: Poly1305"
16	depends on MIPS
17	select CRYPTO_ARCH_HAVE_LIB_POLY1305
18	help
19	  Poly1305 authenticator algorithm (RFC7539)
20
21	  Architecture: mips
22
23config CRYPTO_MD5_OCTEON
24	tristate "Digests: MD5 (OCTEON)"
25	depends on CPU_CAVIUM_OCTEON
26	select CRYPTO_MD5
27	select CRYPTO_HASH
28	help
29	  MD5 message digest algorithm (RFC1321)
30
31	  Architecture: mips OCTEON using crypto instructions, when available
32
33config CRYPTO_SHA1_OCTEON
34	tristate "Hash functions: SHA-1 (OCTEON)"
35	depends on CPU_CAVIUM_OCTEON
36	select CRYPTO_SHA1
37	select CRYPTO_HASH
38	help
39	  SHA-1 secure hash algorithm (FIPS 180)
40
41	  Architecture: mips OCTEON
42
43config CRYPTO_SHA256_OCTEON
44	tristate "Hash functions: SHA-224 and SHA-256 (OCTEON)"
45	depends on CPU_CAVIUM_OCTEON
46	select CRYPTO_SHA256
47	select CRYPTO_HASH
48	help
49	  SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
50
51	  Architecture: mips OCTEON using crypto instructions, when available
52
53config CRYPTO_SHA512_OCTEON
54	tristate "Hash functions: SHA-384 and SHA-512 (OCTEON)"
55	depends on CPU_CAVIUM_OCTEON
56	select CRYPTO_SHA512
57	select CRYPTO_HASH
58	help
59	  SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
60
61	  Architecture: mips OCTEON using crypto instructions, when available
62
63config CRYPTO_CHACHA_MIPS
64	tristate "Ciphers: ChaCha20, XChaCha20, XChaCha12 (MIPS32r2)"
65	depends on CPU_MIPS32_R2
66	select CRYPTO_SKCIPHER
67	select CRYPTO_ARCH_HAVE_LIB_CHACHA
68	help
69	  Length-preserving ciphers: ChaCha20, XChaCha20, and XChaCha12
70	  stream cipher algorithms
71
72	  Architecture: MIPS32r2
73
74endmenu
75