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_SM4_ARM64_CE 51 tristate "SM4 symmetric cipher (ARMv8.2 Crypto Extensions)" 52 depends on KERNEL_MODE_NEON 53 select CRYPTO_ALGAPI 54 select CRYPTO_SM4 55 56config CRYPTO_SM4_ARM64_CE_BLK 57 tristate "SM4 in ECB/CBC/CFB/CTR modes using ARMv8 Crypto Extensions" 58 depends on KERNEL_MODE_NEON 59 select CRYPTO_SKCIPHER 60 select CRYPTO_SM4 61 62config CRYPTO_SM4_ARM64_NEON_BLK 63 tristate "SM4 in ECB/CBC/CFB/CTR modes using NEON instructions" 64 depends on KERNEL_MODE_NEON 65 select CRYPTO_SKCIPHER 66 select CRYPTO_SM4 67 68config CRYPTO_GHASH_ARM64_CE 69 tristate "GHASH/AES-GCM using ARMv8 Crypto Extensions" 70 depends on KERNEL_MODE_NEON 71 select CRYPTO_HASH 72 select CRYPTO_GF128MUL 73 select CRYPTO_LIB_AES 74 select CRYPTO_AEAD 75 76config CRYPTO_POLYVAL_ARM64_CE 77 tristate "POLYVAL using ARMv8 Crypto Extensions (for HCTR2)" 78 depends on KERNEL_MODE_NEON 79 select CRYPTO_POLYVAL 80 81config CRYPTO_CRCT10DIF_ARM64_CE 82 tristate "CRCT10DIF digest algorithm using PMULL instructions" 83 depends on KERNEL_MODE_NEON && CRC_T10DIF 84 select CRYPTO_HASH 85 86config CRYPTO_AES_ARM64 87 tristate "AES core cipher using scalar instructions" 88 select CRYPTO_AES 89 90config CRYPTO_AES_ARM64_CE 91 tristate "AES core cipher using ARMv8 Crypto Extensions" 92 depends on ARM64 && KERNEL_MODE_NEON 93 select CRYPTO_ALGAPI 94 select CRYPTO_LIB_AES 95 96config CRYPTO_AES_ARM64_CE_CCM 97 tristate "AES in CCM mode using ARMv8 Crypto Extensions" 98 depends on ARM64 && KERNEL_MODE_NEON 99 select CRYPTO_ALGAPI 100 select CRYPTO_AES_ARM64_CE 101 select CRYPTO_AEAD 102 select CRYPTO_LIB_AES 103 104config CRYPTO_AES_ARM64_CE_BLK 105 tristate "AES in ECB/CBC/CTR/XTS/XCTR modes using ARMv8 Crypto Extensions" 106 depends on KERNEL_MODE_NEON 107 select CRYPTO_SKCIPHER 108 select CRYPTO_AES_ARM64_CE 109 110config CRYPTO_AES_ARM64_NEON_BLK 111 tristate "AES in ECB/CBC/CTR/XTS/XCTR modes using NEON instructions" 112 depends on KERNEL_MODE_NEON 113 select CRYPTO_SKCIPHER 114 select CRYPTO_LIB_AES 115 116config CRYPTO_CHACHA20_NEON 117 tristate "ChaCha20, XChaCha20, and XChaCha12 stream ciphers using NEON instructions" 118 depends on KERNEL_MODE_NEON 119 select CRYPTO_SKCIPHER 120 select CRYPTO_LIB_CHACHA_GENERIC 121 select CRYPTO_ARCH_HAVE_LIB_CHACHA 122 123config CRYPTO_POLY1305_NEON 124 tristate "Poly1305 hash function using scalar or NEON instructions" 125 depends on KERNEL_MODE_NEON 126 select CRYPTO_HASH 127 select CRYPTO_ARCH_HAVE_LIB_POLY1305 128 129config CRYPTO_NHPOLY1305_NEON 130 tristate "NHPoly1305 hash function using NEON instructions (for Adiantum)" 131 depends on KERNEL_MODE_NEON 132 select CRYPTO_NHPOLY1305 133 134config CRYPTO_AES_ARM64_BS 135 tristate "AES in ECB/CBC/CTR/XTS modes using bit-sliced NEON algorithm" 136 depends on KERNEL_MODE_NEON 137 select CRYPTO_SKCIPHER 138 select CRYPTO_AES_ARM64_NEON_BLK 139 select CRYPTO_LIB_AES 140 141endif 142