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