2022-08-21 02:41:36 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
|
|
|
menu "Accelerated Cryptographic Algorithms for CPU (powerpc)"
|
|
|
|
|
|
|
|
config CRYPTO_CRC32C_VPMSUM
|
2022-08-21 02:41:46 +08:00
|
|
|
tristate "CRC32c"
|
2022-08-21 02:41:36 +08:00
|
|
|
depends on PPC64 && ALTIVEC
|
|
|
|
select CRYPTO_HASH
|
|
|
|
select CRC32
|
|
|
|
help
|
2022-08-21 02:41:46 +08:00
|
|
|
CRC32c CRC algorithm with the iSCSI polynomial (RFC 3385 and RFC 3720)
|
|
|
|
|
|
|
|
Architecture: powerpc64 using
|
|
|
|
- AltiVec extensions
|
|
|
|
|
|
|
|
Enable on POWER8 and newer processors for improved performance.
|
2022-08-21 02:41:36 +08:00
|
|
|
|
|
|
|
config CRYPTO_CRCT10DIF_VPMSUM
|
2022-08-21 02:41:46 +08:00
|
|
|
tristate "CRC32T10DIF"
|
2022-08-21 02:41:36 +08:00
|
|
|
depends on PPC64 && ALTIVEC && CRC_T10DIF
|
|
|
|
select CRYPTO_HASH
|
|
|
|
help
|
2022-08-21 02:41:46 +08:00
|
|
|
CRC16 CRC algorithm used for the T10 (SCSI) Data Integrity Field (DIF)
|
|
|
|
|
|
|
|
Architecture: powerpc64 using
|
|
|
|
- AltiVec extensions
|
|
|
|
|
|
|
|
Enable on POWER8 and newer processors for improved performance.
|
2022-08-21 02:41:36 +08:00
|
|
|
|
|
|
|
config CRYPTO_VPMSUM_TESTER
|
2022-08-21 02:41:46 +08:00
|
|
|
tristate "CRC32c and CRC32T10DIF hardware acceleration tester"
|
2022-08-21 02:41:36 +08:00
|
|
|
depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM
|
|
|
|
help
|
2022-08-21 02:41:46 +08:00
|
|
|
Stress test for CRC32c and CRCT10DIF algorithms implemented with
|
|
|
|
powerpc64 AltiVec extensions (POWER8 vpmsum instructions).
|
2022-08-21 02:41:36 +08:00
|
|
|
Unless you are testing these algorithms, you don't need this.
|
|
|
|
|
|
|
|
config CRYPTO_MD5_PPC
|
2022-08-21 02:41:48 +08:00
|
|
|
tristate "Digests: MD5"
|
2022-08-21 02:41:36 +08:00
|
|
|
depends on PPC
|
|
|
|
select CRYPTO_HASH
|
|
|
|
help
|
2022-08-21 02:41:48 +08:00
|
|
|
MD5 message digest algorithm (RFC1321)
|
|
|
|
|
|
|
|
Architecture: powerpc
|
2022-08-21 02:41:36 +08:00
|
|
|
|
|
|
|
config CRYPTO_SHA1_PPC
|
2022-08-21 02:41:48 +08:00
|
|
|
tristate "Hash functions: SHA-1"
|
2022-08-21 02:41:36 +08:00
|
|
|
depends on PPC
|
|
|
|
help
|
2022-08-21 02:41:48 +08:00
|
|
|
SHA-1 secure hash algorithm (FIPS 180)
|
|
|
|
|
|
|
|
Architecture: powerpc
|
2022-08-21 02:41:36 +08:00
|
|
|
|
|
|
|
config CRYPTO_SHA1_PPC_SPE
|
2022-08-21 02:41:48 +08:00
|
|
|
tristate "Hash functions: SHA-1 (SPE)"
|
2022-08-21 02:41:36 +08:00
|
|
|
depends on PPC && SPE
|
|
|
|
help
|
2022-08-21 02:41:48 +08:00
|
|
|
SHA-1 secure hash algorithm (FIPS 180)
|
|
|
|
|
|
|
|
Architecture: powerpc using
|
|
|
|
- SPE (Signal Processing Engine) extensions
|
2022-08-21 02:41:36 +08:00
|
|
|
|
|
|
|
config CRYPTO_SHA256_PPC_SPE
|
2022-08-21 02:41:48 +08:00
|
|
|
tristate "Hash functions: SHA-224 and SHA-256 (SPE)"
|
2022-08-21 02:41:36 +08:00
|
|
|
depends on PPC && SPE
|
|
|
|
select CRYPTO_SHA256
|
|
|
|
select CRYPTO_HASH
|
|
|
|
help
|
2022-08-21 02:41:48 +08:00
|
|
|
SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
|
|
|
|
|
|
|
|
Architecture: powerpc using
|
|
|
|
- SPE (Signal Processing Engine) extensions
|
2022-08-21 02:41:36 +08:00
|
|
|
|
|
|
|
config CRYPTO_AES_PPC_SPE
|
2022-08-21 02:41:50 +08:00
|
|
|
tristate "Ciphers: AES, modes: ECB/CBC/CTR/XTS (SPE)"
|
2022-08-21 02:41:36 +08:00
|
|
|
depends on PPC && SPE
|
|
|
|
select CRYPTO_SKCIPHER
|
|
|
|
help
|
2022-08-21 02:41:50 +08:00
|
|
|
Block ciphers: AES cipher algorithms (FIPS-197)
|
|
|
|
Length-preserving ciphers: AES with ECB, CBC, CTR, and XTS modes
|
|
|
|
|
|
|
|
Architecture: powerpc using:
|
|
|
|
- SPE (Signal Processing Engine) extensions
|
|
|
|
|
|
|
|
SPE is available for:
|
|
|
|
- Processor Type: Freescale 8500
|
|
|
|
- CPU selection: e500 (8540)
|
|
|
|
|
2022-08-21 02:41:36 +08:00
|
|
|
This module should only be used for low power (router) devices
|
|
|
|
without hardware AES acceleration (e.g. caam crypto). It reduces the
|
|
|
|
size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
|
|
|
|
timining attacks. Nevertheless it might be not as secure as other
|
|
|
|
architecture specific assembler implementations that work on 1KB
|
|
|
|
tables or 256 bytes S-boxes.
|
|
|
|
|
2023-02-21 11:40:21 +08:00
|
|
|
config CRYPTO_AES_GCM_P10
|
|
|
|
tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
|
2023-05-15 20:40:08 +08:00
|
|
|
depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
|
2023-02-21 11:40:21 +08:00
|
|
|
select CRYPTO_LIB_AES
|
|
|
|
select CRYPTO_ALGAPI
|
|
|
|
select CRYPTO_AEAD
|
2023-07-11 00:46:46 +08:00
|
|
|
select CRYPTO_SKCIPHER
|
2023-02-21 11:40:21 +08:00
|
|
|
help
|
|
|
|
AEAD cipher: AES cipher algorithms (FIPS-197)
|
|
|
|
GCM (Galois/Counter Mode) authenticated encryption mode (NIST SP800-38D)
|
|
|
|
Architecture: powerpc64 using:
|
|
|
|
- little-endian
|
|
|
|
- Power10 or later features
|
|
|
|
|
|
|
|
Support for cryptographic acceleration instructions on Power10 or
|
|
|
|
later CPU. This module supports stitched acceleration for AES/GCM.
|
|
|
|
|
2023-04-27 03:11:47 +08:00
|
|
|
config CRYPTO_CHACHA20_P10
|
|
|
|
tristate "Ciphers: ChaCha20, XChacha20, XChacha12 (P10 or later)"
|
2023-08-28 17:07:42 +08:00
|
|
|
depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
|
2023-04-27 03:11:47 +08:00
|
|
|
select CRYPTO_SKCIPHER
|
|
|
|
select CRYPTO_LIB_CHACHA_GENERIC
|
|
|
|
select CRYPTO_ARCH_HAVE_LIB_CHACHA
|
|
|
|
help
|
|
|
|
Length-preserving ciphers: ChaCha20, XChaCha20, and XChaCha12
|
|
|
|
stream cipher algorithms
|
|
|
|
|
|
|
|
Architecture: PowerPC64
|
|
|
|
- Power10 or later
|
|
|
|
- Little-endian
|
|
|
|
|
|
|
|
config CRYPTO_POLY1305_P10
|
|
|
|
tristate "Hash functions: Poly1305 (P10 or later)"
|
2023-08-28 17:07:42 +08:00
|
|
|
depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
|
2023-04-27 03:11:47 +08:00
|
|
|
select CRYPTO_HASH
|
|
|
|
select CRYPTO_LIB_POLY1305_GENERIC
|
|
|
|
help
|
|
|
|
Poly1305 authenticator algorithm (RFC7539)
|
|
|
|
|
|
|
|
Architecture: PowerPC64
|
|
|
|
- Power10 or later
|
|
|
|
- Little-endian
|
|
|
|
|
2022-08-21 02:41:36 +08:00
|
|
|
endmenu
|