xref: /openbmc/linux/arch/s390/crypto/Kconfig (revision e4624435)
1# SPDX-License-Identifier: GPL-2.0
2
3menu "Accelerated Cryptographic Algorithms for CPU (s390)"
4
5config CRYPTO_CRC32_S390
6	tristate "CRC32c and CRC32"
7	depends on S390
8	select CRYPTO_HASH
9	select CRC32
10	help
11	  CRC32c and CRC32 CRC algorithms
12
13	  Architecture: s390
14
15	  It is available with IBM z13 or later.
16
17config CRYPTO_SHA512_S390
18	tristate "Hash functions: SHA-384 and SHA-512"
19	depends on S390
20	select CRYPTO_HASH
21	help
22	  SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
23
24	  Architecture: s390
25
26	  It is available as of z10.
27
28config CRYPTO_SHA1_S390
29	tristate "Hash functions: SHA-1"
30	depends on S390
31	select CRYPTO_HASH
32	help
33	  SHA-1 secure hash algorithm (FIPS 180)
34
35	  Architecture: s390
36
37	  It is available as of z990.
38
39config CRYPTO_SHA256_S390
40	tristate "Hash functions: SHA-224 and SHA-256"
41	depends on S390
42	select CRYPTO_HASH
43	help
44	  SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
45
46	  Architecture: s390
47
48	  It is available as of z9.
49
50config CRYPTO_SHA3_256_S390
51	tristate "Hash functions: SHA3-224 and SHA3-256"
52	depends on S390
53	select CRYPTO_HASH
54	help
55	  SHA3-224 and SHA3-256 secure hash algorithms (FIPS 202)
56
57	  Architecture: s390
58
59	  It is available as of z14.
60
61config CRYPTO_SHA3_512_S390
62	tristate "Hash functions: SHA3-384 and SHA3-512"
63	depends on S390
64	select CRYPTO_HASH
65	help
66	  SHA3-384 and SHA3-512 secure hash algorithms (FIPS 202)
67
68	  Architecture: s390
69
70	  It is available as of z14.
71
72config CRYPTO_GHASH_S390
73	tristate "Hash functions: GHASH"
74	depends on S390
75	select CRYPTO_HASH
76	help
77	  GCM GHASH hash function (NIST SP800-38D)
78
79	  Architecture: s390
80
81	  It is available as of z196.
82
83config CRYPTO_AES_S390
84	tristate "Ciphers: AES, modes: ECB, CBC, CTR, XTS, GCM"
85	depends on S390
86	select CRYPTO_ALGAPI
87	select CRYPTO_SKCIPHER
88	help
89	  Block cipher: AES cipher algorithms (FIPS 197)
90	  AEAD cipher: AES with GCM
91	  Length-preserving ciphers: AES with ECB, CBC, XTS, and CTR modes
92
93	  Architecture: s390
94
95	  As of z9 the ECB and CBC modes are hardware accelerated
96	  for 128 bit keys.
97
98	  As of z10 the ECB and CBC modes are hardware accelerated
99	  for all AES key sizes.
100
101	  As of z196 the CTR mode is hardware accelerated for all AES
102	  key sizes and XTS mode is hardware accelerated for 256 and
103	  512 bit keys.
104
105config CRYPTO_DES_S390
106	tristate "Ciphers: DES and Triple DES EDE, modes: ECB, CBC, CTR"
107	depends on S390
108	select CRYPTO_ALGAPI
109	select CRYPTO_SKCIPHER
110	select CRYPTO_LIB_DES
111	help
112	  Block ciphers: DES (FIPS 46-2) cipher algorithm
113	  Block ciphers: Triple DES EDE (FIPS 46-3) cipher algorithm
114	  Length-preserving ciphers: DES with ECB, CBC, and CTR modes
115	  Length-preserving ciphers: Triple DES EDED with ECB, CBC, and CTR modes
116
117	  Architecture: s390
118
119	  As of z990 the ECB and CBC mode are hardware accelerated.
120	  As of z196 the CTR mode is hardware accelerated.
121
122config CRYPTO_CHACHA_S390
123	tristate "Ciphers: ChaCha20"
124	depends on S390
125	select CRYPTO_SKCIPHER
126	select CRYPTO_LIB_CHACHA_GENERIC
127	select CRYPTO_ARCH_HAVE_LIB_CHACHA
128	help
129	  Length-preserving cipher: ChaCha20 stream cipher (RFC 7539)
130
131	  Architecture: s390
132
133	  It is available as of z13.
134
135endmenu
136