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 183f342a23SRobert Elliott tristate "Hash functions: SHA-384 and SHA-512" 19c9d24c97SRobert Elliott depends on S390 20c9d24c97SRobert Elliott select CRYPTO_HASH 21c9d24c97SRobert Elliott help 223f342a23SRobert Elliott SHA-384 and SHA-512 secure hash algorithms (FIPS 180) 233f342a23SRobert Elliott 243f342a23SRobert Elliott Architecture: s390 25c9d24c97SRobert Elliott 26c9d24c97SRobert Elliott It is available as of z10. 27c9d24c97SRobert Elliott 28c9d24c97SRobert Elliottconfig CRYPTO_SHA1_S390 293f342a23SRobert Elliott tristate "Hash functions: SHA-1" 30c9d24c97SRobert Elliott depends on S390 31c9d24c97SRobert Elliott select CRYPTO_HASH 32c9d24c97SRobert Elliott help 333f342a23SRobert Elliott SHA-1 secure hash algorithm (FIPS 180) 343f342a23SRobert Elliott 353f342a23SRobert Elliott Architecture: s390 36c9d24c97SRobert Elliott 37c9d24c97SRobert Elliott It is available as of z990. 38c9d24c97SRobert Elliott 39c9d24c97SRobert Elliottconfig CRYPTO_SHA256_S390 403f342a23SRobert Elliott tristate "Hash functions: SHA-224 and SHA-256" 41c9d24c97SRobert Elliott depends on S390 42c9d24c97SRobert Elliott select CRYPTO_HASH 43c9d24c97SRobert Elliott help 443f342a23SRobert Elliott SHA-224 and SHA-256 secure hash algorithms (FIPS 180) 453f342a23SRobert Elliott 463f342a23SRobert Elliott Architecture: s390 47c9d24c97SRobert Elliott 48c9d24c97SRobert Elliott It is available as of z9. 49c9d24c97SRobert Elliott 50c9d24c97SRobert Elliottconfig CRYPTO_SHA3_256_S390 513f342a23SRobert Elliott tristate "Hash functions: SHA3-224 and SHA3-256" 52c9d24c97SRobert Elliott depends on S390 53c9d24c97SRobert Elliott select CRYPTO_HASH 54c9d24c97SRobert Elliott help 553f342a23SRobert Elliott SHA3-224 and SHA3-256 secure hash algorithms (FIPS 202) 563f342a23SRobert Elliott 573f342a23SRobert Elliott Architecture: s390 58c9d24c97SRobert Elliott 59c9d24c97SRobert Elliott It is available as of z14. 60c9d24c97SRobert Elliott 61c9d24c97SRobert Elliottconfig CRYPTO_SHA3_512_S390 623f342a23SRobert Elliott tristate "Hash functions: SHA3-384 and SHA3-512" 63c9d24c97SRobert Elliott depends on S390 64c9d24c97SRobert Elliott select CRYPTO_HASH 65c9d24c97SRobert Elliott help 663f342a23SRobert Elliott SHA3-384 and SHA3-512 secure hash algorithms (FIPS 202) 673f342a23SRobert Elliott 683f342a23SRobert Elliott Architecture: s390 69c9d24c97SRobert Elliott 70c9d24c97SRobert Elliott It is available as of z14. 71c9d24c97SRobert Elliott 72c9d24c97SRobert Elliottconfig CRYPTO_GHASH_S390 733f342a23SRobert Elliott tristate "Hash functions: GHASH" 74c9d24c97SRobert Elliott depends on S390 75c9d24c97SRobert Elliott select CRYPTO_HASH 76c9d24c97SRobert Elliott help 773f342a23SRobert Elliott GCM GHASH hash function (NIST SP800-38D) 783f342a23SRobert Elliott 793f342a23SRobert Elliott Architecture: s390 80c9d24c97SRobert Elliott 81c9d24c97SRobert Elliott It is available as of z196. 82c9d24c97SRobert Elliott 83c9d24c97SRobert Elliottconfig CRYPTO_AES_S390 84cf514b2aSRobert Elliott tristate "Ciphers: AES, modes: ECB, CBC, CTR, XTS, GCM" 85c9d24c97SRobert Elliott depends on S390 86c9d24c97SRobert Elliott select CRYPTO_ALGAPI 87c9d24c97SRobert Elliott select CRYPTO_SKCIPHER 88c9d24c97SRobert Elliott help 89cf514b2aSRobert Elliott Block cipher: AES cipher algorithms (FIPS 197) 90cf514b2aSRobert Elliott AEAD cipher: AES with GCM 91cf514b2aSRobert Elliott Length-preserving ciphers: AES with ECB, CBC, XTS, and CTR modes 92cf514b2aSRobert Elliott 93cf514b2aSRobert Elliott Architecture: s390 94c9d24c97SRobert Elliott 95c9d24c97SRobert Elliott As of z9 the ECB and CBC modes are hardware accelerated 96c9d24c97SRobert Elliott for 128 bit keys. 97cf514b2aSRobert Elliott 98c9d24c97SRobert Elliott As of z10 the ECB and CBC modes are hardware accelerated 99c9d24c97SRobert Elliott for all AES key sizes. 100cf514b2aSRobert Elliott 101c9d24c97SRobert Elliott As of z196 the CTR mode is hardware accelerated for all AES 102c9d24c97SRobert Elliott key sizes and XTS mode is hardware accelerated for 256 and 103c9d24c97SRobert Elliott 512 bit keys. 104c9d24c97SRobert Elliott 105c9d24c97SRobert Elliottconfig CRYPTO_DES_S390 106cf514b2aSRobert Elliott tristate "Ciphers: DES and Triple DES EDE, modes: ECB, CBC, CTR" 107c9d24c97SRobert Elliott depends on S390 108c9d24c97SRobert Elliott select CRYPTO_ALGAPI 109c9d24c97SRobert Elliott select CRYPTO_SKCIPHER 110c9d24c97SRobert Elliott select CRYPTO_LIB_DES 111c9d24c97SRobert Elliott help 112cf514b2aSRobert Elliott Block ciphers: DES (FIPS 46-2) cipher algorithm 113cf514b2aSRobert Elliott Block ciphers: Triple DES EDE (FIPS 46-3) cipher algorithm 114cf514b2aSRobert Elliott Length-preserving ciphers: DES with ECB, CBC, and CTR modes 115cf514b2aSRobert Elliott Length-preserving ciphers: Triple DES EDED with ECB, CBC, and CTR modes 116cf514b2aSRobert Elliott 117cf514b2aSRobert Elliott Architecture: s390 118c9d24c97SRobert Elliott 119c9d24c97SRobert Elliott As of z990 the ECB and CBC mode are hardware accelerated. 120c9d24c97SRobert Elliott As of z196 the CTR mode is hardware accelerated. 121c9d24c97SRobert Elliott 122c9d24c97SRobert Elliottconfig CRYPTO_CHACHA_S390 123cf514b2aSRobert Elliott tristate "Ciphers: ChaCha20" 124c9d24c97SRobert Elliott depends on S390 125c9d24c97SRobert Elliott select CRYPTO_SKCIPHER 126c9d24c97SRobert Elliott select CRYPTO_LIB_CHACHA_GENERIC 127c9d24c97SRobert Elliott select CRYPTO_ARCH_HAVE_LIB_CHACHA 128c9d24c97SRobert Elliott help 129cf514b2aSRobert Elliott Length-preserving cipher: ChaCha20 stream cipher (RFC 7539) 130cf514b2aSRobert Elliott 131cf514b2aSRobert Elliott Architecture: s390 132c9d24c97SRobert Elliott 133c9d24c97SRobert Elliott It is available as of z13. 134c9d24c97SRobert Elliott 135*c3dcb058SHolger Denglerconfig CRYPTO_HMAC_S390 136*c3dcb058SHolger Dengler tristate "Keyed-hash message authentication code: HMAC" 137*c3dcb058SHolger Dengler depends on S390 138*c3dcb058SHolger Dengler select CRYPTO_HASH 139*c3dcb058SHolger Dengler help 140*c3dcb058SHolger Dengler s390 specific HMAC hardware support for SHA224, SHA256, SHA384 and 141*c3dcb058SHolger Dengler SHA512. 142*c3dcb058SHolger Dengler 143*c3dcb058SHolger Dengler Architecture: s390 144*c3dcb058SHolger Dengler 145c9d24c97SRobert Elliottendmenu 146