mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 06:39:05 +00:00

Instead of exposing the s390-optimized SHA-1 code via s390-specific crypto_shash algorithms, instead just implement the sha1_blocks() library function. This is much simpler, it makes the SHA-1 library functions be s390-optimized, and it fixes the longstanding issue where the s390-optimized SHA-1 code was disabled by default. SHA-1 still remains available through crypto_shash, but individual architectures no longer need to handle it. Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20250712232329.818226-12-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
82 lines
2.1 KiB
Plaintext
82 lines
2.1 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
menu "Accelerated Cryptographic Algorithms for CPU (s390)"
|
|
|
|
config CRYPTO_SHA3_256_S390
|
|
tristate "Hash functions: SHA3-224 and SHA3-256"
|
|
select CRYPTO_HASH
|
|
help
|
|
SHA3-224 and SHA3-256 secure hash algorithms (FIPS 202)
|
|
|
|
Architecture: s390
|
|
|
|
It is available as of z14.
|
|
|
|
config CRYPTO_SHA3_512_S390
|
|
tristate "Hash functions: SHA3-384 and SHA3-512"
|
|
select CRYPTO_HASH
|
|
help
|
|
SHA3-384 and SHA3-512 secure hash algorithms (FIPS 202)
|
|
|
|
Architecture: s390
|
|
|
|
It is available as of z14.
|
|
|
|
config CRYPTO_GHASH_S390
|
|
tristate "Hash functions: GHASH"
|
|
select CRYPTO_HASH
|
|
help
|
|
GCM GHASH hash function (NIST SP800-38D)
|
|
|
|
Architecture: s390
|
|
|
|
It is available as of z196.
|
|
|
|
config CRYPTO_AES_S390
|
|
tristate "Ciphers: AES, modes: ECB, CBC, CTR, XTS, GCM"
|
|
select CRYPTO_ALGAPI
|
|
select CRYPTO_SKCIPHER
|
|
help
|
|
Block cipher: AES cipher algorithms (FIPS 197)
|
|
AEAD cipher: AES with GCM
|
|
Length-preserving ciphers: AES with ECB, CBC, XTS, and CTR modes
|
|
|
|
Architecture: s390
|
|
|
|
As of z9 the ECB and CBC modes are hardware accelerated
|
|
for 128 bit keys.
|
|
|
|
As of z10 the ECB and CBC modes are hardware accelerated
|
|
for all AES key sizes.
|
|
|
|
As of z196 the CTR mode is hardware accelerated for all AES
|
|
key sizes and XTS mode is hardware accelerated for 256 and
|
|
512 bit keys.
|
|
|
|
config CRYPTO_DES_S390
|
|
tristate "Ciphers: DES and Triple DES EDE, modes: ECB, CBC, CTR"
|
|
select CRYPTO_ALGAPI
|
|
select CRYPTO_SKCIPHER
|
|
select CRYPTO_LIB_DES
|
|
help
|
|
Block ciphers: DES (FIPS 46-2) cipher algorithm
|
|
Block ciphers: Triple DES EDE (FIPS 46-3) cipher algorithm
|
|
Length-preserving ciphers: DES with ECB, CBC, and CTR modes
|
|
Length-preserving ciphers: Triple DES EDED with ECB, CBC, and CTR modes
|
|
|
|
Architecture: s390
|
|
|
|
As of z990 the ECB and CBC mode are hardware accelerated.
|
|
As of z196 the CTR mode is hardware accelerated.
|
|
|
|
config CRYPTO_HMAC_S390
|
|
tristate "Keyed-hash message authentication code: HMAC"
|
|
select CRYPTO_HASH
|
|
help
|
|
s390 specific HMAC hardware support for SHA224, SHA256, SHA384 and
|
|
SHA512.
|
|
|
|
Architecture: s390
|
|
|
|
endmenu
|