blob: aa3a4ed07a66696587d9ed6682d4bd9dba956af0 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Jan Engelhardtb5114312007-07-15 23:39:36 -07002
3menuconfig CRYPTO_HW
4 bool "Hardware crypto devices"
5 default y
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +09006 help
Jan Engelhardt06bfb7e2007-08-18 12:56:21 +02007 Say Y here to get to see options for hardware crypto devices and
8 processors. This option alone does not add any kernel code.
9
10 If you say N, all options in this submenu will be skipped and disabled.
Jan Engelhardtb5114312007-07-15 23:39:36 -070011
12if CRYPTO_HW
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Corentin Labbe3914b932019-10-23 22:05:03 +020014source "drivers/crypto/allwinner/Kconfig"
15
Linus Torvalds1da177e2005-04-16 15:20:36 -070016config CRYPTO_DEV_PADLOCK
Herbert Xud1583252007-05-18 13:17:22 +100017 tristate "Support for VIA PadLock ACE"
Herbert Xu2f817412009-04-22 13:00:15 +080018 depends on X86 && !UML
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 help
20 Some VIA processors come with an integrated crypto engine
21 (so called VIA PadLock ACE, Advanced Cryptography Engine)
Michal Ludvig1191f0a2006-08-06 22:46:20 +100022 that provides instructions for very fast cryptographic
23 operations with supported algorithms.
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
25 The instructions are used only when the CPU supports them.
Michal Ludvig5644bda2006-08-06 22:50:30 +100026 Otherwise software encryption is used.
27
Linus Torvalds1da177e2005-04-16 15:20:36 -070028config CRYPTO_DEV_PADLOCK_AES
Michal Ludvig1191f0a2006-08-06 22:46:20 +100029 tristate "PadLock driver for AES algorithm"
Linus Torvalds1da177e2005-04-16 15:20:36 -070030 depends on CRYPTO_DEV_PADLOCK
Eric Biggersb95bba52019-10-25 12:41:13 -070031 select CRYPTO_SKCIPHER
Ard Biesheuvel81318782019-07-02 21:41:25 +020032 select CRYPTO_LIB_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -070033 help
34 Use VIA PadLock for AES algorithm.
35
Michal Ludvig1191f0a2006-08-06 22:46:20 +100036 Available in VIA C3 and newer CPUs.
37
38 If unsure say M. The compiled module will be
Pavel Machek4737f092009-06-05 00:44:53 +020039 called padlock-aes.
Michal Ludvig1191f0a2006-08-06 22:46:20 +100040
Michal Ludvig6c833272006-07-12 12:29:38 +100041config CRYPTO_DEV_PADLOCK_SHA
42 tristate "PadLock driver for SHA1 and SHA256 algorithms"
43 depends on CRYPTO_DEV_PADLOCK
Herbert Xubbbee462009-07-11 18:16:16 +080044 select CRYPTO_HASH
Michal Ludvig6c833272006-07-12 12:29:38 +100045 select CRYPTO_SHA1
46 select CRYPTO_SHA256
Michal Ludvig6c833272006-07-12 12:29:38 +100047 help
48 Use VIA PadLock for SHA1/SHA256 algorithms.
49
50 Available in VIA C7 and newer processors.
51
52 If unsure say M. The compiled module will be
Pavel Machek4737f092009-06-05 00:44:53 +020053 called padlock-sha.
Michal Ludvig6c833272006-07-12 12:29:38 +100054
Jordan Crouse9fe757b2006-10-04 18:48:57 +100055config CRYPTO_DEV_GEODE
56 tristate "Support for the Geode LX AES engine"
Simon Arlottf6259de2007-05-02 22:08:26 +100057 depends on X86_32 && PCI
Jordan Crouse9fe757b2006-10-04 18:48:57 +100058 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -070059 select CRYPTO_SKCIPHER
Jordan Crouse9fe757b2006-10-04 18:48:57 +100060 help
61 Say 'Y' here to use the AMD Geode LX processor on-board AES
David Sterba3dde6ad2007-05-09 07:12:20 +020062 engine for the CryptoAPI AES algorithm.
Jordan Crouse9fe757b2006-10-04 18:48:57 +100063
64 To compile this driver as a module, choose M here: the module
65 will be called geode-aes.
66
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020067config ZCRYPT
Harald Freudenbergera3358e32017-02-20 16:09:51 +010068 tristate "Support for s390 cryptographic adapters"
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020069 depends on S390
Ralph Wuerthner2f7c8bd2008-04-17 07:46:15 +020070 select HW_RANDOM
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020071 help
Harald Freudenbergera3358e32017-02-20 16:09:51 +010072 Select this option if you want to enable support for
73 s390 cryptographic adapters like:
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020074 + PCI-X Cryptographic Coprocessor (PCIXCC)
Harald Freudenbergera3358e32017-02-20 16:09:51 +010075 + Crypto Express 2,3,4 or 5 Coprocessor (CEXxC)
76 + Crypto Express 2,3,4 or 5 Accelerator (CEXxA)
77 + Crypto Express 4 or 5 EP11 Coprocessor (CEXxP)
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020078
Harald Freudenberger00fab232018-09-17 16:18:41 +020079config ZCRYPT_MULTIDEVNODES
80 bool "Support for multiple zcrypt device nodes"
81 default y
82 depends on S390
83 depends on ZCRYPT
84 help
85 With this option enabled the zcrypt device driver can
86 provide multiple devices nodes in /dev. Each device
87 node can get customized to limit access and narrow
88 down the use of the available crypto hardware.
89
Harald Freudenbergere80d4af2016-11-02 14:37:20 +010090config PKEY
91 tristate "Kernel API for protected key handling"
92 depends on S390
93 depends on ZCRYPT
94 help
95 With this option enabled the pkey kernel module provides an API
96 for creation and handling of protected keys. Other parts of the
97 kernel or userspace applications may use these functions.
98
99 Select this option if you want to enable the kernel and userspace
100 API for proteced key handling.
101
102 Please note that creation of protected keys from secure keys
103 requires to have at least one CEX card in coprocessor mode
104 available at runtime.
Martin Schwidefsky61d48c22007-05-10 15:46:00 +0200105
Harald Freudenbergerc4684f92017-05-11 17:15:54 +0200106config CRYPTO_PAES_S390
107 tristate "PAES cipher algorithms"
108 depends on S390
109 depends on ZCRYPT
110 depends on PKEY
111 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -0700112 select CRYPTO_SKCIPHER
Harald Freudenbergerc4684f92017-05-11 17:15:54 +0200113 help
114 This is the s390 hardware accelerated implementation of the
115 AES cipher algorithms for use with protected key.
116
117 Select this option if you want to use the paes cipher
118 for example to use protected key encrypted devices.
119
Jan Glauber3f5615e2008-01-26 14:11:07 +0100120config CRYPTO_SHA1_S390
121 tristate "SHA1 digest algorithm"
122 depends on S390
Herbert Xu563f3462009-01-18 20:33:33 +1100123 select CRYPTO_HASH
Jan Glauber3f5615e2008-01-26 14:11:07 +0100124 help
125 This is the s390 hardware accelerated implementation of the
126 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
127
Jan Glauberd393d9b2011-04-19 21:29:19 +0200128 It is available as of z990.
129
Jan Glauber3f5615e2008-01-26 14:11:07 +0100130config CRYPTO_SHA256_S390
131 tristate "SHA256 digest algorithm"
132 depends on S390
Herbert Xu563f3462009-01-18 20:33:33 +1100133 select CRYPTO_HASH
Jan Glauber3f5615e2008-01-26 14:11:07 +0100134 help
135 This is the s390 hardware accelerated implementation of the
136 SHA256 secure hash standard (DFIPS 180-2).
137
Jan Glauberd393d9b2011-04-19 21:29:19 +0200138 It is available as of z9.
Jan Glauber3f5615e2008-01-26 14:11:07 +0100139
Jan Glauber291dc7c2008-03-06 19:52:00 +0800140config CRYPTO_SHA512_S390
Jan Glauber4e2c6d72008-03-06 19:53:50 +0800141 tristate "SHA384 and SHA512 digest algorithm"
Jan Glauber291dc7c2008-03-06 19:52:00 +0800142 depends on S390
Herbert Xu563f3462009-01-18 20:33:33 +1100143 select CRYPTO_HASH
Jan Glauber291dc7c2008-03-06 19:52:00 +0800144 help
145 This is the s390 hardware accelerated implementation of the
146 SHA512 secure hash standard.
147
Jan Glauberd393d9b2011-04-19 21:29:19 +0200148 It is available as of z10.
Jan Glauber291dc7c2008-03-06 19:52:00 +0800149
Joerg Schmidbauer3c2eb6b2019-08-14 14:56:54 +0200150config CRYPTO_SHA3_256_S390
151 tristate "SHA3_224 and SHA3_256 digest algorithm"
152 depends on S390
153 select CRYPTO_HASH
154 help
155 This is the s390 hardware accelerated implementation of the
156 SHA3_256 secure hash standard.
157
158 It is available as of z14.
159
160config CRYPTO_SHA3_512_S390
161 tristate "SHA3_384 and SHA3_512 digest algorithm"
162 depends on S390
163 select CRYPTO_HASH
164 help
165 This is the s390 hardware accelerated implementation of the
166 SHA3_512 secure hash standard.
167
168 It is available as of z14.
169
Jan Glauber3f5615e2008-01-26 14:11:07 +0100170config CRYPTO_DES_S390
171 tristate "DES and Triple DES cipher algorithms"
172 depends on S390
173 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -0700174 select CRYPTO_SKCIPHER
Ard Biesheuvel04007b02019-08-15 12:01:09 +0300175 select CRYPTO_LIB_DES
Jan Glauber3f5615e2008-01-26 14:11:07 +0100176 help
Gerald Schaefer0200f3e2011-05-04 15:09:44 +1000177 This is the s390 hardware accelerated implementation of the
Jan Glauber3f5615e2008-01-26 14:11:07 +0100178 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
179
Gerald Schaefer0200f3e2011-05-04 15:09:44 +1000180 As of z990 the ECB and CBC mode are hardware accelerated.
181 As of z196 the CTR mode is hardware accelerated.
182
Jan Glauber3f5615e2008-01-26 14:11:07 +0100183config CRYPTO_AES_S390
184 tristate "AES cipher algorithms"
185 depends on S390
186 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -0700187 select CRYPTO_SKCIPHER
Jan Glauber3f5615e2008-01-26 14:11:07 +0100188 help
189 This is the s390 hardware accelerated implementation of the
Gerald Schaefer99d97222011-04-26 16:12:42 +1000190 AES cipher algorithms (FIPS-197).
Jan Glauber3f5615e2008-01-26 14:11:07 +0100191
Gerald Schaefer99d97222011-04-26 16:12:42 +1000192 As of z9 the ECB and CBC modes are hardware accelerated
193 for 128 bit keys.
194 As of z10 the ECB and CBC modes are hardware accelerated
195 for all AES key sizes.
Gerald Schaefer0200f3e2011-05-04 15:09:44 +1000196 As of z196 the CTR mode is hardware accelerated for all AES
197 key sizes and XTS mode is hardware accelerated for 256 and
Gerald Schaefer99d97222011-04-26 16:12:42 +1000198 512 bit keys.
Jan Glauber3f5615e2008-01-26 14:11:07 +0100199
200config S390_PRNG
201 tristate "Pseudo random number generator device driver"
202 depends on S390
203 default "m"
204 help
205 Select this option if you want to use the s390 pseudo random number
206 generator. The PRNG is part of the cryptographic processor functions
207 and uses triple-DES to generate secure random numbers like the
Jan Glauberd393d9b2011-04-19 21:29:19 +0200208 ANSI X9.17 standard. User-space programs access the
209 pseudo-random-number device through the char device /dev/prandom.
210
211 It is available as of z9.
Jan Glauber3f5615e2008-01-26 14:11:07 +0100212
Gerald Schaeferdf1309c2011-04-19 21:29:18 +0200213config CRYPTO_GHASH_S390
Eric Biggers8dfa20f2019-07-19 23:09:18 -0700214 tristate "GHASH hash function"
Gerald Schaeferdf1309c2011-04-19 21:29:18 +0200215 depends on S390
216 select CRYPTO_HASH
217 help
Eric Biggers8dfa20f2019-07-19 23:09:18 -0700218 This is the s390 hardware accelerated implementation of GHASH,
219 the hash function used in GCM (Galois/Counter mode).
Gerald Schaeferdf1309c2011-04-19 21:29:18 +0200220
221 It is available as of z196.
222
Hendrik Bruecknerf848dbd2015-04-28 15:52:44 +0200223config CRYPTO_CRC32_S390
224 tristate "CRC-32 algorithms"
225 depends on S390
226 select CRYPTO_HASH
227 select CRC32
228 help
229 Select this option if you want to use hardware accelerated
230 implementations of CRC algorithms. With this option, you
231 can optimize the computation of CRC-32 (IEEE 802.3 Ethernet)
232 and CRC-32C (Castagnoli).
233
234 It is available with IBM z13 or later.
235
David S. Miller0a625fd22010-05-19 14:14:04 +1000236config CRYPTO_DEV_NIAGARA2
Krzysztof Kozlowski2452cfd2019-11-21 04:20:48 +0100237 tristate "Niagara2 Stream Processing Unit driver"
238 select CRYPTO_LIB_DES
239 select CRYPTO_SKCIPHER
240 select CRYPTO_HASH
241 select CRYPTO_MD5
242 select CRYPTO_SHA1
243 select CRYPTO_SHA256
244 depends on SPARC64
245 help
David S. Miller0a625fd22010-05-19 14:14:04 +1000246 Each core of a Niagara2 processor contains a Stream
247 Processing Unit, which itself contains several cryptographic
248 sub-units. One set provides the Modular Arithmetic Unit,
249 used for SSL offload. The other set provides the Cipher
250 Group, which can perform encryption, decryption, hashing,
251 checksumming, and raw copies.
252
Evgeniy Polyakovf7d05612007-10-26 21:31:14 +0800253config CRYPTO_DEV_HIFN_795X
254 tristate "Driver HIFN 795x crypto accelerator chips"
Ard Biesheuvel04007b02019-08-15 12:01:09 +0300255 select CRYPTO_LIB_DES
Eric Biggersb95bba52019-10-25 12:41:13 -0700256 select CRYPTO_SKCIPHER
Herbert Xu946fef42008-01-26 09:48:44 +1100257 select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG
Jan Glauber2707b932007-11-12 21:56:38 +0800258 depends on PCI
Richard Weinberger75b76622011-10-10 12:55:41 +0200259 depends on !ARCH_DMA_ADDR_T_64BIT
Evgeniy Polyakovf7d05612007-10-26 21:31:14 +0800260 help
261 This option allows you to have support for HIFN 795x crypto adapters.
262
Herbert Xu946fef42008-01-26 09:48:44 +1100263config CRYPTO_DEV_HIFN_795X_RNG
264 bool "HIFN 795x random number generator"
265 depends on CRYPTO_DEV_HIFN_795X
266 help
267 Select this option if you want to enable the random number generator
268 on the HIFN 795x crypto adapters.
Evgeniy Polyakovf7d05612007-10-26 21:31:14 +0800269
Masahiro Yamada8636a1f2018-12-11 20:01:04 +0900270source "drivers/crypto/caam/Kconfig"
Kim Phillips8e8ec592011-03-13 16:54:26 +0800271
Kim Phillips9c4a7962008-06-23 19:50:15 +0800272config CRYPTO_DEV_TALITOS
273 tristate "Talitos Freescale Security Engine (SEC)"
Herbert Xu596103c2015-06-17 14:58:24 +0800274 select CRYPTO_AEAD
Kim Phillips9c4a7962008-06-23 19:50:15 +0800275 select CRYPTO_AUTHENC
Eric Biggersb95bba52019-10-25 12:41:13 -0700276 select CRYPTO_SKCIPHER
Herbert Xu596103c2015-06-17 14:58:24 +0800277 select CRYPTO_HASH
Herbert Xudbc2e872019-11-26 19:28:36 +0800278 select CRYPTO_LIB_DES
Kim Phillips9c4a7962008-06-23 19:50:15 +0800279 select HW_RANDOM
280 depends on FSL_SOC
281 help
282 Say 'Y' here to use the Freescale Security Engine (SEC)
283 to offload cryptographic algorithm computation.
284
285 The Freescale SEC is present on PowerQUICC 'E' processors, such
286 as the MPC8349E and MPC8548E.
287
288 To compile this driver as a module, choose M here: the module
289 will be called talitos.
290
LEROY Christophe5b841a62015-04-17 16:32:03 +0200291config CRYPTO_DEV_TALITOS1
292 bool "SEC1 (SEC 1.0 and SEC Lite 1.2)"
293 depends on CRYPTO_DEV_TALITOS
294 depends on PPC_8xx || PPC_82xx
295 default y
296 help
297 Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0
298 found on MPC82xx or the Freescale Security Engine (SEC Lite)
299 version 1.2 found on MPC8xx
300
301config CRYPTO_DEV_TALITOS2
302 bool "SEC2+ (SEC version 2.0 or upper)"
303 depends on CRYPTO_DEV_TALITOS
304 default y if !PPC_8xx
305 help
306 Say 'Y' here to use the Freescale Security Engine (SEC)
307 version 2 and following as found on MPC83xx, MPC85xx, etc ...
308
Christian Hohnstaedt81bef012008-06-25 14:38:47 +0800309config CRYPTO_DEV_IXP4XX
310 tristate "Driver for IXP4xx crypto hardware acceleration"
Krzysztof Hałasa9665c522010-03-25 23:56:05 +0100311 depends on ARCH_IXP4XX && IXP4XX_QMGR && IXP4XX_NPE
Ard Biesheuvel04007b02019-08-15 12:01:09 +0300312 select CRYPTO_LIB_DES
Herbert Xu596103c2015-06-17 14:58:24 +0800313 select CRYPTO_AEAD
Imre Kaloz090657e2008-07-13 20:12:11 +0800314 select CRYPTO_AUTHENC
Eric Biggersb95bba52019-10-25 12:41:13 -0700315 select CRYPTO_SKCIPHER
Christian Hohnstaedt81bef012008-06-25 14:38:47 +0800316 help
317 Driver for the IXP4xx NPE crypto engine.
318
James Hsiao049359d2009-02-05 16:18:13 +1100319config CRYPTO_DEV_PPC4XX
320 tristate "Driver AMCC PPC4xx crypto accelerator"
321 depends on PPC && 4xx
322 select CRYPTO_HASH
Christian Lampartera0aae822017-10-04 01:00:15 +0200323 select CRYPTO_AEAD
Christian Lamparter298b4c62019-10-27 16:47:47 +0100324 select CRYPTO_AES
Ard Biesheuvelda3e7a92019-07-02 21:41:42 +0200325 select CRYPTO_LIB_AES
Christian Lampartera0aae822017-10-04 01:00:15 +0200326 select CRYPTO_CCM
Christian Lamparter98e87e32018-04-19 18:41:54 +0200327 select CRYPTO_CTR
Christian Lampartera0aae822017-10-04 01:00:15 +0200328 select CRYPTO_GCM
Eric Biggersb95bba52019-10-25 12:41:13 -0700329 select CRYPTO_SKCIPHER
James Hsiao049359d2009-02-05 16:18:13 +1100330 help
331 This option allows you to have support for AMCC crypto acceleration.
332
Christian Lamparter5343e672016-04-18 12:57:41 +0200333config HW_RANDOM_PPC4XX
334 bool "PowerPC 4xx generic true random number generator support"
335 depends on CRYPTO_DEV_PPC4XX && HW_RANDOM
336 default y
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +0900337 help
Christian Lamparter5343e672016-04-18 12:57:41 +0200338 This option provides the kernel-side support for the TRNG hardware
339 found in the security function of some PowerPC 4xx SoCs.
340
Tero Kristo74ed87e2017-05-24 10:35:26 +0300341config CRYPTO_DEV_OMAP
342 tristate "Support for OMAP crypto HW accelerators"
343 depends on ARCH_OMAP2PLUS
344 help
345 OMAP processors have various crypto HW accelerators. Select this if
Krzysztof Kozlowski2452cfd2019-11-21 04:20:48 +0100346 you want to use the OMAP modules for any of the crypto algorithms.
Tero Kristo74ed87e2017-05-24 10:35:26 +0300347
348if CRYPTO_DEV_OMAP
349
Dmitry Kasatkin8628e7c2010-05-03 11:10:59 +0800350config CRYPTO_DEV_OMAP_SHAM
Lokesh Vutlaeaef7e32013-07-26 12:29:14 +0530351 tristate "Support for OMAP MD5/SHA1/SHA2 hw accelerator"
352 depends on ARCH_OMAP2PLUS
Dmitry Kasatkin8628e7c2010-05-03 11:10:59 +0800353 select CRYPTO_SHA1
354 select CRYPTO_MD5
Lokesh Vutlaeaef7e32013-07-26 12:29:14 +0530355 select CRYPTO_SHA256
356 select CRYPTO_SHA512
357 select CRYPTO_HMAC
Dmitry Kasatkin8628e7c2010-05-03 11:10:59 +0800358 help
Lokesh Vutlaeaef7e32013-07-26 12:29:14 +0530359 OMAP processors have MD5/SHA1/SHA2 hw accelerator. Select this if you
360 want to use the OMAP module for MD5/SHA1/SHA2 algorithms.
Dmitry Kasatkin8628e7c2010-05-03 11:10:59 +0800361
Dmitry Kasatkin537559a2010-09-03 19:16:02 +0800362config CRYPTO_DEV_OMAP_AES
363 tristate "Support for OMAP AES hw engine"
Joel Fernandes1bbf6432013-08-17 21:42:35 -0500364 depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP2PLUS
Dmitry Kasatkin537559a2010-09-03 19:16:02 +0800365 select CRYPTO_AES
Eric Biggersb95bba52019-10-25 12:41:13 -0700366 select CRYPTO_SKCIPHER
Baolin Wang05299002016-01-26 20:25:40 +0800367 select CRYPTO_ENGINE
Lokesh Vutla9fcb1912016-08-04 13:28:44 +0300368 select CRYPTO_CBC
369 select CRYPTO_ECB
370 select CRYPTO_CTR
Tero Kristoad18cc92017-05-24 10:35:31 +0300371 select CRYPTO_AEAD
Dmitry Kasatkin537559a2010-09-03 19:16:02 +0800372 help
373 OMAP processors have AES module accelerator. Select this if you
374 want to use the OMAP module for AES algorithms.
375
Joel Fernandes701d0f12014-02-14 10:49:47 -0600376config CRYPTO_DEV_OMAP_DES
Peter Meerwald97ee7ed2016-03-13 16:15:37 +0100377 tristate "Support for OMAP DES/3DES hw engine"
Joel Fernandes701d0f12014-02-14 10:49:47 -0600378 depends on ARCH_OMAP2PLUS
Ard Biesheuvel04007b02019-08-15 12:01:09 +0300379 select CRYPTO_LIB_DES
Eric Biggersb95bba52019-10-25 12:41:13 -0700380 select CRYPTO_SKCIPHER
Baolin Wangf1b77aa2016-04-28 14:11:51 +0800381 select CRYPTO_ENGINE
Joel Fernandes701d0f12014-02-14 10:49:47 -0600382 help
383 OMAP processors have DES/3DES module accelerator. Select this if you
384 want to use the OMAP module for DES and 3DES algorithms. Currently
Peter Meerwald97ee7ed2016-03-13 16:15:37 +0100385 the ECB and CBC modes of operation are supported by the driver. Also
386 accesses made on unaligned boundaries are supported.
Joel Fernandes701d0f12014-02-14 10:49:47 -0600387
Tero Kristo74ed87e2017-05-24 10:35:26 +0300388endif # CRYPTO_DEV_OMAP
389
Jamie Ilesce921362011-02-21 16:43:21 +1100390config CRYPTO_DEV_PICOXCELL
391 tristate "Support for picoXcell IPSEC and Layer2 crypto engines"
Javier Martinez Canillas4f44d862017-01-02 14:06:57 -0300392 depends on (ARCH_PICOXCELL || COMPILE_TEST) && HAVE_CLK
Herbert Xu596103c2015-06-17 14:58:24 +0800393 select CRYPTO_AEAD
Jamie Ilesce921362011-02-21 16:43:21 +1100394 select CRYPTO_AES
395 select CRYPTO_AUTHENC
Eric Biggersb95bba52019-10-25 12:41:13 -0700396 select CRYPTO_SKCIPHER
Ard Biesheuvel04007b02019-08-15 12:01:09 +0300397 select CRYPTO_LIB_DES
Jamie Ilesce921362011-02-21 16:43:21 +1100398 select CRYPTO_CBC
399 select CRYPTO_ECB
400 select CRYPTO_SEQIV
401 help
402 This option enables support for the hardware offload engines in the
403 Picochip picoXcell SoC devices. Select this for IPSEC ESP offload
404 and for 3gpp Layer 2 ciphering support.
405
Christophe JAILLET309b77e2019-08-19 07:18:33 +0200406 Saying m here will build a module named picoxcell_crypto.
Jamie Ilesce921362011-02-21 16:43:21 +1100407
Javier Martin5de88752013-03-01 12:37:53 +0100408config CRYPTO_DEV_SAHARA
409 tristate "Support for SAHARA crypto accelerator"
Paul Bolle74d24d82013-05-12 13:57:19 +0200410 depends on ARCH_MXC && OF
Eric Biggersb95bba52019-10-25 12:41:13 -0700411 select CRYPTO_SKCIPHER
Javier Martin5de88752013-03-01 12:37:53 +0100412 select CRYPTO_AES
413 select CRYPTO_ECB
414 help
415 This option enables support for the SAHARA HW crypto accelerator
416 found in some Freescale i.MX chips.
417
Krzysztof Kozlowskic46ea132017-04-11 20:08:35 +0200418config CRYPTO_DEV_EXYNOS_RNG
Krzysztof Kozlowskib2799972020-01-04 16:20:59 +0100419 tristate "Exynos HW pseudo random number generator support"
Krzysztof Kozlowskic46ea132017-04-11 20:08:35 +0200420 depends on ARCH_EXYNOS || COMPILE_TEST
421 depends on HAS_IOMEM
422 select CRYPTO_RNG
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +0900423 help
Krzysztof Kozlowskic46ea132017-04-11 20:08:35 +0200424 This driver provides kernel-side support through the
425 cryptographic API for the pseudo random number generator hardware
426 found on Exynos SoCs.
427
428 To compile this driver as a module, choose M here: the
429 module will be called exynos-rng.
430
431 If unsure, say Y.
432
Vladimir Zapolskiya49e4902011-04-08 20:40:51 +0800433config CRYPTO_DEV_S5P
Naveen Krishna Chatradhie922e962014-05-08 21:58:14 +0800434 tristate "Support for Samsung S5PV210/Exynos crypto accelerator"
Krzysztof Kozlowskidc1d9de2016-03-14 13:20:18 +0900435 depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
Geert Uytterhoevenee1b23d2018-04-17 19:49:03 +0200436 depends on HAS_IOMEM
Vladimir Zapolskiya49e4902011-04-08 20:40:51 +0800437 select CRYPTO_AES
Eric Biggersb95bba52019-10-25 12:41:13 -0700438 select CRYPTO_SKCIPHER
Vladimir Zapolskiya49e4902011-04-08 20:40:51 +0800439 help
440 This option allows you to have support for S5P crypto acceleration.
Naveen Krishna Chatradhie922e962014-05-08 21:58:14 +0800441 Select this to offload Samsung S5PV210 or S5PC110, Exynos from AES
Vladimir Zapolskiya49e4902011-04-08 20:40:51 +0800442 algorithms execution.
443
Kamil Koniecznyc2afad62017-10-25 17:27:35 +0200444config CRYPTO_DEV_EXYNOS_HASH
445 bool "Support for Samsung Exynos HASH accelerator"
446 depends on CRYPTO_DEV_S5P
447 depends on !CRYPTO_DEV_EXYNOS_RNG && CRYPTO_DEV_EXYNOS_RNG!=m
448 select CRYPTO_SHA1
449 select CRYPTO_MD5
450 select CRYPTO_SHA256
451 help
452 Select this to offload Exynos from HASH MD5/SHA1/SHA256.
453 This will select software SHA1, MD5 and SHA256 as they are
454 needed for small and zero-size messages.
455 HASH algorithms will be disabled if EXYNOS_RNG
456 is enabled due to hw conflict.
457
Kent Yoderaef7b312012-04-12 05:39:26 +0000458config CRYPTO_DEV_NX
Dan Streetman7011a122015-05-07 13:49:17 -0400459 bool "Support for IBM PowerPC Nest (NX) cryptographic acceleration"
460 depends on PPC64
Kent Yoderaef7b312012-04-12 05:39:26 +0000461 help
Dan Streetman7011a122015-05-07 13:49:17 -0400462 This enables support for the NX hardware cryptographic accelerator
463 coprocessor that is in IBM PowerPC P7+ or later processors. This
464 does not actually enable any drivers, it only allows you to select
465 which acceleration type (encryption and/or compression) to enable.
Seth Jennings322cacc2012-07-19 09:42:38 -0500466
467if CRYPTO_DEV_NX
468 source "drivers/crypto/nx/Kconfig"
469endif
Kent Yoderaef7b312012-04-12 05:39:26 +0000470
Andreas Westin2789c082012-04-30 10:11:17 +0200471config CRYPTO_DEV_UX500
472 tristate "Driver for ST-Ericsson UX500 crypto hardware acceleration"
473 depends on ARCH_U8500
Andreas Westin2789c082012-04-30 10:11:17 +0200474 help
475 Driver for ST-Ericsson UX500 crypto engine.
476
477if CRYPTO_DEV_UX500
478 source "drivers/crypto/ux500/Kconfig"
479endif # if CRYPTO_DEV_UX500
480
Cyrille Pitchen89a82ef2017-01-26 17:07:56 +0100481config CRYPTO_DEV_ATMEL_AUTHENC
YueHaibingaee1f9f2019-11-13 17:55:50 +0800482 bool "Support for Atmel IPSEC/SSL hw accelerator"
Arnd Bergmannceb4afb2017-02-06 13:32:15 +0100483 depends on ARCH_AT91 || COMPILE_TEST
YueHaibingaee1f9f2019-11-13 17:55:50 +0800484 depends on CRYPTO_DEV_ATMEL_AES
Cyrille Pitchen89a82ef2017-01-26 17:07:56 +0100485 help
486 Some Atmel processors can combine the AES and SHA hw accelerators
487 to enhance support of IPSEC/SSL.
488 Select this if you want to use the Atmel modules for
489 authenc(hmac(shaX),Y(cbc)) algorithms.
490
Nicolas Royerbd3c7b52012-07-01 19:19:44 +0200491config CRYPTO_DEV_ATMEL_AES
492 tristate "Support for Atmel AES hw accelerator"
Arnd Bergmannceb4afb2017-02-06 13:32:15 +0100493 depends on ARCH_AT91 || COMPILE_TEST
Nicolas Royerbd3c7b52012-07-01 19:19:44 +0200494 select CRYPTO_AES
Cyrille Pitchend4419542015-12-17 18:13:07 +0100495 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -0700496 select CRYPTO_SKCIPHER
YueHaibingaee1f9f2019-11-13 17:55:50 +0800497 select CRYPTO_AUTHENC if CRYPTO_DEV_ATMEL_AUTHENC
498 select CRYPTO_DEV_ATMEL_SHA if CRYPTO_DEV_ATMEL_AUTHENC
Nicolas Royerbd3c7b52012-07-01 19:19:44 +0200499 help
500 Some Atmel processors have AES hw accelerator.
501 Select this if you want to use the Atmel module for
502 AES algorithms.
503
504 To compile this driver as a module, choose M here: the module
505 will be called atmel-aes.
506
Nicolas Royer13802002012-07-01 19:19:45 +0200507config CRYPTO_DEV_ATMEL_TDES
508 tristate "Support for Atmel DES/TDES hw accelerator"
Arnd Bergmannceb4afb2017-02-06 13:32:15 +0100509 depends on ARCH_AT91 || COMPILE_TEST
Ard Biesheuvel04007b02019-08-15 12:01:09 +0300510 select CRYPTO_LIB_DES
Eric Biggersb95bba52019-10-25 12:41:13 -0700511 select CRYPTO_SKCIPHER
Nicolas Royer13802002012-07-01 19:19:45 +0200512 help
513 Some Atmel processors have DES/TDES hw accelerator.
514 Select this if you want to use the Atmel module for
515 DES/TDES algorithms.
516
517 To compile this driver as a module, choose M here: the module
518 will be called atmel-tdes.
519
Nicolas Royerebc82ef2012-07-01 19:19:46 +0200520config CRYPTO_DEV_ATMEL_SHA
Nicolas Royerd4905b32013-02-20 17:10:26 +0100521 tristate "Support for Atmel SHA hw accelerator"
Arnd Bergmannceb4afb2017-02-06 13:32:15 +0100522 depends on ARCH_AT91 || COMPILE_TEST
Herbert Xu596103c2015-06-17 14:58:24 +0800523 select CRYPTO_HASH
Nicolas Royerebc82ef2012-07-01 19:19:46 +0200524 help
Nicolas Royerd4905b32013-02-20 17:10:26 +0100525 Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512
526 hw accelerator.
Nicolas Royerebc82ef2012-07-01 19:19:46 +0200527 Select this if you want to use the Atmel module for
Nicolas Royerd4905b32013-02-20 17:10:26 +0100528 SHA1/SHA224/SHA256/SHA384/SHA512 algorithms.
Nicolas Royerebc82ef2012-07-01 19:19:46 +0200529
530 To compile this driver as a module, choose M here: the module
531 will be called atmel-sha.
532
Ard Biesheuvelc34a3202019-05-24 18:26:48 +0200533config CRYPTO_DEV_ATMEL_I2C
534 tristate
535
Tudor-Dan Ambarus11105692017-07-05 13:07:59 +0300536config CRYPTO_DEV_ATMEL_ECC
537 tristate "Support for Microchip / Atmel ECC hw accelerator"
Tudor-Dan Ambarus11105692017-07-05 13:07:59 +0300538 depends on I2C
Ard Biesheuvelc34a3202019-05-24 18:26:48 +0200539 select CRYPTO_DEV_ATMEL_I2C
Tudor-Dan Ambarus11105692017-07-05 13:07:59 +0300540 select CRYPTO_ECDH
541 select CRC16
542 help
543 Microhip / Atmel ECC hw accelerator.
544 Select this if you want to use the Microchip / Atmel module for
545 ECDH algorithm.
546
547 To compile this driver as a module, choose M here: the module
548 will be called atmel-ecc.
549
Ard Biesheuvelda001fb2019-05-24 18:26:49 +0200550config CRYPTO_DEV_ATMEL_SHA204A
551 tristate "Support for Microchip / Atmel SHA accelerator and RNG"
552 depends on I2C
553 select CRYPTO_DEV_ATMEL_I2C
554 select HW_RANDOM
YueHaibing4bb02db2019-05-31 20:17:49 +0800555 select CRC16
Ard Biesheuvelda001fb2019-05-24 18:26:49 +0200556 help
557 Microhip / Atmel SHA accelerator and RNG.
558 Select this if you want to use the Microchip / Atmel SHA204A
559 module as a random number generator. (Other functions of the
560 chip are currently not exposed by this driver)
561
562 To compile this driver as a module, choose M here: the module
563 will be called atmel-sha204a.
564
Tom Lendackyf1147662013-11-12 11:46:51 -0600565config CRYPTO_DEV_CCP
Brijesh Singh720419f2017-07-06 09:59:14 -0500566 bool "Support for AMD Secure Processor"
Tom Lendacky6c506342015-02-03 13:07:29 -0600567 depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM
Tom Lendackyf1147662013-11-12 11:46:51 -0600568 help
Brijesh Singh720419f2017-07-06 09:59:14 -0500569 The AMD Secure Processor provides support for the Cryptographic Coprocessor
570 (CCP) and the Platform Security Processor (PSP) devices.
Tom Lendackyf1147662013-11-12 11:46:51 -0600571
572if CRYPTO_DEV_CCP
573 source "drivers/crypto/ccp/Kconfig"
574endif
575
Marek Vasut15b59e72013-12-10 20:26:21 +0100576config CRYPTO_DEV_MXS_DCP
577 tristate "Support for Freescale MXS DCP"
Fabio Estevama2712e62015-09-02 12:05:18 -0300578 depends on (ARCH_MXS || ARCH_MXC)
Arnd Bergmanndc97fa02015-10-12 15:52:34 +0200579 select STMP_DEVICE
Marek Vasut15b59e72013-12-10 20:26:21 +0100580 select CRYPTO_CBC
581 select CRYPTO_ECB
582 select CRYPTO_AES
Eric Biggersb95bba52019-10-25 12:41:13 -0700583 select CRYPTO_SKCIPHER
Herbert Xu596103c2015-06-17 14:58:24 +0800584 select CRYPTO_HASH
Marek Vasut15b59e72013-12-10 20:26:21 +0100585 help
586 The Freescale i.MX23/i.MX28 has SHA1/SHA256 and AES128 CBC/ECB
587 co-processor on the die.
588
589 To compile this driver as a module, choose M here: the module
590 will be called mxs-dcp.
591
Tadeusz Strukcea40012014-06-05 13:44:39 -0700592source "drivers/crypto/qat/Kconfig"
George Cherian62ad8b52017-02-07 14:51:15 +0000593source "drivers/crypto/cavium/cpt/Kconfig"
Srikanth Jampala14fa93c2017-05-30 17:28:01 +0530594source "drivers/crypto/cavium/nitrox/Kconfig"
SrujanaChalla655ff1a2020-03-13 17:17:05 +0530595source "drivers/crypto/marvell/Kconfig"
Stanimir Varbanovc6727522014-06-25 19:28:58 +0300596
Mahipal Challa640035a2017-02-15 10:45:08 +0530597config CRYPTO_DEV_CAVIUM_ZIP
598 tristate "Cavium ZIP driver"
599 depends on PCI && 64BIT && (ARM64 || COMPILE_TEST)
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +0900600 help
Mahipal Challa640035a2017-02-15 10:45:08 +0530601 Select this option if you want to enable compression/decompression
602 acceleration on Cavium's ARM based SoCs
603
Stanimir Varbanovc6727522014-06-25 19:28:58 +0300604config CRYPTO_DEV_QCE
605 tristate "Qualcomm crypto engine accelerator"
Geert Uytterhoevenee1b23d2018-04-17 19:49:03 +0200606 depends on ARCH_QCOM || COMPILE_TEST
607 depends on HAS_IOMEM
Eneas U de Queiroz59e056c2019-12-20 16:02:18 -0300608 help
609 This driver supports Qualcomm crypto engine accelerator
610 hardware. To compile this driver as a module, choose M here. The
611 module will be called qcrypto.
612
613config CRYPTO_DEV_QCE_SKCIPHER
614 bool
615 depends on CRYPTO_DEV_QCE
Stanimir Varbanovc6727522014-06-25 19:28:58 +0300616 select CRYPTO_AES
Ard Biesheuvel04007b02019-08-15 12:01:09 +0300617 select CRYPTO_LIB_DES
Stanimir Varbanovc6727522014-06-25 19:28:58 +0300618 select CRYPTO_ECB
619 select CRYPTO_CBC
620 select CRYPTO_XTS
621 select CRYPTO_CTR
Eric Biggersb95bba52019-10-25 12:41:13 -0700622 select CRYPTO_SKCIPHER
Eneas U de Queiroz59e056c2019-12-20 16:02:18 -0300623
624config CRYPTO_DEV_QCE_SHA
625 bool
626 depends on CRYPTO_DEV_QCE
Sivaprakash Murugesan8ac1b9cc2020-06-22 11:45:04 +0530627 select CRYPTO_SHA1
628 select CRYPTO_SHA256
Eneas U de Queiroz59e056c2019-12-20 16:02:18 -0300629
630choice
631 prompt "Algorithms enabled for QCE acceleration"
632 default CRYPTO_DEV_QCE_ENABLE_ALL
633 depends on CRYPTO_DEV_QCE
Stanimir Varbanovc6727522014-06-25 19:28:58 +0300634 help
Eneas U de Queiroz59e056c2019-12-20 16:02:18 -0300635 This option allows to choose whether to build support for all algorihtms
636 (default), hashes-only, or skciphers-only.
637
638 The QCE engine does not appear to scale as well as the CPU to handle
639 multiple crypto requests. While the ipq40xx chips have 4-core CPUs, the
640 QCE handles only 2 requests in parallel.
641
642 Ipsec throughput seems to improve when disabling either family of
643 algorithms, sharing the load with the CPU. Enabling skciphers-only
644 appears to work best.
645
646 config CRYPTO_DEV_QCE_ENABLE_ALL
647 bool "All supported algorithms"
648 select CRYPTO_DEV_QCE_SKCIPHER
649 select CRYPTO_DEV_QCE_SHA
650 help
651 Enable all supported algorithms:
652 - AES (CBC, CTR, ECB, XTS)
653 - 3DES (CBC, ECB)
654 - DES (CBC, ECB)
655 - SHA1, HMAC-SHA1
656 - SHA256, HMAC-SHA256
657
658 config CRYPTO_DEV_QCE_ENABLE_SKCIPHER
659 bool "Symmetric-key ciphers only"
660 select CRYPTO_DEV_QCE_SKCIPHER
661 help
662 Enable symmetric-key ciphers only:
663 - AES (CBC, CTR, ECB, XTS)
664 - 3DES (ECB, CBC)
665 - DES (ECB, CBC)
666
667 config CRYPTO_DEV_QCE_ENABLE_SHA
668 bool "Hash/HMAC only"
669 select CRYPTO_DEV_QCE_SHA
670 help
671 Enable hashes/HMAC algorithms only:
672 - SHA1, HMAC-SHA1
673 - SHA256, HMAC-SHA256
674
675endchoice
Stanimir Varbanovc6727522014-06-25 19:28:58 +0300676
Eneas U de Queirozce163ba2020-02-07 12:02:26 -0300677config CRYPTO_DEV_QCE_SW_MAX_LEN
678 int "Default maximum request size to use software for AES"
679 depends on CRYPTO_DEV_QCE && CRYPTO_DEV_QCE_SKCIPHER
680 default 512
681 help
682 This sets the default maximum request size to perform AES requests
683 using software instead of the crypto engine. It can be changed by
684 setting the aes_sw_max_len parameter.
685
686 Small blocks are processed faster in software than hardware.
687 Considering the 256-bit ciphers, software is 2-3 times faster than
688 qce at 256-bytes, 30% faster at 512, and about even at 768-bytes.
689 With 128-bit keys, the break-even point would be around 1024-bytes.
690
691 The default is set a little lower, to 512 bytes, to balance the
692 cost in CPU usage. The minimum recommended setting is 16-bytes
693 (1 AES block), since AES-GCM will fail if you set it lower.
694 Setting this to zero will send all requests to the hardware.
695
696 Note that 192-bit keys are not supported by the hardware and are
697 always processed by the software fallback, and all DES requests
698 are done by the hardware.
699
Vinod Koulceec5f52018-07-16 11:20:24 +0530700config CRYPTO_DEV_QCOM_RNG
701 tristate "Qualcomm Random Number Generator Driver"
702 depends on ARCH_QCOM || COMPILE_TEST
703 select CRYPTO_RNG
704 help
705 This driver provides support for the Random Number
706 Generator hardware found on Qualcomm SoCs.
707
708 To compile this driver as a module, choose M here. The
Krzysztof Kozlowski2452cfd2019-11-21 04:20:48 +0100709 module will be called qcom-rng. If unsure, say N.
Vinod Koulceec5f52018-07-16 11:20:24 +0530710
Leonidas S. Barbosad2e3ae62015-02-06 14:59:48 -0200711config CRYPTO_DEV_VMX
712 bool "Support for VMX cryptographic acceleration instructions"
Michael Ellermanf1ab4282015-09-09 18:22:35 +1000713 depends on PPC64 && VSX
Leonidas S. Barbosad2e3ae62015-02-06 14:59:48 -0200714 help
715 Support for VMX cryptographic acceleration instructions.
716
717source "drivers/crypto/vmx/Kconfig"
718
James Hartleyd358f1a2015-03-12 23:17:26 +0000719config CRYPTO_DEV_IMGTEC_HASH
James Hartleyd358f1a2015-03-12 23:17:26 +0000720 tristate "Imagination Technologies hardware hash accelerator"
Geert Uytterhoeven8c98ebd2015-04-23 20:03:58 +0200721 depends on MIPS || COMPILE_TEST
James Hartleyd358f1a2015-03-12 23:17:26 +0000722 select CRYPTO_MD5
723 select CRYPTO_SHA1
James Hartleyd358f1a2015-03-12 23:17:26 +0000724 select CRYPTO_SHA256
725 select CRYPTO_HASH
726 help
727 This driver interfaces with the Imagination Technologies
728 hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
729 hashing algorithms.
730
Zain Wang433cd2c2015-11-25 13:43:32 +0800731config CRYPTO_DEV_ROCKCHIP
732 tristate "Rockchip's Cryptographic Engine driver"
733 depends on OF && ARCH_ROCKCHIP
734 select CRYPTO_AES
Ard Biesheuvel04007b02019-08-15 12:01:09 +0300735 select CRYPTO_LIB_DES
Zain Wangbfd927f2016-02-16 10:15:01 +0800736 select CRYPTO_MD5
737 select CRYPTO_SHA1
738 select CRYPTO_SHA256
739 select CRYPTO_HASH
Eric Biggersb95bba52019-10-25 12:41:13 -0700740 select CRYPTO_SKCIPHER
Zain Wang433cd2c2015-11-25 13:43:32 +0800741
742 help
743 This driver interfaces with the hardware crypto accelerator.
744 Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
745
Kalyani Akula4d96f7d2020-02-17 15:56:43 +0530746config CRYPTO_DEV_ZYNQMP_AES
747 tristate "Support for Xilinx ZynqMP AES hw accelerator"
748 depends on ZYNQMP_FIRMWARE || COMPILE_TEST
749 select CRYPTO_AES
750 select CRYPTO_ENGINE
751 select CRYPTO_AEAD
752 help
753 Xilinx ZynqMP has AES-GCM engine used for symmetric key
754 encryption and decryption. This driver interfaces with AES hw
755 accelerator. Select this if you want to use the ZynqMP module
756 for AES algorithms.
757
Ryder Lee785e5c62016-12-19 10:20:44 +0800758config CRYPTO_DEV_MEDIATEK
759 tristate "MediaTek's EIP97 Cryptographic Engine driver"
Arnd Bergmann7dee9f62017-01-11 14:50:19 +0100760 depends on (ARM && ARCH_MEDIATEK) || COMPILE_TEST
Ard Biesheuvelf441ba22020-07-07 09:32:03 +0300761 select CRYPTO_LIB_AES
Ryder Leed03f7b02017-01-20 13:41:15 +0800762 select CRYPTO_AEAD
Eric Biggersb95bba52019-10-25 12:41:13 -0700763 select CRYPTO_SKCIPHER
Arnd Bergmann7dee9f62017-01-11 14:50:19 +0100764 select CRYPTO_SHA1
765 select CRYPTO_SHA256
766 select CRYPTO_SHA512
Ryder Lee785e5c62016-12-19 10:20:44 +0800767 select CRYPTO_HMAC
768 help
769 This driver allows you to utilize the hardware crypto accelerator
770 EIP97 which can be found on the MT7623 MT2701, MT8521p, etc ....
771 Select this if you want to use it for AES/SHA1/SHA2 algorithms.
772
Hariprasad Shenai02038fd2016-08-17 12:33:06 +0530773source "drivers/crypto/chelsio/Kconfig"
774
Gongleidbaf0622016-12-15 10:03:16 +0800775source "drivers/crypto/virtio/Kconfig"
776
Rob Rice9d12ba82017-02-03 12:55:33 -0500777config CRYPTO_DEV_BCM_SPU
778 tristate "Broadcom symmetric crypto/hash acceleration support"
779 depends on ARCH_BCM_IPROC
raveendra padasalagiefc856e2017-07-11 15:50:06 +0530780 depends on MAILBOX
Rob Rice9d12ba82017-02-03 12:55:33 -0500781 default m
Eric Biggersab57b332018-12-16 23:23:23 -0800782 select CRYPTO_AUTHENC
Ard Biesheuvel04007b02019-08-15 12:01:09 +0300783 select CRYPTO_LIB_DES
Rob Rice9d12ba82017-02-03 12:55:33 -0500784 select CRYPTO_MD5
785 select CRYPTO_SHA1
786 select CRYPTO_SHA256
787 select CRYPTO_SHA512
788 help
789 This driver provides support for Broadcom crypto acceleration using the
Ard Biesheuvela9c01cd2019-11-09 18:09:35 +0100790 Secure Processing Unit (SPU). The SPU driver registers skcipher,
Rob Rice9d12ba82017-02-03 12:55:33 -0500791 ahash, and aead algorithms with the kernel cryptographic API.
792
Fabien DESSENNEb51dbe92017-03-21 16:13:28 +0100793source "drivers/crypto/stm32/Kconfig"
794
Antoine Ténart1b44c5a2017-05-24 16:10:34 +0200795config CRYPTO_DEV_SAFEXCEL
796 tristate "Inside Secure's SafeXcel cryptographic engine driver"
Brendan Higgins6dc0e312019-12-11 11:27:39 -0800797 depends on (OF || PCI || COMPILE_TEST) && HAS_IOMEM
Ard Biesheuvel363a90c2019-07-02 21:41:27 +0200798 select CRYPTO_LIB_AES
Antoine Tenartf6beaea2018-05-14 15:11:02 +0200799 select CRYPTO_AUTHENC
Eric Biggersb95bba52019-10-25 12:41:13 -0700800 select CRYPTO_SKCIPHER
Ard Biesheuvel04007b02019-08-15 12:01:09 +0300801 select CRYPTO_LIB_DES
Antoine Ténart1b44c5a2017-05-24 16:10:34 +0200802 select CRYPTO_HASH
803 select CRYPTO_HMAC
Ofer Heifetz293f89c2018-06-28 17:21:53 +0200804 select CRYPTO_MD5
Antoine Ténart1b44c5a2017-05-24 16:10:34 +0200805 select CRYPTO_SHA1
806 select CRYPTO_SHA256
807 select CRYPTO_SHA512
Pascal van Leeuwenfc0f82b2019-09-18 23:25:58 +0200808 select CRYPTO_CHACHA20POLY1305
Pascal van Leeuwen1d448f22019-09-13 20:56:49 +0200809 select CRYPTO_SHA3
Antoine Ténart1b44c5a2017-05-24 16:10:34 +0200810 help
Pascal van Leeuwen0f6e5c82019-08-19 16:40:23 +0200811 This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic
812 engines designed by Inside Secure. It currently accelerates DES, 3DES and
813 AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256,
814 SHA384 and SHA512 hash algorithms for both basic hash and HMAC.
815 Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations.
Antoine Ténart1b44c5a2017-05-24 16:10:34 +0200816
Lars Perssona21eb942017-08-10 14:53:53 +0200817config CRYPTO_DEV_ARTPEC6
818 tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."
819 depends on ARM && (ARCH_ARTPEC || COMPILE_TEST)
Lars Perssona21eb942017-08-10 14:53:53 +0200820 depends on OF
821 select CRYPTO_AEAD
822 select CRYPTO_AES
823 select CRYPTO_ALGAPI
Eric Biggersb95bba52019-10-25 12:41:13 -0700824 select CRYPTO_SKCIPHER
Lars Perssona21eb942017-08-10 14:53:53 +0200825 select CRYPTO_CTR
826 select CRYPTO_HASH
827 select CRYPTO_SHA1
828 select CRYPTO_SHA256
Lars Perssona21eb942017-08-10 14:53:53 +0200829 select CRYPTO_SHA512
830 help
831 Enables the driver for the on-chip crypto accelerator
832 of Axis ARTPEC SoCs.
833
834 To compile this driver as a module, choose M here.
835
Gilad Ben-Yossef4c3f9722018-01-22 09:27:00 +0000836config CRYPTO_DEV_CCREE
837 tristate "Support for ARM TrustZone CryptoCell family of security processors"
838 depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA
839 default n
840 select CRYPTO_HASH
Eric Biggersb95bba52019-10-25 12:41:13 -0700841 select CRYPTO_SKCIPHER
Ard Biesheuvel04007b02019-08-15 12:01:09 +0300842 select CRYPTO_LIB_DES
Gilad Ben-Yossef4c3f9722018-01-22 09:27:00 +0000843 select CRYPTO_AEAD
844 select CRYPTO_AUTHENC
845 select CRYPTO_SHA1
846 select CRYPTO_MD5
847 select CRYPTO_SHA256
848 select CRYPTO_SHA512
849 select CRYPTO_HMAC
850 select CRYPTO_AES
851 select CRYPTO_CBC
852 select CRYPTO_ECB
853 select CRYPTO_CTR
854 select CRYPTO_XTS
Gilad Ben-Yossef9b8d51f2018-10-29 09:50:14 +0000855 select CRYPTO_SM4
Yael Chemla927574e2018-10-18 13:59:59 +0100856 select CRYPTO_SM3
Gilad Ben-Yossef4c3f9722018-01-22 09:27:00 +0000857 help
Gilad Ben-Yossef27b3b222018-02-19 14:51:23 +0000858 Say 'Y' to enable a driver for the REE interface of the Arm
859 TrustZone CryptoCell family of processors. Currently the
Gilad Ben-Yossef1c876a92018-11-13 09:40:35 +0000860 CryptoCell 713, 703, 712, 710 and 630 are supported.
Gilad Ben-Yossef4c3f9722018-01-22 09:27:00 +0000861 Choose this if you wish to use hardware acceleration of
862 cryptographic operations on the system REE.
863 If unsure say Y.
864
Jonathan Cameron915e4e82018-07-23 16:49:54 +0100865source "drivers/crypto/hisilicon/Kconfig"
866
Corentin Labbe48fe5832019-10-17 05:06:25 +0000867source "drivers/crypto/amlogic/Kconfig"
868
Keerthy7694b6c2020-07-13 11:34:22 +0300869config CRYPTO_DEV_SA2UL
870 tristate "Support for TI security accelerator"
871 depends on ARCH_K3 || COMPILE_TEST
872 select ARM64_CRYPTO
873 select CRYPTO_AES
874 select CRYPTO_AES_ARM64
875 select CRYPTO_ALGAPI
876 select HW_RANDOM
877 select SG_SPLIT
878 help
879 K3 devices include a security accelerator engine that may be
880 used for crypto offload. Select this if you want to use hardware
881 acceleration for cryptographic algorithms on these devices.
882
Jan Engelhardtb5114312007-07-15 23:39:36 -0700883endif # CRYPTO_HW