Ard Biesheuvel | 2c98833 | 2014-03-06 16:23:33 +0800 | [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 | |
Ard Biesheuvel | 7918ece | 2016-11-20 11:42:01 +0000 | [diff] [blame^] | 11 | config CRYPTO_SHA256_ARM64 |
| 12 | tristate "SHA-224/SHA-256 digest algorithm for arm64" |
| 13 | select CRYPTO_HASH |
| 14 | |
| 15 | config CRYPTO_SHA512_ARM64 |
| 16 | tristate "SHA-384/SHA-512 digest algorithm for arm64" |
| 17 | select CRYPTO_HASH |
| 18 | |
Ard Biesheuvel | 2c98833 | 2014-03-06 16:23:33 +0800 | [diff] [blame] | 19 | config CRYPTO_SHA1_ARM64_CE |
| 20 | tristate "SHA-1 digest algorithm (ARMv8 Crypto Extensions)" |
| 21 | depends on ARM64 && KERNEL_MODE_NEON |
| 22 | select CRYPTO_HASH |
| 23 | |
Ard Biesheuvel | 6ba6c74 | 2014-03-20 15:35:40 +0100 | [diff] [blame] | 24 | config CRYPTO_SHA2_ARM64_CE |
| 25 | tristate "SHA-224/SHA-256 digest algorithm (ARMv8 Crypto Extensions)" |
| 26 | depends on ARM64 && KERNEL_MODE_NEON |
| 27 | select CRYPTO_HASH |
| 28 | |
Ard Biesheuvel | fdd2389 | 2014-03-26 20:53:05 +0100 | [diff] [blame] | 29 | config CRYPTO_GHASH_ARM64_CE |
| 30 | tristate "GHASH (for GCM chaining mode) using ARMv8 Crypto Extensions" |
| 31 | depends on ARM64 && KERNEL_MODE_NEON |
| 32 | select CRYPTO_HASH |
| 33 | |
Ard Biesheuvel | 317f2f7 | 2014-02-05 18:13:38 +0100 | [diff] [blame] | 34 | config CRYPTO_AES_ARM64_CE |
| 35 | tristate "AES core cipher using ARMv8 Crypto Extensions" |
| 36 | depends on ARM64 && KERNEL_MODE_NEON |
| 37 | select CRYPTO_ALGAPI |
Ard Biesheuvel | 317f2f7 | 2014-02-05 18:13:38 +0100 | [diff] [blame] | 38 | |
Ard Biesheuvel | a3fd821 | 2014-02-10 11:26:29 +0100 | [diff] [blame] | 39 | config CRYPTO_AES_ARM64_CE_CCM |
| 40 | tristate "AES in CCM mode using ARMv8 Crypto Extensions" |
| 41 | depends on ARM64 && KERNEL_MODE_NEON |
| 42 | select CRYPTO_ALGAPI |
Ard Biesheuvel | 12ac3ef | 2014-11-03 16:50:01 +0000 | [diff] [blame] | 43 | select CRYPTO_AES_ARM64_CE |
Ard Biesheuvel | a3fd821 | 2014-02-10 11:26:29 +0100 | [diff] [blame] | 44 | select CRYPTO_AEAD |
| 45 | |
Ard Biesheuvel | 49788fe | 2014-03-21 10:19:17 +0100 | [diff] [blame] | 46 | config CRYPTO_AES_ARM64_CE_BLK |
| 47 | tristate "AES in ECB/CBC/CTR/XTS modes using ARMv8 Crypto Extensions" |
| 48 | depends on ARM64 && KERNEL_MODE_NEON |
| 49 | select CRYPTO_BLKCIPHER |
Ard Biesheuvel | 12ac3ef | 2014-11-03 16:50:01 +0000 | [diff] [blame] | 50 | select CRYPTO_AES_ARM64_CE |
Ard Biesheuvel | 49788fe | 2014-03-21 10:19:17 +0100 | [diff] [blame] | 51 | select CRYPTO_ABLK_HELPER |
| 52 | |
| 53 | config CRYPTO_AES_ARM64_NEON_BLK |
| 54 | tristate "AES in ECB/CBC/CTR/XTS modes using NEON instructions" |
| 55 | depends on ARM64 && KERNEL_MODE_NEON |
| 56 | select CRYPTO_BLKCIPHER |
| 57 | select CRYPTO_AES |
| 58 | select CRYPTO_ABLK_HELPER |
| 59 | |
Yazen Ghannam | f6f203f | 2014-11-19 11:19:37 -0600 | [diff] [blame] | 60 | config CRYPTO_CRC32_ARM64 |
| 61 | tristate "CRC32 and CRC32C using optional ARMv8 instructions" |
| 62 | depends on ARM64 |
| 63 | select CRYPTO_HASH |
Ard Biesheuvel | 2c98833 | 2014-03-06 16:23:33 +0800 | [diff] [blame] | 64 | endif |