xref: /linux/arch/s390/crypto/Kconfig (revision efd1d2c8f3c073c43d5616d0c2d698cbe8a3ecde)
1# SPDX-License-Identifier: GPL-2.0
2
3menu "Accelerated Cryptographic Algorithms for CPU (s390)"
4
5config CRYPTO_AES_S390
6	tristate "Ciphers: AES, modes: ECB, CBC, CTR, XTS, GCM"
7	select CRYPTO_SKCIPHER
8	help
9	  AEAD cipher: AES with GCM
10	  Length-preserving ciphers: AES with ECB, CBC, XTS, and CTR modes
11
12	  Architecture: s390
13
14	  As of z9 the ECB and CBC modes are hardware accelerated
15	  for 128 bit keys.
16
17	  As of z10 the ECB and CBC modes are hardware accelerated
18	  for all AES key sizes.
19
20	  As of z196 the CTR mode is hardware accelerated for all AES
21	  key sizes and XTS mode is hardware accelerated for 256 and
22	  512 bit keys.
23
24config CRYPTO_DES_S390
25	tristate "Ciphers: DES and Triple DES EDE, modes: ECB, CBC, CTR"
26	select CRYPTO_ALGAPI
27	select CRYPTO_SKCIPHER
28	select CRYPTO_LIB_DES
29	help
30	  Block ciphers: DES (FIPS 46-2) cipher algorithm
31	  Block ciphers: Triple DES EDE (FIPS 46-3) cipher algorithm
32	  Length-preserving ciphers: DES with ECB, CBC, and CTR modes
33	  Length-preserving ciphers: Triple DES EDED with ECB, CBC, and CTR modes
34
35	  Architecture: s390
36
37	  As of z990 the ECB and CBC mode are hardware accelerated.
38	  As of z196 the CTR mode is hardware accelerated.
39
40config CRYPTO_HMAC_S390
41	tristate "Keyed-hash message authentication code: HMAC"
42	select CRYPTO_HASH
43	help
44	  s390 specific HMAC hardware support for SHA224, SHA256, SHA384 and
45	  SHA512.
46
47	  Architecture: s390
48
49endmenu
50