| # SPDX-License-Identifier: GPL-2.0 | |
| menu "Accelerated Cryptographic Algorithms for CPU (arm64)" | |
| config CRYPTO_GHASH_ARM64_CE | |
| tristate "AEAD cipher: AES in GCM mode (ARMv8 Crypto Extensions)" | |
| depends on KERNEL_MODE_NEON | |
| select CRYPTO_LIB_AES | |
| select CRYPTO_LIB_GF128MUL | |
| select CRYPTO_AEAD | |
| help | |
| AEAD cipher: AES-GCM | |
| Architecture: arm64 using: | |
| - ARMv8 Crypto Extensions | |
| config CRYPTO_AES_ARM64_CE_BLK | |
| tristate "Ciphers: AES, modes: ECB/CBC/CTR/XTS (ARMv8 Crypto Extensions)" | |
| depends on KERNEL_MODE_NEON | |
| select CRYPTO_SKCIPHER | |
| select CRYPTO_LIB_AES | |
| select CRYPTO_LIB_SHA256 | |
| help | |
| Length-preserving ciphers: AES cipher algorithms (FIPS-197) | |
| with block cipher modes: | |
| - ECB (Electronic Codebook) mode (NIST SP800-38A) | |
| - CBC (Cipher Block Chaining) mode (NIST SP800-38A) | |
| - CTR (Counter) mode (NIST SP800-38A) | |
| - XTS (XOR Encrypt XOR with ciphertext stealing) mode (NIST SP800-38E | |
| and IEEE 1619) | |
| Architecture: arm64 using: | |
| - ARMv8 Crypto Extensions | |
| config CRYPTO_AES_ARM64_NEON_BLK | |
| tristate "Ciphers: AES, modes: ECB/CBC/CTR/XTS (NEON)" | |
| depends on KERNEL_MODE_NEON | |
| select CRYPTO_SKCIPHER | |
| select CRYPTO_LIB_AES | |
| select CRYPTO_LIB_SHA256 | |
| help | |
| Length-preserving ciphers: AES cipher algorithms (FIPS-197) | |
| with block cipher modes: | |
| - ECB (Electronic Codebook) mode (NIST SP800-38A) | |
| - CBC (Cipher Block Chaining) mode (NIST SP800-38A) | |
| - CTR (Counter) mode (NIST SP800-38A) | |
| - XTS (XOR Encrypt XOR with ciphertext stealing) mode (NIST SP800-38E | |
| and IEEE 1619) | |
| Architecture: arm64 using: | |
| - NEON (Advanced SIMD) extensions | |
| config CRYPTO_AES_ARM64_BS | |
| tristate "Ciphers: AES, modes: ECB/CBC/CTR/XCTR/XTS modes (bit-sliced NEON)" | |
| depends on KERNEL_MODE_NEON | |
| select CRYPTO_SKCIPHER | |
| select CRYPTO_AES_ARM64_NEON_BLK | |
| select CRYPTO_LIB_AES | |
| help | |
| Length-preserving ciphers: AES cipher algorithms (FIPS-197) | |
| with block cipher modes: | |
| - ECB (Electronic Codebook) mode (NIST SP800-38A) | |
| - CBC (Cipher Block Chaining) mode (NIST SP800-38A) | |
| - CTR (Counter) mode (NIST SP800-38A) | |
| - XCTR mode for HCTR2 | |
| - XTS (XOR Encrypt XOR with ciphertext stealing) mode (NIST SP800-38E | |
| and IEEE 1619) | |
| Architecture: arm64 using: | |
| - bit-sliced algorithm | |
| - NEON (Advanced SIMD) extensions | |
| config CRYPTO_SM4_ARM64_CE | |
| tristate "Ciphers: SM4 (ARMv8.2 Crypto Extensions)" | |
| depends on KERNEL_MODE_NEON | |
| select CRYPTO_ALGAPI | |
| select CRYPTO_SM4 | |
| help | |
| Block ciphers: SM4 cipher algorithms (OSCCA GB/T 32907-2016) | |
| Architecture: arm64 using: | |
| - ARMv8.2 Crypto Extensions | |
| - NEON (Advanced SIMD) extensions | |
| config CRYPTO_SM4_ARM64_CE_BLK | |
| tristate "Ciphers: SM4, modes: ECB/CBC/CTR/XTS (ARMv8 Crypto Extensions)" | |
| depends on KERNEL_MODE_NEON | |
| select CRYPTO_SKCIPHER | |
| select CRYPTO_SM4 | |
| help | |
| Length-preserving ciphers: SM4 cipher algorithms (OSCCA GB/T 32907-2016) | |
| with block cipher modes: | |
| - ECB (Electronic Codebook) mode (NIST SP800-38A) | |
| - CBC (Cipher Block Chaining) mode (NIST SP800-38A) | |
| - CTR (Counter) mode (NIST SP800-38A) | |
| - XTS (XOR Encrypt XOR with ciphertext stealing) mode (NIST SP800-38E | |
| and IEEE 1619) | |
| Architecture: arm64 using: | |
| - ARMv8 Crypto Extensions | |
| - NEON (Advanced SIMD) extensions | |
| config CRYPTO_SM4_ARM64_NEON_BLK | |
| tristate "Ciphers: SM4, modes: ECB/CBC/CTR (NEON)" | |
| depends on KERNEL_MODE_NEON | |
| select CRYPTO_SKCIPHER | |
| select CRYPTO_SM4 | |
| help | |
| Length-preserving ciphers: SM4 cipher algorithms (OSCCA GB/T 32907-2016) | |
| with block cipher modes: | |
| - ECB (Electronic Codebook) mode (NIST SP800-38A) | |
| - CBC (Cipher Block Chaining) mode (NIST SP800-38A) | |
| - CTR (Counter) mode (NIST SP800-38A) | |
| Architecture: arm64 using: | |
| - NEON (Advanced SIMD) extensions | |
| config CRYPTO_AES_ARM64_CE_CCM | |
| tristate "AEAD cipher: AES in CCM mode (ARMv8 Crypto Extensions)" | |
| depends on KERNEL_MODE_NEON | |
| select CRYPTO_ALGAPI | |
| select CRYPTO_AES_ARM64_CE_BLK | |
| select CRYPTO_AEAD | |
| select CRYPTO_LIB_AES_CBC_MACS | |
| help | |
| AEAD cipher: AES cipher algorithms (FIPS-197) with | |
| CCM (Counter with Cipher Block Chaining-Message Authentication Code) | |
| authenticated encryption mode (NIST SP800-38C) | |
| Architecture: arm64 using: | |
| - ARMv8 Crypto Extensions | |
| - NEON (Advanced SIMD) extensions | |
| config CRYPTO_SM4_ARM64_CE_CCM | |
| tristate "AEAD cipher: SM4 in CCM mode (ARMv8 Crypto Extensions)" | |
| depends on KERNEL_MODE_NEON | |
| select CRYPTO_ALGAPI | |
| select CRYPTO_AEAD | |
| select CRYPTO_SM4 | |
| select CRYPTO_SM4_ARM64_CE_BLK | |
| help | |
| AEAD cipher: SM4 cipher algorithms (OSCCA GB/T 32907-2016) with | |
| CCM (Counter with Cipher Block Chaining-Message Authentication Code) | |
| authenticated encryption mode (NIST SP800-38C) | |
| Architecture: arm64 using: | |
| - ARMv8 Crypto Extensions | |
| - NEON (Advanced SIMD) extensions | |
| config CRYPTO_SM4_ARM64_CE_GCM | |
| tristate "AEAD cipher: SM4 in GCM mode (ARMv8 Crypto Extensions)" | |
| depends on KERNEL_MODE_NEON | |
| select CRYPTO_ALGAPI | |
| select CRYPTO_AEAD | |
| select CRYPTO_SM4 | |
| select CRYPTO_SM4_ARM64_CE_BLK | |
| help | |
| AEAD cipher: SM4 cipher algorithms (OSCCA GB/T 32907-2016) with | |
| GCM (Galois/Counter Mode) authenticated encryption mode (NIST SP800-38D) | |
| Architecture: arm64 using: | |
| - ARMv8 Crypto Extensions | |
| - PMULL (Polynomial Multiply Long) instructions | |
| - NEON (Advanced SIMD) extensions | |
| endmenu | |