mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
Instead of providing crypto_shash algorithms for the arch-optimized SHA-256 code, instead implement the SHA-256 library. This is much simpler, it makes the SHA-256 library functions be arch-optimized, and it fixes the longstanding issue where the arch-optimized SHA-256 was disabled by default. SHA-256 still remains available through crypto_shash, but individual architectures no longer need to handle it. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
22 lines
527 B
Plaintext
22 lines
527 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
config CRYPTO_CHACHA20_P10
|
|
tristate
|
|
depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
|
|
default CRYPTO_LIB_CHACHA
|
|
select CRYPTO_LIB_CHACHA_GENERIC
|
|
select CRYPTO_ARCH_HAVE_LIB_CHACHA
|
|
|
|
config CRYPTO_POLY1305_P10
|
|
tristate
|
|
depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
|
|
default CRYPTO_LIB_POLY1305
|
|
select CRYPTO_ARCH_HAVE_LIB_POLY1305
|
|
select CRYPTO_LIB_POLY1305_GENERIC
|
|
|
|
config CRYPTO_SHA256_PPC_SPE
|
|
tristate
|
|
depends on SPE
|
|
default CRYPTO_LIB_SHA256
|
|
select CRYPTO_ARCH_HAVE_LIB_SHA256
|