mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-11 07:11:51 -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>
36 lines
864 B
Plaintext
36 lines
864 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
menu "Accelerated Cryptographic Algorithms for CPU (mips)"
|
|
|
|
config CRYPTO_MD5_OCTEON
|
|
tristate "Digests: MD5 (OCTEON)"
|
|
depends on CPU_CAVIUM_OCTEON
|
|
select CRYPTO_MD5
|
|
select CRYPTO_HASH
|
|
help
|
|
MD5 message digest algorithm (RFC1321)
|
|
|
|
Architecture: mips OCTEON using crypto instructions, when available
|
|
|
|
config CRYPTO_SHA1_OCTEON
|
|
tristate "Hash functions: SHA-1 (OCTEON)"
|
|
depends on CPU_CAVIUM_OCTEON
|
|
select CRYPTO_SHA1
|
|
select CRYPTO_HASH
|
|
help
|
|
SHA-1 secure hash algorithm (FIPS 180)
|
|
|
|
Architecture: mips OCTEON
|
|
|
|
config CRYPTO_SHA512_OCTEON
|
|
tristate "Hash functions: SHA-384 and SHA-512 (OCTEON)"
|
|
depends on CPU_CAVIUM_OCTEON
|
|
select CRYPTO_SHA512
|
|
select CRYPTO_HASH
|
|
help
|
|
SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
|
|
|
|
Architecture: mips OCTEON using crypto instructions, when available
|
|
|
|
endmenu
|