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