2022-08-20 13:41:36 -05:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
|
|
|
menu "Accelerated Cryptographic Algorithms for CPU (powerpc)"
|
|
|
|
|
2024-05-16 11:19:57 -04:00
|
|
|
config CRYPTO_CURVE25519_PPC64
|
2025-02-27 15:48:39 +08:00
|
|
|
tristate
|
2024-05-16 11:19:57 -04:00
|
|
|
depends on PPC64 && CPU_LITTLE_ENDIAN
|
2025-02-27 15:48:39 +08:00
|
|
|
select CRYPTO_KPP
|
2024-05-16 11:19:57 -04:00
|
|
|
select CRYPTO_LIB_CURVE25519_GENERIC
|
2025-02-27 15:48:39 +08:00
|
|
|
select CRYPTO_ARCH_HAVE_LIB_CURVE25519
|
|
|
|
default CRYPTO_LIB_CURVE25519_INTERNAL
|
2024-05-16 11:19:57 -04:00
|
|
|
help
|
|
|
|
Curve25519 algorithm
|
|
|
|
|
|
|
|
Architecture: PowerPC64
|
|
|
|
- Little-endian
|
|
|
|
|
2022-08-20 13:41:36 -05:00
|
|
|
config CRYPTO_MD5_PPC
|
2022-08-20 13:41:48 -05:00
|
|
|
tristate "Digests: MD5"
|
2022-08-20 13:41:36 -05:00
|
|
|
select CRYPTO_HASH
|
|
|
|
help
|
2022-08-20 13:41:48 -05:00
|
|
|
MD5 message digest algorithm (RFC1321)
|
|
|
|
|
|
|
|
Architecture: powerpc
|
2022-08-20 13:41:36 -05:00
|
|
|
|
|
|
|
config CRYPTO_AES_PPC_SPE
|
2022-08-20 13:41:50 -05:00
|
|
|
tristate "Ciphers: AES, modes: ECB/CBC/CTR/XTS (SPE)"
|
2025-04-22 08:27:05 -07:00
|
|
|
depends on SPE
|
2022-08-20 13:41:36 -05:00
|
|
|
select CRYPTO_SKCIPHER
|
|
|
|
help
|
2022-08-20 13:41:50 -05: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-20 13:41:36 -05: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-20 22:40:21 -05:00
|
|
|
config CRYPTO_AES_GCM_P10
|
|
|
|
tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
|
2023-05-15 22:40:08 +10:00
|
|
|
depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
|
2023-02-20 22:40:21 -05:00
|
|
|
select CRYPTO_LIB_AES
|
|
|
|
select CRYPTO_ALGAPI
|
|
|
|
select CRYPTO_AEAD
|
2023-07-10 09:46:46 -07:00
|
|
|
select CRYPTO_SKCIPHER
|
2024-09-23 09:30:40 -04:00
|
|
|
select CRYPTO_SIMD
|
2023-02-20 22:40:21 -05: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.
|
|
|
|
|
2024-01-02 15:58:56 -05:00
|
|
|
config CRYPTO_DEV_VMX
|
|
|
|
bool "Support for VMX cryptographic acceleration instructions"
|
|
|
|
depends on PPC64 && VSX
|
|
|
|
help
|
|
|
|
Support for VMX cryptographic acceleration instructions.
|
|
|
|
|
|
|
|
config CRYPTO_DEV_VMX_ENCRYPT
|
|
|
|
tristate "Encryption acceleration support on P8 CPU"
|
|
|
|
depends on CRYPTO_DEV_VMX
|
|
|
|
select CRYPTO_AES
|
|
|
|
select CRYPTO_CBC
|
|
|
|
select CRYPTO_CTR
|
|
|
|
select CRYPTO_GHASH
|
|
|
|
select CRYPTO_XTS
|
|
|
|
default m
|
|
|
|
help
|
|
|
|
Support for VMX cryptographic acceleration instructions on Power8 CPU.
|
|
|
|
This module supports acceleration for AES and GHASH in hardware. If you
|
|
|
|
choose 'M' here, this module will be called vmx-crypto.
|
|
|
|
|
2022-08-20 13:41:36 -05:00
|
|
|
endmenu
|