mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
Add CRYPTO_ARCH_HAVE_LIB_SHA256_SIMD and a SIMD block function so that the caller can decide whether to use SIMD. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 lines
483 B
Plaintext
17 lines
483 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
config CRYPTO_CHACHA_RISCV64
|
|
tristate
|
|
depends on 64BIT && RISCV_ISA_V && TOOLCHAIN_HAS_VECTOR_CRYPTO
|
|
default CRYPTO_LIB_CHACHA
|
|
select CRYPTO_ARCH_HAVE_LIB_CHACHA
|
|
select CRYPTO_LIB_CHACHA_GENERIC
|
|
|
|
config CRYPTO_SHA256_RISCV64
|
|
tristate
|
|
depends on 64BIT && RISCV_ISA_V && TOOLCHAIN_HAS_VECTOR_CRYPTO
|
|
default CRYPTO_LIB_SHA256
|
|
select CRYPTO_ARCH_HAVE_LIB_SHA256
|
|
select CRYPTO_ARCH_HAVE_LIB_SHA256_SIMD
|
|
select CRYPTO_LIB_SHA256_GENERIC
|