blob: aad288f4b9dec2002fe65b981f3bb027d0f831cb [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Ard Biesheuvel2c988332014-03-06 16:23:33 +08002
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
Ard Biesheuvel7918ece2016-11-20 11:42:01 +000012config 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
Ard Biesheuvel2c988332014-03-06 16:23:33 +080020config CRYPTO_SHA1_ARM64_CE
21 tristate "SHA-1 digest algorithm (ARMv8 Crypto Extensions)"
Ard Biesheuvel0771f322017-07-24 11:28:08 +010022 depends on KERNEL_MODE_NEON
Ard Biesheuvel2c988332014-03-06 16:23:33 +080023 select CRYPTO_HASH
Ard Biesheuvel0771f322017-07-24 11:28:08 +010024 select CRYPTO_SHA1
Ard Biesheuvel2c988332014-03-06 16:23:33 +080025
Ard Biesheuvel6ba6c742014-03-20 15:35:40 +010026config CRYPTO_SHA2_ARM64_CE
27 tristate "SHA-224/SHA-256 digest algorithm (ARMv8 Crypto Extensions)"
Ard Biesheuvelda179332017-07-24 11:28:09 +010028 depends on KERNEL_MODE_NEON
Ard Biesheuvel6ba6c742014-03-20 15:35:40 +010029 select CRYPTO_HASH
Ard Biesheuvelda179332017-07-24 11:28:09 +010030 select CRYPTO_SHA256_ARM64
Ard Biesheuvel6ba6c742014-03-20 15:35:40 +010031
Ard Biesheuvelbb6c8c42018-01-09 18:23:02 +000032config 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
Ard Biesheuvelfdd23892014-03-26 20:53:05 +010038config CRYPTO_GHASH_ARM64_CE
Ard Biesheuvel537c1442017-07-24 11:28:16 +010039 tristate "GHASH/AES-GCM using ARMv8 Crypto Extensions"
Ard Biesheuvel6d6254d2017-07-24 11:28:05 +010040 depends on KERNEL_MODE_NEON
Ard Biesheuvelfdd23892014-03-26 20:53:05 +010041 select CRYPTO_HASH
Ard Biesheuvel6d6254d2017-07-24 11:28:05 +010042 select CRYPTO_GF128MUL
Ard Biesheuvel537c1442017-07-24 11:28:16 +010043 select CRYPTO_AES
44 select CRYPTO_AES_ARM64
Ard Biesheuvelfdd23892014-03-26 20:53:05 +010045
Ard Biesheuvel6ef57372016-12-05 18:42:25 +000046config CRYPTO_CRCT10DIF_ARM64_CE
47 tristate "CRCT10DIF digest algorithm using PMULL instructions"
48 depends on KERNEL_MODE_NEON && CRC_T10DIF
49 select CRYPTO_HASH
50
Ard Biesheuvel8fefde92016-12-05 18:42:27 +000051config CRYPTO_CRC32_ARM64_CE
Ard Biesheuvel5d3d9c82017-02-01 15:35:40 +000052 tristate "CRC32 and CRC32C digest algorithms using ARMv8 extensions"
53 depends on CRC32
Ard Biesheuvel8fefde92016-12-05 18:42:27 +000054 select CRYPTO_HASH
55
Ard Biesheuvelbed593c2017-01-11 16:41:52 +000056config CRYPTO_AES_ARM64
57 tristate "AES core cipher using scalar instructions"
58 select CRYPTO_AES
59
Ard Biesheuvel317f2f72014-02-05 18:13:38 +010060config CRYPTO_AES_ARM64_CE
61 tristate "AES core cipher using ARMv8 Crypto Extensions"
62 depends on ARM64 && KERNEL_MODE_NEON
63 select CRYPTO_ALGAPI
Ard Biesheuvelb8fb9932017-07-24 11:28:11 +010064 select CRYPTO_AES_ARM64
Ard Biesheuvel317f2f72014-02-05 18:13:38 +010065
Ard Biesheuvela3fd8212014-02-10 11:26:29 +010066config CRYPTO_AES_ARM64_CE_CCM
67 tristate "AES in CCM mode using ARMv8 Crypto Extensions"
68 depends on ARM64 && KERNEL_MODE_NEON
69 select CRYPTO_ALGAPI
Ard Biesheuvel12ac3ef2014-11-03 16:50:01 +000070 select CRYPTO_AES_ARM64_CE
Ard Biesheuvel5092fcf2017-07-24 11:28:12 +010071 select CRYPTO_AES_ARM64
Ard Biesheuvela3fd8212014-02-10 11:26:29 +010072 select CRYPTO_AEAD
73
Ard Biesheuvel49788fe2014-03-21 10:19:17 +010074config CRYPTO_AES_ARM64_CE_BLK
75 tristate "AES in ECB/CBC/CTR/XTS modes using ARMv8 Crypto Extensions"
Ard Biesheuvele2115062017-07-24 11:28:13 +010076 depends on KERNEL_MODE_NEON
Ard Biesheuvel49788fe2014-03-21 10:19:17 +010077 select CRYPTO_BLKCIPHER
Ard Biesheuvel12ac3ef2014-11-03 16:50:01 +000078 select CRYPTO_AES_ARM64_CE
Ard Biesheuvele2115062017-07-24 11:28:13 +010079 select CRYPTO_AES_ARM64
Herbert Xu585b5fa2016-11-29 15:08:40 +080080 select CRYPTO_SIMD
Ard Biesheuvel49788fe2014-03-21 10:19:17 +010081
82config CRYPTO_AES_ARM64_NEON_BLK
83 tristate "AES in ECB/CBC/CTR/XTS modes using NEON instructions"
Ard Biesheuvele2115062017-07-24 11:28:13 +010084 depends on KERNEL_MODE_NEON
Ard Biesheuvel49788fe2014-03-21 10:19:17 +010085 select CRYPTO_BLKCIPHER
Ard Biesheuvele2115062017-07-24 11:28:13 +010086 select CRYPTO_AES_ARM64
Ard Biesheuvel49788fe2014-03-21 10:19:17 +010087 select CRYPTO_AES
Herbert Xu585b5fa2016-11-29 15:08:40 +080088 select CRYPTO_SIMD
Ard Biesheuvel49788fe2014-03-21 10:19:17 +010089
Ard Biesheuvelb7171ce2017-01-11 16:41:49 +000090config CRYPTO_CHACHA20_NEON
91 tristate "NEON accelerated ChaCha20 symmetric cipher"
92 depends on KERNEL_MODE_NEON
93 select CRYPTO_BLKCIPHER
94 select CRYPTO_CHACHA20
95
Ard Biesheuvel1abee992017-01-11 16:41:55 +000096config CRYPTO_AES_ARM64_BS
97 tristate "AES in ECB/CBC/CTR/XTS modes using bit-sliced NEON algorithm"
98 depends on KERNEL_MODE_NEON
99 select CRYPTO_BLKCIPHER
Ard Biesheuvel12fcd922017-01-28 23:25:39 +0000100 select CRYPTO_AES_ARM64_NEON_BLK
Ard Biesheuvelec808bb2017-07-24 11:28:15 +0100101 select CRYPTO_AES_ARM64
Ard Biesheuvel1abee992017-01-11 16:41:55 +0000102 select CRYPTO_SIMD
103
Ard Biesheuvel2c988332014-03-06 16:23:33 +0800104endif