xref: /linux/arch/s390/crypto/Kconfig (revision 23ca32e4ead48f68e37000f2552b973ef1439acb)
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	select CRYPTO_HASH
8	help
9	  SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
10
11	  Architecture: s390
12
13	  It is available as of z10.
14
15config CRYPTO_SHA1_S390
16	tristate "Hash functions: SHA-1"
17	select CRYPTO_HASH
18	help
19	  SHA-1 secure hash algorithm (FIPS 180)
20
21	  Architecture: s390
22
23	  It is available as of z990.
24
25config CRYPTO_SHA3_256_S390
26	tristate "Hash functions: SHA3-224 and SHA3-256"
27	select CRYPTO_HASH
28	help
29	  SHA3-224 and SHA3-256 secure hash algorithms (FIPS 202)
30
31	  Architecture: s390
32
33	  It is available as of z14.
34
35config CRYPTO_SHA3_512_S390
36	tristate "Hash functions: SHA3-384 and SHA3-512"
37	select CRYPTO_HASH
38	help
39	  SHA3-384 and SHA3-512 secure hash algorithms (FIPS 202)
40
41	  Architecture: s390
42
43	  It is available as of z14.
44
45config CRYPTO_GHASH_S390
46	tristate "Hash functions: GHASH"
47	select CRYPTO_HASH
48	help
49	  GCM GHASH hash function (NIST SP800-38D)
50
51	  Architecture: s390
52
53	  It is available as of z196.
54
55config CRYPTO_AES_S390
56	tristate "Ciphers: AES, modes: ECB, CBC, CTR, XTS, GCM"
57	select CRYPTO_ALGAPI
58	select CRYPTO_SKCIPHER
59	help
60	  Block cipher: AES cipher algorithms (FIPS 197)
61	  AEAD cipher: AES with GCM
62	  Length-preserving ciphers: AES with ECB, CBC, XTS, and CTR modes
63
64	  Architecture: s390
65
66	  As of z9 the ECB and CBC modes are hardware accelerated
67	  for 128 bit keys.
68
69	  As of z10 the ECB and CBC modes are hardware accelerated
70	  for all AES key sizes.
71
72	  As of z196 the CTR mode is hardware accelerated for all AES
73	  key sizes and XTS mode is hardware accelerated for 256 and
74	  512 bit keys.
75
76config CRYPTO_DES_S390
77	tristate "Ciphers: DES and Triple DES EDE, modes: ECB, CBC, CTR"
78	select CRYPTO_ALGAPI
79	select CRYPTO_SKCIPHER
80	select CRYPTO_LIB_DES
81	help
82	  Block ciphers: DES (FIPS 46-2) cipher algorithm
83	  Block ciphers: Triple DES EDE (FIPS 46-3) cipher algorithm
84	  Length-preserving ciphers: DES with ECB, CBC, and CTR modes
85	  Length-preserving ciphers: Triple DES EDED with ECB, CBC, and CTR modes
86
87	  Architecture: s390
88
89	  As of z990 the ECB and CBC mode are hardware accelerated.
90	  As of z196 the CTR mode is hardware accelerated.
91
92config CRYPTO_HMAC_S390
93	tristate "Keyed-hash message authentication code: HMAC"
94	select CRYPTO_HASH
95	help
96	  s390 specific HMAC hardware support for SHA224, SHA256, SHA384 and
97	  SHA512.
98
99	  Architecture: s390
100
101endmenu
102