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