Kyle Swenson | 8d8f654 | 2021-03-15 11:02:55 -0600 | [diff] [blame^] | 1 | |
| 2 | menuconfig ARM64_CRYPTO |
| 3 | bool "ARM64 Accelerated Cryptographic Algorithms" |
| 4 | depends on ARM64 |
| 5 | help |
| 6 | Say Y here to choose from a selection of cryptographic algorithms |
| 7 | implemented using ARM64 specific CPU features or instructions. |
| 8 | |
| 9 | if ARM64_CRYPTO |
| 10 | |
| 11 | config CRYPTO_SHA1_ARM64_CE |
| 12 | tristate "SHA-1 digest algorithm (ARMv8 Crypto Extensions)" |
| 13 | depends on ARM64 && KERNEL_MODE_NEON |
| 14 | select CRYPTO_HASH |
| 15 | |
| 16 | config CRYPTO_SHA2_ARM64_CE |
| 17 | tristate "SHA-224/SHA-256 digest algorithm (ARMv8 Crypto Extensions)" |
| 18 | depends on ARM64 && KERNEL_MODE_NEON |
| 19 | select CRYPTO_HASH |
| 20 | |
| 21 | config CRYPTO_GHASH_ARM64_CE |
| 22 | tristate "GHASH (for GCM chaining mode) using ARMv8 Crypto Extensions" |
| 23 | depends on ARM64 && KERNEL_MODE_NEON |
| 24 | select CRYPTO_HASH |
| 25 | |
| 26 | config CRYPTO_AES_ARM64_CE |
| 27 | tristate "AES core cipher using ARMv8 Crypto Extensions" |
| 28 | depends on ARM64 && KERNEL_MODE_NEON |
| 29 | select CRYPTO_ALGAPI |
| 30 | |
| 31 | config CRYPTO_AES_ARM64_CE_CCM |
| 32 | tristate "AES in CCM mode using ARMv8 Crypto Extensions" |
| 33 | depends on ARM64 && KERNEL_MODE_NEON |
| 34 | select CRYPTO_ALGAPI |
| 35 | select CRYPTO_AES_ARM64_CE |
| 36 | select CRYPTO_AEAD |
| 37 | |
| 38 | config CRYPTO_AES_ARM64_CE_BLK |
| 39 | tristate "AES in ECB/CBC/CTR/XTS modes using ARMv8 Crypto Extensions" |
| 40 | depends on ARM64 && KERNEL_MODE_NEON |
| 41 | select CRYPTO_BLKCIPHER |
| 42 | select CRYPTO_AES_ARM64_CE |
| 43 | select CRYPTO_ABLK_HELPER |
| 44 | |
| 45 | config CRYPTO_AES_ARM64_NEON_BLK |
| 46 | tristate "AES in ECB/CBC/CTR/XTS modes using NEON instructions" |
| 47 | depends on ARM64 && KERNEL_MODE_NEON |
| 48 | select CRYPTO_BLKCIPHER |
| 49 | select CRYPTO_AES |
| 50 | select CRYPTO_ABLK_HELPER |
| 51 | |
| 52 | config CRYPTO_CRC32_ARM64 |
| 53 | tristate "CRC32 and CRC32C using optional ARMv8 instructions" |
| 54 | depends on ARM64 |
| 55 | select CRYPTO_HASH |
| 56 | endif |