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