blob: 7ca54a76f6b9f1aabd8aaa52f313930702b718fc [file] [log] [blame]
Ard Biesheuvel2c988332014-03-06 16:23:33 +08001
2menuconfig 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
9if ARM64_CRYPTO
10
Ard Biesheuvel7918ece2016-11-20 11:42:01 +000011config CRYPTO_SHA256_ARM64
12 tristate "SHA-224/SHA-256 digest algorithm for arm64"
13 select CRYPTO_HASH
14
15config CRYPTO_SHA512_ARM64
16 tristate "SHA-384/SHA-512 digest algorithm for arm64"
17 select CRYPTO_HASH
18
Ard Biesheuvel2c988332014-03-06 16:23:33 +080019config CRYPTO_SHA1_ARM64_CE
20 tristate "SHA-1 digest algorithm (ARMv8 Crypto Extensions)"
Ard Biesheuvel0771f322017-07-24 11:28:08 +010021 depends on KERNEL_MODE_NEON
Ard Biesheuvel2c988332014-03-06 16:23:33 +080022 select CRYPTO_HASH
Ard Biesheuvel0771f322017-07-24 11:28:08 +010023 select CRYPTO_SHA1
Ard Biesheuvel2c988332014-03-06 16:23:33 +080024
Ard Biesheuvel6ba6c742014-03-20 15:35:40 +010025config CRYPTO_SHA2_ARM64_CE
26 tristate "SHA-224/SHA-256 digest algorithm (ARMv8 Crypto Extensions)"
Ard Biesheuvelda179332017-07-24 11:28:09 +010027 depends on KERNEL_MODE_NEON
Ard Biesheuvel6ba6c742014-03-20 15:35:40 +010028 select CRYPTO_HASH
Ard Biesheuvelda179332017-07-24 11:28:09 +010029 select CRYPTO_SHA256_ARM64
Ard Biesheuvel6ba6c742014-03-20 15:35:40 +010030
Ard Biesheuvelfdd23892014-03-26 20:53:05 +010031config CRYPTO_GHASH_ARM64_CE
Ard Biesheuvel537c1442017-07-24 11:28:16 +010032 tristate "GHASH/AES-GCM using ARMv8 Crypto Extensions"
Ard Biesheuvel6d6254d2017-07-24 11:28:05 +010033 depends on KERNEL_MODE_NEON
Ard Biesheuvelfdd23892014-03-26 20:53:05 +010034 select CRYPTO_HASH
Ard Biesheuvel6d6254d2017-07-24 11:28:05 +010035 select CRYPTO_GF128MUL
Ard Biesheuvel537c1442017-07-24 11:28:16 +010036 select CRYPTO_AES
37 select CRYPTO_AES_ARM64
Ard Biesheuvelfdd23892014-03-26 20:53:05 +010038
Ard Biesheuvel6ef57372016-12-05 18:42:25 +000039config CRYPTO_CRCT10DIF_ARM64_CE
40 tristate "CRCT10DIF digest algorithm using PMULL instructions"
41 depends on KERNEL_MODE_NEON && CRC_T10DIF
42 select CRYPTO_HASH
43
Ard Biesheuvel8fefde92016-12-05 18:42:27 +000044config CRYPTO_CRC32_ARM64_CE
Ard Biesheuvel5d3d9c82017-02-01 15:35:40 +000045 tristate "CRC32 and CRC32C digest algorithms using ARMv8 extensions"
46 depends on CRC32
Ard Biesheuvel8fefde92016-12-05 18:42:27 +000047 select CRYPTO_HASH
48
Ard Biesheuvelbed593c2017-01-11 16:41:52 +000049config CRYPTO_AES_ARM64
50 tristate "AES core cipher using scalar instructions"
51 select CRYPTO_AES
52
Ard Biesheuvel317f2f72014-02-05 18:13:38 +010053config CRYPTO_AES_ARM64_CE
54 tristate "AES core cipher using ARMv8 Crypto Extensions"
55 depends on ARM64 && KERNEL_MODE_NEON
56 select CRYPTO_ALGAPI
Ard Biesheuvelb8fb9932017-07-24 11:28:11 +010057 select CRYPTO_AES_ARM64
Ard Biesheuvel317f2f72014-02-05 18:13:38 +010058
Ard Biesheuvela3fd8212014-02-10 11:26:29 +010059config CRYPTO_AES_ARM64_CE_CCM
60 tristate "AES in CCM mode using ARMv8 Crypto Extensions"
61 depends on ARM64 && KERNEL_MODE_NEON
62 select CRYPTO_ALGAPI
Ard Biesheuvel12ac3ef2014-11-03 16:50:01 +000063 select CRYPTO_AES_ARM64_CE
Ard Biesheuvel5092fcf2017-07-24 11:28:12 +010064 select CRYPTO_AES_ARM64
Ard Biesheuvela3fd8212014-02-10 11:26:29 +010065 select CRYPTO_AEAD
66
Ard Biesheuvel49788fe2014-03-21 10:19:17 +010067config CRYPTO_AES_ARM64_CE_BLK
68 tristate "AES in ECB/CBC/CTR/XTS modes using ARMv8 Crypto Extensions"
Ard Biesheuvele2115062017-07-24 11:28:13 +010069 depends on KERNEL_MODE_NEON
Ard Biesheuvel49788fe2014-03-21 10:19:17 +010070 select CRYPTO_BLKCIPHER
Ard Biesheuvel12ac3ef2014-11-03 16:50:01 +000071 select CRYPTO_AES_ARM64_CE
Ard Biesheuvele2115062017-07-24 11:28:13 +010072 select CRYPTO_AES_ARM64
Herbert Xu585b5fa2016-11-29 15:08:40 +080073 select CRYPTO_SIMD
Ard Biesheuvel49788fe2014-03-21 10:19:17 +010074
75config CRYPTO_AES_ARM64_NEON_BLK
76 tristate "AES in ECB/CBC/CTR/XTS modes using NEON instructions"
Ard Biesheuvele2115062017-07-24 11:28:13 +010077 depends on KERNEL_MODE_NEON
Ard Biesheuvel49788fe2014-03-21 10:19:17 +010078 select CRYPTO_BLKCIPHER
Ard Biesheuvele2115062017-07-24 11:28:13 +010079 select CRYPTO_AES_ARM64
Ard Biesheuvel49788fe2014-03-21 10:19:17 +010080 select CRYPTO_AES
Herbert Xu585b5fa2016-11-29 15:08:40 +080081 select CRYPTO_SIMD
Ard Biesheuvel49788fe2014-03-21 10:19:17 +010082
Ard Biesheuvelb7171ce2017-01-11 16:41:49 +000083config CRYPTO_CHACHA20_NEON
84 tristate "NEON accelerated ChaCha20 symmetric cipher"
85 depends on KERNEL_MODE_NEON
86 select CRYPTO_BLKCIPHER
87 select CRYPTO_CHACHA20
88
Ard Biesheuvel1abee992017-01-11 16:41:55 +000089config CRYPTO_AES_ARM64_BS
90 tristate "AES in ECB/CBC/CTR/XTS modes using bit-sliced NEON algorithm"
91 depends on KERNEL_MODE_NEON
92 select CRYPTO_BLKCIPHER
Ard Biesheuvel12fcd922017-01-28 23:25:39 +000093 select CRYPTO_AES_ARM64_NEON_BLK
Ard Biesheuvelec808bb2017-07-24 11:28:15 +010094 select CRYPTO_AES_ARM64
Ard Biesheuvel1abee992017-01-11 16:41:55 +000095 select CRYPTO_SIMD
96
Ard Biesheuvel2c988332014-03-06 16:23:33 +080097endif