1# SPDX-License-Identifier: GPL-2.0 2 3menuconfig ARM64_CRYPTO 4 bool "ARM64 Accelerated Cryptographic Algorithms" 5 depends on ARM64 6 help 7 Say Y here to choose from a selection of cryptographic algorithms 8 implemented using ARM64 specific CPU features or instructions. 9 10if ARM64_CRYPTO 11 12config CRYPTO_SHA256_ARM64 13 tristate "SHA-224/SHA-256 digest algorithm for arm64" 14 select CRYPTO_HASH 15 16config CRYPTO_SHA512_ARM64 17 tristate "SHA-384/SHA-512 digest algorithm for arm64" 18 select CRYPTO_HASH 19 20config CRYPTO_SHA1_ARM64_CE 21 tristate "SHA-1 digest algorithm (ARMv8 Crypto Extensions)" 22 depends on KERNEL_MODE_NEON 23 select CRYPTO_HASH 24 select CRYPTO_SHA1 25 26config CRYPTO_SHA2_ARM64_CE 27 tristate "SHA-224/SHA-256 digest algorithm (ARMv8 Crypto Extensions)" 28 depends on KERNEL_MODE_NEON 29 select CRYPTO_HASH 30 select CRYPTO_SHA256_ARM64 31 32config CRYPTO_SHA512_ARM64_CE 33 tristate "SHA-384/SHA-512 digest algorithm (ARMv8 Crypto Extensions)" 34 depends on KERNEL_MODE_NEON 35 select CRYPTO_HASH 36 select CRYPTO_SHA512_ARM64 37 38config CRYPTO_SHA3_ARM64 39 tristate "SHA3 digest algorithm (ARMv8.2 Crypto Extensions)" 40 depends on KERNEL_MODE_NEON 41 select CRYPTO_HASH 42 select CRYPTO_SHA3 43 44config CRYPTO_SM3_ARM64_CE 45 tristate "SM3 digest algorithm (ARMv8.2 Crypto Extensions)" 46 depends on KERNEL_MODE_NEON 47 select CRYPTO_HASH 48 select CRYPTO_SM3 49 50config CRYPTO_GHASH_ARM64_CE 51 tristate "GHASH/AES-GCM using ARMv8 Crypto Extensions" 52 depends on KERNEL_MODE_NEON 53 select CRYPTO_HASH 54 select CRYPTO_GF128MUL 55 select CRYPTO_AES 56 select CRYPTO_AES_ARM64 57 58config CRYPTO_CRCT10DIF_ARM64_CE 59 tristate "CRCT10DIF digest algorithm using PMULL instructions" 60 depends on KERNEL_MODE_NEON && CRC_T10DIF 61 select CRYPTO_HASH 62 63config CRYPTO_CRC32_ARM64_CE 64 tristate "CRC32 and CRC32C digest algorithms using ARMv8 extensions" 65 depends on CRC32 66 select CRYPTO_HASH 67 68config CRYPTO_AES_ARM64 69 tristate "AES core cipher using scalar instructions" 70 select CRYPTO_AES 71 72config CRYPTO_AES_ARM64_CE 73 tristate "AES core cipher using ARMv8 Crypto Extensions" 74 depends on ARM64 && KERNEL_MODE_NEON 75 select CRYPTO_ALGAPI 76 select CRYPTO_AES_ARM64 77 78config CRYPTO_AES_ARM64_CE_CCM 79 tristate "AES in CCM mode using ARMv8 Crypto Extensions" 80 depends on ARM64 && KERNEL_MODE_NEON 81 select CRYPTO_ALGAPI 82 select CRYPTO_AES_ARM64_CE 83 select CRYPTO_AES_ARM64 84 select CRYPTO_AEAD 85 86config CRYPTO_AES_ARM64_CE_BLK 87 tristate "AES in ECB/CBC/CTR/XTS modes using ARMv8 Crypto Extensions" 88 depends on KERNEL_MODE_NEON 89 select CRYPTO_BLKCIPHER 90 select CRYPTO_AES_ARM64_CE 91 select CRYPTO_AES_ARM64 92 select CRYPTO_SIMD 93 94config CRYPTO_AES_ARM64_NEON_BLK 95 tristate "AES in ECB/CBC/CTR/XTS modes using NEON instructions" 96 depends on KERNEL_MODE_NEON 97 select CRYPTO_BLKCIPHER 98 select CRYPTO_AES_ARM64 99 select CRYPTO_AES 100 select CRYPTO_SIMD 101 102config CRYPTO_CHACHA20_NEON 103 tristate "NEON accelerated ChaCha20 symmetric cipher" 104 depends on KERNEL_MODE_NEON 105 select CRYPTO_BLKCIPHER 106 select CRYPTO_CHACHA20 107 108config CRYPTO_AES_ARM64_BS 109 tristate "AES in ECB/CBC/CTR/XTS modes using bit-sliced NEON algorithm" 110 depends on KERNEL_MODE_NEON 111 select CRYPTO_BLKCIPHER 112 select CRYPTO_AES_ARM64_NEON_BLK 113 select CRYPTO_AES_ARM64 114 select CRYPTO_SIMD 115 116config CRYPTO_SPECK_NEON 117 tristate "NEON accelerated Speck cipher algorithms" 118 depends on KERNEL_MODE_NEON 119 select CRYPTO_BLKCIPHER 120 select CRYPTO_SPECK 121 122endif 123