mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
Move the SPARC64 AES assembly code into lib/crypto/, wire the key expansion and single-block en/decryption functions up to the AES library API, and remove the "aes-sparc64" crypto_cipher algorithm. The result is that both the AES library and crypto_cipher APIs use the SPARC64 AES opcodes, whereas previously only crypto_cipher did (and it wasn't enabled by default, which this commit fixes as well). Note that some of the functions in the SPARC64 AES assembly code are still used by the AES mode implementations in arch/sparc/crypto/aes_glue.c. For now, just export these functions. These exports will go away once the AES mode implementations are migrated to the library as well. (Trying to split up the assembly file seemed like much more trouble than it would be worth.) Acked-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20260112192035.10427-17-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
menu "Accelerated Cryptographic Algorithms for CPU (sparc64)"
|
|
|
|
config CRYPTO_DES_SPARC64
|
|
tristate "Ciphers: DES and Triple DES EDE, modes: ECB/CBC"
|
|
depends on SPARC64
|
|
select CRYPTO_ALGAPI
|
|
select CRYPTO_LIB_DES
|
|
select CRYPTO_SKCIPHER
|
|
help
|
|
Block cipher: DES (FIPS 46-2) cipher algorithm
|
|
Block cipher: Triple DES EDE (FIPS 46-3) cipher algorithm
|
|
Length-preserving ciphers: DES with ECB and CBC modes
|
|
Length-preserving ciphers: Tripe DES EDE with ECB and CBC modes
|
|
|
|
Architecture: sparc64
|
|
|
|
config CRYPTO_AES_SPARC64
|
|
tristate "Ciphers: AES, modes: ECB, CBC, CTR"
|
|
depends on SPARC64
|
|
select CRYPTO_LIB_AES
|
|
select CRYPTO_SKCIPHER
|
|
help
|
|
Length-preseving ciphers: AES with ECB, CBC, and CTR modes
|
|
|
|
Architecture: sparc64 using crypto instructions
|
|
|
|
config CRYPTO_CAMELLIA_SPARC64
|
|
tristate "Ciphers: Camellia, modes: ECB, CBC"
|
|
depends on SPARC64
|
|
select CRYPTO_ALGAPI
|
|
select CRYPTO_SKCIPHER
|
|
help
|
|
Block ciphers: Camellia cipher algorithms
|
|
Length-preserving ciphers: Camellia with ECB and CBC modes
|
|
|
|
Architecture: sparc64
|
|
|
|
endmenu
|