blob: caa98a7fe3923bb752cec40f5459633627cc42fa [file] [log] [blame]
Jan Engelhardtb5114312007-07-15 23:39:36 -07001
2menuconfig CRYPTO_HW
3 bool "Hardware crypto devices"
4 default y
Jan Engelhardt06bfb7e2007-08-18 12:56:21 +02005 ---help---
6 Say Y here to get to see options for hardware crypto devices and
7 processors. This option alone does not add any kernel code.
8
9 If you say N, all options in this submenu will be skipped and disabled.
Jan Engelhardtb5114312007-07-15 23:39:36 -070010
11if CRYPTO_HW
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
13config CRYPTO_DEV_PADLOCK
Herbert Xud1583252007-05-18 13:17:22 +100014 tristate "Support for VIA PadLock ACE"
Herbert Xu2f817412009-04-22 13:00:15 +080015 depends on X86 && !UML
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 help
17 Some VIA processors come with an integrated crypto engine
18 (so called VIA PadLock ACE, Advanced Cryptography Engine)
Michal Ludvig1191f0a2006-08-06 22:46:20 +100019 that provides instructions for very fast cryptographic
20 operations with supported algorithms.
Linus Torvalds1da177e2005-04-16 15:20:36 -070021
22 The instructions are used only when the CPU supports them.
Michal Ludvig5644bda2006-08-06 22:50:30 +100023 Otherwise software encryption is used.
24
Linus Torvalds1da177e2005-04-16 15:20:36 -070025config CRYPTO_DEV_PADLOCK_AES
Michal Ludvig1191f0a2006-08-06 22:46:20 +100026 tristate "PadLock driver for AES algorithm"
Linus Torvalds1da177e2005-04-16 15:20:36 -070027 depends on CRYPTO_DEV_PADLOCK
Herbert Xu28ce7282006-08-21 21:38:42 +100028 select CRYPTO_BLKCIPHER
Sebastian Siewior7dc748e2008-04-01 21:24:50 +080029 select CRYPTO_AES
Linus Torvalds1da177e2005-04-16 15:20:36 -070030 help
31 Use VIA PadLock for AES algorithm.
32
Michal Ludvig1191f0a2006-08-06 22:46:20 +100033 Available in VIA C3 and newer CPUs.
34
35 If unsure say M. The compiled module will be
Pavel Machek4737f092009-06-05 00:44:53 +020036 called padlock-aes.
Michal Ludvig1191f0a2006-08-06 22:46:20 +100037
Michal Ludvig6c833272006-07-12 12:29:38 +100038config CRYPTO_DEV_PADLOCK_SHA
39 tristate "PadLock driver for SHA1 and SHA256 algorithms"
40 depends on CRYPTO_DEV_PADLOCK
Herbert Xubbbee462009-07-11 18:16:16 +080041 select CRYPTO_HASH
Michal Ludvig6c833272006-07-12 12:29:38 +100042 select CRYPTO_SHA1
43 select CRYPTO_SHA256
Michal Ludvig6c833272006-07-12 12:29:38 +100044 help
45 Use VIA PadLock for SHA1/SHA256 algorithms.
46
47 Available in VIA C7 and newer processors.
48
49 If unsure say M. The compiled module will be
Pavel Machek4737f092009-06-05 00:44:53 +020050 called padlock-sha.
Michal Ludvig6c833272006-07-12 12:29:38 +100051
Jordan Crouse9fe757b2006-10-04 18:48:57 +100052config CRYPTO_DEV_GEODE
53 tristate "Support for the Geode LX AES engine"
Simon Arlottf6259de2007-05-02 22:08:26 +100054 depends on X86_32 && PCI
Jordan Crouse9fe757b2006-10-04 18:48:57 +100055 select CRYPTO_ALGAPI
56 select CRYPTO_BLKCIPHER
Jordan Crouse9fe757b2006-10-04 18:48:57 +100057 help
58 Say 'Y' here to use the AMD Geode LX processor on-board AES
David Sterba3dde6ad2007-05-09 07:12:20 +020059 engine for the CryptoAPI AES algorithm.
Jordan Crouse9fe757b2006-10-04 18:48:57 +100060
61 To compile this driver as a module, choose M here: the module
62 will be called geode-aes.
63
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020064config ZCRYPT
Harald Freudenbergera3358e32017-02-20 16:09:51 +010065 tristate "Support for s390 cryptographic adapters"
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020066 depends on S390
Ralph Wuerthner2f7c8bd2008-04-17 07:46:15 +020067 select HW_RANDOM
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020068 help
Harald Freudenbergera3358e32017-02-20 16:09:51 +010069 Select this option if you want to enable support for
70 s390 cryptographic adapters like:
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020071 + PCI-X Cryptographic Coprocessor (PCIXCC)
Harald Freudenbergera3358e32017-02-20 16:09:51 +010072 + Crypto Express 2,3,4 or 5 Coprocessor (CEXxC)
73 + Crypto Express 2,3,4 or 5 Accelerator (CEXxA)
74 + Crypto Express 4 or 5 EP11 Coprocessor (CEXxP)
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020075
Harald Freudenberger00fab232018-09-17 16:18:41 +020076config ZCRYPT_MULTIDEVNODES
77 bool "Support for multiple zcrypt device nodes"
78 default y
79 depends on S390
80 depends on ZCRYPT
81 help
82 With this option enabled the zcrypt device driver can
83 provide multiple devices nodes in /dev. Each device
84 node can get customized to limit access and narrow
85 down the use of the available crypto hardware.
86
Harald Freudenbergere80d4af2016-11-02 14:37:20 +010087config PKEY
88 tristate "Kernel API for protected key handling"
89 depends on S390
90 depends on ZCRYPT
91 help
92 With this option enabled the pkey kernel module provides an API
93 for creation and handling of protected keys. Other parts of the
94 kernel or userspace applications may use these functions.
95
96 Select this option if you want to enable the kernel and userspace
97 API for proteced key handling.
98
99 Please note that creation of protected keys from secure keys
100 requires to have at least one CEX card in coprocessor mode
101 available at runtime.
Martin Schwidefsky61d48c22007-05-10 15:46:00 +0200102
Harald Freudenbergerc4684f92017-05-11 17:15:54 +0200103config CRYPTO_PAES_S390
104 tristate "PAES cipher algorithms"
105 depends on S390
106 depends on ZCRYPT
107 depends on PKEY
108 select CRYPTO_ALGAPI
109 select CRYPTO_BLKCIPHER
110 help
111 This is the s390 hardware accelerated implementation of the
112 AES cipher algorithms for use with protected key.
113
114 Select this option if you want to use the paes cipher
115 for example to use protected key encrypted devices.
116
Jan Glauber3f5615e2008-01-26 14:11:07 +0100117config CRYPTO_SHA1_S390
118 tristate "SHA1 digest algorithm"
119 depends on S390
Herbert Xu563f3462009-01-18 20:33:33 +1100120 select CRYPTO_HASH
Jan Glauber3f5615e2008-01-26 14:11:07 +0100121 help
122 This is the s390 hardware accelerated implementation of the
123 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
124
Jan Glauberd393d9b2011-04-19 21:29:19 +0200125 It is available as of z990.
126
Jan Glauber3f5615e2008-01-26 14:11:07 +0100127config CRYPTO_SHA256_S390
128 tristate "SHA256 digest algorithm"
129 depends on S390
Herbert Xu563f3462009-01-18 20:33:33 +1100130 select CRYPTO_HASH
Jan Glauber3f5615e2008-01-26 14:11:07 +0100131 help
132 This is the s390 hardware accelerated implementation of the
133 SHA256 secure hash standard (DFIPS 180-2).
134
Jan Glauberd393d9b2011-04-19 21:29:19 +0200135 It is available as of z9.
Jan Glauber3f5615e2008-01-26 14:11:07 +0100136
Jan Glauber291dc7c2008-03-06 19:52:00 +0800137config CRYPTO_SHA512_S390
Jan Glauber4e2c6d72008-03-06 19:53:50 +0800138 tristate "SHA384 and SHA512 digest algorithm"
Jan Glauber291dc7c2008-03-06 19:52:00 +0800139 depends on S390
Herbert Xu563f3462009-01-18 20:33:33 +1100140 select CRYPTO_HASH
Jan Glauber291dc7c2008-03-06 19:52:00 +0800141 help
142 This is the s390 hardware accelerated implementation of the
143 SHA512 secure hash standard.
144
Jan Glauberd393d9b2011-04-19 21:29:19 +0200145 It is available as of z10.
Jan Glauber291dc7c2008-03-06 19:52:00 +0800146
Jan Glauber3f5615e2008-01-26 14:11:07 +0100147config CRYPTO_DES_S390
148 tristate "DES and Triple DES cipher algorithms"
149 depends on S390
150 select CRYPTO_ALGAPI
151 select CRYPTO_BLKCIPHER
Heiko Carstens63291d42012-05-09 16:27:35 +0200152 select CRYPTO_DES
Jan Glauber3f5615e2008-01-26 14:11:07 +0100153 help
Gerald Schaefer0200f3e2011-05-04 15:09:44 +1000154 This is the s390 hardware accelerated implementation of the
Jan Glauber3f5615e2008-01-26 14:11:07 +0100155 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
156
Gerald Schaefer0200f3e2011-05-04 15:09:44 +1000157 As of z990 the ECB and CBC mode are hardware accelerated.
158 As of z196 the CTR mode is hardware accelerated.
159
Jan Glauber3f5615e2008-01-26 14:11:07 +0100160config CRYPTO_AES_S390
161 tristate "AES cipher algorithms"
162 depends on S390
163 select CRYPTO_ALGAPI
164 select CRYPTO_BLKCIPHER
165 help
166 This is the s390 hardware accelerated implementation of the
Gerald Schaefer99d97222011-04-26 16:12:42 +1000167 AES cipher algorithms (FIPS-197).
Jan Glauber3f5615e2008-01-26 14:11:07 +0100168
Gerald Schaefer99d97222011-04-26 16:12:42 +1000169 As of z9 the ECB and CBC modes are hardware accelerated
170 for 128 bit keys.
171 As of z10 the ECB and CBC modes are hardware accelerated
172 for all AES key sizes.
Gerald Schaefer0200f3e2011-05-04 15:09:44 +1000173 As of z196 the CTR mode is hardware accelerated for all AES
174 key sizes and XTS mode is hardware accelerated for 256 and
Gerald Schaefer99d97222011-04-26 16:12:42 +1000175 512 bit keys.
Jan Glauber3f5615e2008-01-26 14:11:07 +0100176
177config S390_PRNG
178 tristate "Pseudo random number generator device driver"
179 depends on S390
180 default "m"
181 help
182 Select this option if you want to use the s390 pseudo random number
183 generator. The PRNG is part of the cryptographic processor functions
184 and uses triple-DES to generate secure random numbers like the
Jan Glauberd393d9b2011-04-19 21:29:19 +0200185 ANSI X9.17 standard. User-space programs access the
186 pseudo-random-number device through the char device /dev/prandom.
187
188 It is available as of z9.
Jan Glauber3f5615e2008-01-26 14:11:07 +0100189
Gerald Schaeferdf1309c2011-04-19 21:29:18 +0200190config CRYPTO_GHASH_S390
191 tristate "GHASH digest algorithm"
192 depends on S390
193 select CRYPTO_HASH
194 help
195 This is the s390 hardware accelerated implementation of the
196 GHASH message digest algorithm for GCM (Galois/Counter Mode).
197
198 It is available as of z196.
199
Hendrik Bruecknerf848dbd2015-04-28 15:52:44 +0200200config CRYPTO_CRC32_S390
201 tristate "CRC-32 algorithms"
202 depends on S390
203 select CRYPTO_HASH
204 select CRC32
205 help
206 Select this option if you want to use hardware accelerated
207 implementations of CRC algorithms. With this option, you
208 can optimize the computation of CRC-32 (IEEE 802.3 Ethernet)
209 and CRC-32C (Castagnoli).
210
211 It is available with IBM z13 or later.
212
Boris BREZILLONf63601f2015-06-18 15:46:20 +0200213config CRYPTO_DEV_MARVELL_CESA
Boris BREZILLON27b43fd2017-10-11 15:16:19 +0200214 tristate "Marvell's Cryptographic Engine driver"
Boris Brezillonfe55dfd2015-06-22 09:22:14 +0200215 depends on PLAT_ORION || ARCH_MVEBU
Boris BREZILLONf63601f2015-06-18 15:46:20 +0200216 select CRYPTO_AES
217 select CRYPTO_DES
218 select CRYPTO_BLKCIPHER
219 select CRYPTO_HASH
220 select SRAM
221 help
222 This driver allows you to utilize the Cryptographic Engines and
Boris BREZILLON27b43fd2017-10-11 15:16:19 +0200223 Security Accelerator (CESA) which can be found on MVEBU and ORION
224 platforms.
Boris BREZILLONdb509a42015-06-18 15:46:21 +0200225 This driver supports CPU offload through DMA transfers.
Boris BREZILLONf63601f2015-06-18 15:46:20 +0200226
David S. Miller0a625fd22010-05-19 14:14:04 +1000227config CRYPTO_DEV_NIAGARA2
228 tristate "Niagara2 Stream Processing Unit driver"
David S. Miller50e78162010-09-12 10:44:21 +0800229 select CRYPTO_DES
Herbert Xu596103c2015-06-17 14:58:24 +0800230 select CRYPTO_BLKCIPHER
231 select CRYPTO_HASH
LABBE Corentin8054b802015-12-17 13:45:40 +0100232 select CRYPTO_MD5
233 select CRYPTO_SHA1
234 select CRYPTO_SHA256
David S. Miller0a625fd22010-05-19 14:14:04 +1000235 depends on SPARC64
236 help
237 Each core of a Niagara2 processor contains a Stream
238 Processing Unit, which itself contains several cryptographic
239 sub-units. One set provides the Modular Arithmetic Unit,
240 used for SSL offload. The other set provides the Cipher
241 Group, which can perform encryption, decryption, hashing,
242 checksumming, and raw copies.
243
Evgeniy Polyakovf7d05612007-10-26 21:31:14 +0800244config CRYPTO_DEV_HIFN_795X
245 tristate "Driver HIFN 795x crypto accelerator chips"
Evgeniy Polyakovc3041f92007-10-11 19:58:16 +0800246 select CRYPTO_DES
Herbert Xu653ebd9c2007-11-27 19:48:27 +0800247 select CRYPTO_BLKCIPHER
Herbert Xu946fef42008-01-26 09:48:44 +1100248 select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG
Jan Glauber2707b932007-11-12 21:56:38 +0800249 depends on PCI
Richard Weinberger75b76622011-10-10 12:55:41 +0200250 depends on !ARCH_DMA_ADDR_T_64BIT
Evgeniy Polyakovf7d05612007-10-26 21:31:14 +0800251 help
252 This option allows you to have support for HIFN 795x crypto adapters.
253
Herbert Xu946fef42008-01-26 09:48:44 +1100254config CRYPTO_DEV_HIFN_795X_RNG
255 bool "HIFN 795x random number generator"
256 depends on CRYPTO_DEV_HIFN_795X
257 help
258 Select this option if you want to enable the random number generator
259 on the HIFN 795x crypto adapters.
Evgeniy Polyakovf7d05612007-10-26 21:31:14 +0800260
Kim Phillips8e8ec592011-03-13 16:54:26 +0800261source drivers/crypto/caam/Kconfig
262
Kim Phillips9c4a7962008-06-23 19:50:15 +0800263config CRYPTO_DEV_TALITOS
264 tristate "Talitos Freescale Security Engine (SEC)"
Herbert Xu596103c2015-06-17 14:58:24 +0800265 select CRYPTO_AEAD
Kim Phillips9c4a7962008-06-23 19:50:15 +0800266 select CRYPTO_AUTHENC
Herbert Xu596103c2015-06-17 14:58:24 +0800267 select CRYPTO_BLKCIPHER
268 select CRYPTO_HASH
Kim Phillips9c4a7962008-06-23 19:50:15 +0800269 select HW_RANDOM
270 depends on FSL_SOC
271 help
272 Say 'Y' here to use the Freescale Security Engine (SEC)
273 to offload cryptographic algorithm computation.
274
275 The Freescale SEC is present on PowerQUICC 'E' processors, such
276 as the MPC8349E and MPC8548E.
277
278 To compile this driver as a module, choose M here: the module
279 will be called talitos.
280
LEROY Christophe5b841a62015-04-17 16:32:03 +0200281config CRYPTO_DEV_TALITOS1
282 bool "SEC1 (SEC 1.0 and SEC Lite 1.2)"
283 depends on CRYPTO_DEV_TALITOS
284 depends on PPC_8xx || PPC_82xx
285 default y
286 help
287 Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0
288 found on MPC82xx or the Freescale Security Engine (SEC Lite)
289 version 1.2 found on MPC8xx
290
291config CRYPTO_DEV_TALITOS2
292 bool "SEC2+ (SEC version 2.0 or upper)"
293 depends on CRYPTO_DEV_TALITOS
294 default y if !PPC_8xx
295 help
296 Say 'Y' here to use the Freescale Security Engine (SEC)
297 version 2 and following as found on MPC83xx, MPC85xx, etc ...
298
Christian Hohnstaedt81bef012008-06-25 14:38:47 +0800299config CRYPTO_DEV_IXP4XX
300 tristate "Driver for IXP4xx crypto hardware acceleration"
Krzysztof Hałasa9665c522010-03-25 23:56:05 +0100301 depends on ARCH_IXP4XX && IXP4XX_QMGR && IXP4XX_NPE
Christian Hohnstaedt81bef012008-06-25 14:38:47 +0800302 select CRYPTO_DES
Herbert Xu596103c2015-06-17 14:58:24 +0800303 select CRYPTO_AEAD
Imre Kaloz090657e2008-07-13 20:12:11 +0800304 select CRYPTO_AUTHENC
Christian Hohnstaedt81bef012008-06-25 14:38:47 +0800305 select CRYPTO_BLKCIPHER
306 help
307 Driver for the IXP4xx NPE crypto engine.
308
James Hsiao049359d2009-02-05 16:18:13 +1100309config CRYPTO_DEV_PPC4XX
310 tristate "Driver AMCC PPC4xx crypto accelerator"
311 depends on PPC && 4xx
312 select CRYPTO_HASH
Christian Lampartera0aae822017-10-04 01:00:15 +0200313 select CRYPTO_AEAD
314 select CRYPTO_AES
315 select CRYPTO_CCM
Christian Lamparter98e87e32018-04-19 18:41:54 +0200316 select CRYPTO_CTR
Christian Lampartera0aae822017-10-04 01:00:15 +0200317 select CRYPTO_GCM
James Hsiao049359d2009-02-05 16:18:13 +1100318 select CRYPTO_BLKCIPHER
319 help
320 This option allows you to have support for AMCC crypto acceleration.
321
Christian Lamparter5343e672016-04-18 12:57:41 +0200322config HW_RANDOM_PPC4XX
323 bool "PowerPC 4xx generic true random number generator support"
324 depends on CRYPTO_DEV_PPC4XX && HW_RANDOM
325 default y
326 ---help---
327 This option provides the kernel-side support for the TRNG hardware
328 found in the security function of some PowerPC 4xx SoCs.
329
Tero Kristo74ed87e2017-05-24 10:35:26 +0300330config CRYPTO_DEV_OMAP
331 tristate "Support for OMAP crypto HW accelerators"
332 depends on ARCH_OMAP2PLUS
333 help
334 OMAP processors have various crypto HW accelerators. Select this if
335 you want to use the OMAP modules for any of the crypto algorithms.
336
337if CRYPTO_DEV_OMAP
338
Dmitry Kasatkin8628e7c2010-05-03 11:10:59 +0800339config CRYPTO_DEV_OMAP_SHAM
Lokesh Vutlaeaef7e32013-07-26 12:29:14 +0530340 tristate "Support for OMAP MD5/SHA1/SHA2 hw accelerator"
341 depends on ARCH_OMAP2PLUS
Dmitry Kasatkin8628e7c2010-05-03 11:10:59 +0800342 select CRYPTO_SHA1
343 select CRYPTO_MD5
Lokesh Vutlaeaef7e32013-07-26 12:29:14 +0530344 select CRYPTO_SHA256
345 select CRYPTO_SHA512
346 select CRYPTO_HMAC
Dmitry Kasatkin8628e7c2010-05-03 11:10:59 +0800347 help
Lokesh Vutlaeaef7e32013-07-26 12:29:14 +0530348 OMAP processors have MD5/SHA1/SHA2 hw accelerator. Select this if you
349 want to use the OMAP module for MD5/SHA1/SHA2 algorithms.
Dmitry Kasatkin8628e7c2010-05-03 11:10:59 +0800350
Dmitry Kasatkin537559a2010-09-03 19:16:02 +0800351config CRYPTO_DEV_OMAP_AES
352 tristate "Support for OMAP AES hw engine"
Joel Fernandes1bbf6432013-08-17 21:42:35 -0500353 depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP2PLUS
Dmitry Kasatkin537559a2010-09-03 19:16:02 +0800354 select CRYPTO_AES
Herbert Xu596103c2015-06-17 14:58:24 +0800355 select CRYPTO_BLKCIPHER
Baolin Wang05299002016-01-26 20:25:40 +0800356 select CRYPTO_ENGINE
Lokesh Vutla9fcb1912016-08-04 13:28:44 +0300357 select CRYPTO_CBC
358 select CRYPTO_ECB
359 select CRYPTO_CTR
Tero Kristoad18cc92017-05-24 10:35:31 +0300360 select CRYPTO_AEAD
Dmitry Kasatkin537559a2010-09-03 19:16:02 +0800361 help
362 OMAP processors have AES module accelerator. Select this if you
363 want to use the OMAP module for AES algorithms.
364
Joel Fernandes701d0f12014-02-14 10:49:47 -0600365config CRYPTO_DEV_OMAP_DES
Peter Meerwald97ee7ed2016-03-13 16:15:37 +0100366 tristate "Support for OMAP DES/3DES hw engine"
Joel Fernandes701d0f12014-02-14 10:49:47 -0600367 depends on ARCH_OMAP2PLUS
368 select CRYPTO_DES
Herbert Xu596103c2015-06-17 14:58:24 +0800369 select CRYPTO_BLKCIPHER
Baolin Wangf1b77aa2016-04-28 14:11:51 +0800370 select CRYPTO_ENGINE
Joel Fernandes701d0f12014-02-14 10:49:47 -0600371 help
372 OMAP processors have DES/3DES module accelerator. Select this if you
373 want to use the OMAP module for DES and 3DES algorithms. Currently
Peter Meerwald97ee7ed2016-03-13 16:15:37 +0100374 the ECB and CBC modes of operation are supported by the driver. Also
375 accesses made on unaligned boundaries are supported.
Joel Fernandes701d0f12014-02-14 10:49:47 -0600376
Tero Kristo74ed87e2017-05-24 10:35:26 +0300377endif # CRYPTO_DEV_OMAP
378
Jamie Ilesce921362011-02-21 16:43:21 +1100379config CRYPTO_DEV_PICOXCELL
380 tristate "Support for picoXcell IPSEC and Layer2 crypto engines"
Javier Martinez Canillas4f44d862017-01-02 14:06:57 -0300381 depends on (ARCH_PICOXCELL || COMPILE_TEST) && HAVE_CLK
Herbert Xu596103c2015-06-17 14:58:24 +0800382 select CRYPTO_AEAD
Jamie Ilesce921362011-02-21 16:43:21 +1100383 select CRYPTO_AES
384 select CRYPTO_AUTHENC
Herbert Xu596103c2015-06-17 14:58:24 +0800385 select CRYPTO_BLKCIPHER
Jamie Ilesce921362011-02-21 16:43:21 +1100386 select CRYPTO_DES
387 select CRYPTO_CBC
388 select CRYPTO_ECB
389 select CRYPTO_SEQIV
390 help
391 This option enables support for the hardware offload engines in the
392 Picochip picoXcell SoC devices. Select this for IPSEC ESP offload
393 and for 3gpp Layer 2 ciphering support.
394
395 Saying m here will build a module named pipcoxcell_crypto.
396
Javier Martin5de88752013-03-01 12:37:53 +0100397config CRYPTO_DEV_SAHARA
398 tristate "Support for SAHARA crypto accelerator"
Paul Bolle74d24d82013-05-12 13:57:19 +0200399 depends on ARCH_MXC && OF
Javier Martin5de88752013-03-01 12:37:53 +0100400 select CRYPTO_BLKCIPHER
401 select CRYPTO_AES
402 select CRYPTO_ECB
403 help
404 This option enables support for the SAHARA HW crypto accelerator
405 found in some Freescale i.MX chips.
406
Steffen Trumtrard293b642016-04-12 11:04:26 +0200407config CRYPTO_DEV_MXC_SCC
408 tristate "Support for Freescale Security Controller (SCC)"
409 depends on ARCH_MXC && OF
410 select CRYPTO_BLKCIPHER
411 select CRYPTO_DES
412 help
413 This option enables support for the Security Controller (SCC)
414 found in Freescale i.MX25 chips.
415
Krzysztof Kozlowskic46ea132017-04-11 20:08:35 +0200416config CRYPTO_DEV_EXYNOS_RNG
417 tristate "EXYNOS HW pseudo random number generator support"
418 depends on ARCH_EXYNOS || COMPILE_TEST
419 depends on HAS_IOMEM
420 select CRYPTO_RNG
421 ---help---
422 This driver provides kernel-side support through the
423 cryptographic API for the pseudo random number generator hardware
424 found on Exynos SoCs.
425
426 To compile this driver as a module, choose M here: the
427 module will be called exynos-rng.
428
429 If unsure, say Y.
430
Vladimir Zapolskiya49e4902011-04-08 20:40:51 +0800431config CRYPTO_DEV_S5P
Naveen Krishna Chatradhie922e962014-05-08 21:58:14 +0800432 tristate "Support for Samsung S5PV210/Exynos crypto accelerator"
Krzysztof Kozlowskidc1d9de2016-03-14 13:20:18 +0900433 depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
Geert Uytterhoevenee1b23d2018-04-17 19:49:03 +0200434 depends on HAS_IOMEM
Vladimir Zapolskiya49e4902011-04-08 20:40:51 +0800435 select CRYPTO_AES
Vladimir Zapolskiya49e4902011-04-08 20:40:51 +0800436 select CRYPTO_BLKCIPHER
437 help
438 This option allows you to have support for S5P crypto acceleration.
Naveen Krishna Chatradhie922e962014-05-08 21:58:14 +0800439 Select this to offload Samsung S5PV210 or S5PC110, Exynos from AES
Vladimir Zapolskiya49e4902011-04-08 20:40:51 +0800440 algorithms execution.
441
Kamil Koniecznyc2afad62017-10-25 17:27:35 +0200442config CRYPTO_DEV_EXYNOS_HASH
443 bool "Support for Samsung Exynos HASH accelerator"
444 depends on CRYPTO_DEV_S5P
445 depends on !CRYPTO_DEV_EXYNOS_RNG && CRYPTO_DEV_EXYNOS_RNG!=m
446 select CRYPTO_SHA1
447 select CRYPTO_MD5
448 select CRYPTO_SHA256
449 help
450 Select this to offload Exynos from HASH MD5/SHA1/SHA256.
451 This will select software SHA1, MD5 and SHA256 as they are
452 needed for small and zero-size messages.
453 HASH algorithms will be disabled if EXYNOS_RNG
454 is enabled due to hw conflict.
455
Kent Yoderaef7b312012-04-12 05:39:26 +0000456config CRYPTO_DEV_NX
Dan Streetman7011a122015-05-07 13:49:17 -0400457 bool "Support for IBM PowerPC Nest (NX) cryptographic acceleration"
458 depends on PPC64
Kent Yoderaef7b312012-04-12 05:39:26 +0000459 help
Dan Streetman7011a122015-05-07 13:49:17 -0400460 This enables support for the NX hardware cryptographic accelerator
461 coprocessor that is in IBM PowerPC P7+ or later processors. This
462 does not actually enable any drivers, it only allows you to select
463 which acceleration type (encryption and/or compression) to enable.
Seth Jennings322cacc2012-07-19 09:42:38 -0500464
465if CRYPTO_DEV_NX
466 source "drivers/crypto/nx/Kconfig"
467endif
Kent Yoderaef7b312012-04-12 05:39:26 +0000468
Andreas Westin2789c082012-04-30 10:11:17 +0200469config CRYPTO_DEV_UX500
470 tristate "Driver for ST-Ericsson UX500 crypto hardware acceleration"
471 depends on ARCH_U8500
Andreas Westin2789c082012-04-30 10:11:17 +0200472 help
473 Driver for ST-Ericsson UX500 crypto engine.
474
475if CRYPTO_DEV_UX500
476 source "drivers/crypto/ux500/Kconfig"
477endif # if CRYPTO_DEV_UX500
478
Cyrille Pitchen89a82ef2017-01-26 17:07:56 +0100479config CRYPTO_DEV_ATMEL_AUTHENC
480 tristate "Support for Atmel IPSEC/SSL hw accelerator"
Arnd Bergmannceb4afb2017-02-06 13:32:15 +0100481 depends on ARCH_AT91 || COMPILE_TEST
Cyrille Pitchen89a82ef2017-01-26 17:07:56 +0100482 select CRYPTO_AUTHENC
483 select CRYPTO_DEV_ATMEL_AES
484 select CRYPTO_DEV_ATMEL_SHA
485 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
Nicolas Royerbd3c7b52012-07-01 19:19:44 +0200496 select CRYPTO_BLKCIPHER
Nicolas Royerbd3c7b52012-07-01 19:19:44 +0200497 help
498 Some Atmel processors have AES hw accelerator.
499 Select this if you want to use the Atmel module for
500 AES algorithms.
501
502 To compile this driver as a module, choose M here: the module
503 will be called atmel-aes.
504
Nicolas Royer13802002012-07-01 19:19:45 +0200505config CRYPTO_DEV_ATMEL_TDES
506 tristate "Support for Atmel DES/TDES hw accelerator"
Arnd Bergmannceb4afb2017-02-06 13:32:15 +0100507 depends on ARCH_AT91 || COMPILE_TEST
Nicolas Royer13802002012-07-01 19:19:45 +0200508 select CRYPTO_DES
Nicolas Royer13802002012-07-01 19:19:45 +0200509 select CRYPTO_BLKCIPHER
510 help
511 Some Atmel processors have DES/TDES hw accelerator.
512 Select this if you want to use the Atmel module for
513 DES/TDES algorithms.
514
515 To compile this driver as a module, choose M here: the module
516 will be called atmel-tdes.
517
Nicolas Royerebc82ef2012-07-01 19:19:46 +0200518config CRYPTO_DEV_ATMEL_SHA
Nicolas Royerd4905b32013-02-20 17:10:26 +0100519 tristate "Support for Atmel SHA hw accelerator"
Arnd Bergmannceb4afb2017-02-06 13:32:15 +0100520 depends on ARCH_AT91 || COMPILE_TEST
Herbert Xu596103c2015-06-17 14:58:24 +0800521 select CRYPTO_HASH
Nicolas Royerebc82ef2012-07-01 19:19:46 +0200522 help
Nicolas Royerd4905b32013-02-20 17:10:26 +0100523 Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512
524 hw accelerator.
Nicolas Royerebc82ef2012-07-01 19:19:46 +0200525 Select this if you want to use the Atmel module for
Nicolas Royerd4905b32013-02-20 17:10:26 +0100526 SHA1/SHA224/SHA256/SHA384/SHA512 algorithms.
Nicolas Royerebc82ef2012-07-01 19:19:46 +0200527
528 To compile this driver as a module, choose M here: the module
529 will be called atmel-sha.
530
Tudor-Dan Ambarus11105692017-07-05 13:07:59 +0300531config CRYPTO_DEV_ATMEL_ECC
532 tristate "Support for Microchip / Atmel ECC hw accelerator"
533 depends on ARCH_AT91 || COMPILE_TEST
534 depends on I2C
535 select CRYPTO_ECDH
536 select CRC16
537 help
538 Microhip / Atmel ECC hw accelerator.
539 Select this if you want to use the Microchip / Atmel module for
540 ECDH algorithm.
541
542 To compile this driver as a module, choose M here: the module
543 will be called atmel-ecc.
544
Tom Lendackyf1147662013-11-12 11:46:51 -0600545config CRYPTO_DEV_CCP
Brijesh Singh720419f2017-07-06 09:59:14 -0500546 bool "Support for AMD Secure Processor"
Tom Lendacky6c506342015-02-03 13:07:29 -0600547 depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM
Tom Lendackyf1147662013-11-12 11:46:51 -0600548 help
Brijesh Singh720419f2017-07-06 09:59:14 -0500549 The AMD Secure Processor provides support for the Cryptographic Coprocessor
550 (CCP) and the Platform Security Processor (PSP) devices.
Tom Lendackyf1147662013-11-12 11:46:51 -0600551
552if CRYPTO_DEV_CCP
553 source "drivers/crypto/ccp/Kconfig"
554endif
555
Marek Vasut15b59e72013-12-10 20:26:21 +0100556config CRYPTO_DEV_MXS_DCP
557 tristate "Support for Freescale MXS DCP"
Fabio Estevama2712e62015-09-02 12:05:18 -0300558 depends on (ARCH_MXS || ARCH_MXC)
Arnd Bergmanndc97fa02015-10-12 15:52:34 +0200559 select STMP_DEVICE
Marek Vasut15b59e72013-12-10 20:26:21 +0100560 select CRYPTO_CBC
561 select CRYPTO_ECB
562 select CRYPTO_AES
563 select CRYPTO_BLKCIPHER
Herbert Xu596103c2015-06-17 14:58:24 +0800564 select CRYPTO_HASH
Marek Vasut15b59e72013-12-10 20:26:21 +0100565 help
566 The Freescale i.MX23/i.MX28 has SHA1/SHA256 and AES128 CBC/ECB
567 co-processor on the die.
568
569 To compile this driver as a module, choose M here: the module
570 will be called mxs-dcp.
571
Tadeusz Strukcea40012014-06-05 13:44:39 -0700572source "drivers/crypto/qat/Kconfig"
George Cherian62ad8b52017-02-07 14:51:15 +0000573source "drivers/crypto/cavium/cpt/Kconfig"
Srikanth Jampala14fa93c2017-05-30 17:28:01 +0530574source "drivers/crypto/cavium/nitrox/Kconfig"
Stanimir Varbanovc6727522014-06-25 19:28:58 +0300575
Mahipal Challa640035a2017-02-15 10:45:08 +0530576config CRYPTO_DEV_CAVIUM_ZIP
577 tristate "Cavium ZIP driver"
578 depends on PCI && 64BIT && (ARM64 || COMPILE_TEST)
579 ---help---
580 Select this option if you want to enable compression/decompression
581 acceleration on Cavium's ARM based SoCs
582
Stanimir Varbanovc6727522014-06-25 19:28:58 +0300583config CRYPTO_DEV_QCE
584 tristate "Qualcomm crypto engine accelerator"
Geert Uytterhoevenee1b23d2018-04-17 19:49:03 +0200585 depends on ARCH_QCOM || COMPILE_TEST
586 depends on HAS_IOMEM
Stanimir Varbanovc6727522014-06-25 19:28:58 +0300587 select CRYPTO_AES
588 select CRYPTO_DES
589 select CRYPTO_ECB
590 select CRYPTO_CBC
591 select CRYPTO_XTS
592 select CRYPTO_CTR
Stanimir Varbanovc6727522014-06-25 19:28:58 +0300593 select CRYPTO_BLKCIPHER
594 help
595 This driver supports Qualcomm crypto engine accelerator
596 hardware. To compile this driver as a module, choose M here. The
597 module will be called qcrypto.
598
Vinod Koulceec5f52018-07-16 11:20:24 +0530599config CRYPTO_DEV_QCOM_RNG
600 tristate "Qualcomm Random Number Generator Driver"
601 depends on ARCH_QCOM || COMPILE_TEST
602 select CRYPTO_RNG
603 help
604 This driver provides support for the Random Number
605 Generator hardware found on Qualcomm SoCs.
606
607 To compile this driver as a module, choose M here. The
608 module will be called qcom-rng. If unsure, say N.
609
Leonidas S. Barbosad2e3ae62015-02-06 14:59:48 -0200610config CRYPTO_DEV_VMX
611 bool "Support for VMX cryptographic acceleration instructions"
Michael Ellermanf1ab4282015-09-09 18:22:35 +1000612 depends on PPC64 && VSX
Leonidas S. Barbosad2e3ae62015-02-06 14:59:48 -0200613 help
614 Support for VMX cryptographic acceleration instructions.
615
616source "drivers/crypto/vmx/Kconfig"
617
James Hartleyd358f1a2015-03-12 23:17:26 +0000618config CRYPTO_DEV_IMGTEC_HASH
James Hartleyd358f1a2015-03-12 23:17:26 +0000619 tristate "Imagination Technologies hardware hash accelerator"
Geert Uytterhoeven8c98ebd2015-04-23 20:03:58 +0200620 depends on MIPS || COMPILE_TEST
James Hartleyd358f1a2015-03-12 23:17:26 +0000621 select CRYPTO_MD5
622 select CRYPTO_SHA1
James Hartleyd358f1a2015-03-12 23:17:26 +0000623 select CRYPTO_SHA256
624 select CRYPTO_HASH
625 help
626 This driver interfaces with the Imagination Technologies
627 hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
628 hashing algorithms.
629
LABBE Corentin6298e942015-07-17 16:39:41 +0200630config CRYPTO_DEV_SUN4I_SS
631 tristate "Support for Allwinner Security System cryptographic accelerator"
Andre Przywaraf823ab92016-02-01 17:39:21 +0000632 depends on ARCH_SUNXI && !64BIT
LABBE Corentin6298e942015-07-17 16:39:41 +0200633 select CRYPTO_MD5
634 select CRYPTO_SHA1
635 select CRYPTO_AES
636 select CRYPTO_DES
637 select CRYPTO_BLKCIPHER
638 help
639 Some Allwinner SoC have a crypto accelerator named
640 Security System. Select this if you want to use it.
641 The Security System handle AES/DES/3DES ciphers in CBC mode
642 and SHA1 and MD5 hash algorithms.
643
644 To compile this driver as a module, choose M here: the module
645 will be called sun4i-ss.
646
Corentin LABBEb8ae5c72017-07-03 20:48:48 +0200647config CRYPTO_DEV_SUN4I_SS_PRNG
648 bool "Support for Allwinner Security System PRNG"
649 depends on CRYPTO_DEV_SUN4I_SS
650 select CRYPTO_RNG
651 help
652 Select this option if you want to provide kernel-side support for
653 the Pseudo-Random Number Generator found in the Security System.
654
Zain Wang433cd2c2015-11-25 13:43:32 +0800655config CRYPTO_DEV_ROCKCHIP
656 tristate "Rockchip's Cryptographic Engine driver"
657 depends on OF && ARCH_ROCKCHIP
658 select CRYPTO_AES
659 select CRYPTO_DES
Zain Wangbfd927f2016-02-16 10:15:01 +0800660 select CRYPTO_MD5
661 select CRYPTO_SHA1
662 select CRYPTO_SHA256
663 select CRYPTO_HASH
Zain Wang433cd2c2015-11-25 13:43:32 +0800664 select CRYPTO_BLKCIPHER
665
666 help
667 This driver interfaces with the hardware crypto accelerator.
668 Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
669
Ryder Lee785e5c62016-12-19 10:20:44 +0800670config CRYPTO_DEV_MEDIATEK
671 tristate "MediaTek's EIP97 Cryptographic Engine driver"
Arnd Bergmann7dee9f62017-01-11 14:50:19 +0100672 depends on (ARM && ARCH_MEDIATEK) || COMPILE_TEST
Ryder Lee785e5c62016-12-19 10:20:44 +0800673 select CRYPTO_AES
Ryder Leed03f7b02017-01-20 13:41:15 +0800674 select CRYPTO_AEAD
Ryder Lee785e5c62016-12-19 10:20:44 +0800675 select CRYPTO_BLKCIPHER
Ryder Leed03f7b02017-01-20 13:41:15 +0800676 select CRYPTO_CTR
Arnd Bergmann7dee9f62017-01-11 14:50:19 +0100677 select CRYPTO_SHA1
678 select CRYPTO_SHA256
679 select CRYPTO_SHA512
Ryder Lee785e5c62016-12-19 10:20:44 +0800680 select CRYPTO_HMAC
681 help
682 This driver allows you to utilize the hardware crypto accelerator
683 EIP97 which can be found on the MT7623 MT2701, MT8521p, etc ....
684 Select this if you want to use it for AES/SHA1/SHA2 algorithms.
685
Hariprasad Shenai02038fd2016-08-17 12:33:06 +0530686source "drivers/crypto/chelsio/Kconfig"
687
Gongleidbaf0622016-12-15 10:03:16 +0800688source "drivers/crypto/virtio/Kconfig"
689
Rob Rice9d12ba82017-02-03 12:55:33 -0500690config CRYPTO_DEV_BCM_SPU
691 tristate "Broadcom symmetric crypto/hash acceleration support"
692 depends on ARCH_BCM_IPROC
raveendra padasalagiefc856e2017-07-11 15:50:06 +0530693 depends on MAILBOX
Rob Rice9d12ba82017-02-03 12:55:33 -0500694 default m
695 select CRYPTO_DES
696 select CRYPTO_MD5
697 select CRYPTO_SHA1
698 select CRYPTO_SHA256
699 select CRYPTO_SHA512
700 help
701 This driver provides support for Broadcom crypto acceleration using the
702 Secure Processing Unit (SPU). The SPU driver registers ablkcipher,
703 ahash, and aead algorithms with the kernel cryptographic API.
704
Fabien DESSENNEb51dbe92017-03-21 16:13:28 +0100705source "drivers/crypto/stm32/Kconfig"
706
Antoine Ténart1b44c5a2017-05-24 16:10:34 +0200707config CRYPTO_DEV_SAFEXCEL
708 tristate "Inside Secure's SafeXcel cryptographic engine driver"
Geert Uytterhoevenee1b23d2018-04-17 19:49:03 +0200709 depends on OF
Antoine Ténart1b44c5a2017-05-24 16:10:34 +0200710 depends on (ARM64 && ARCH_MVEBU) || (COMPILE_TEST && 64BIT)
711 select CRYPTO_AES
Antoine Tenartf6beaea2018-05-14 15:11:02 +0200712 select CRYPTO_AUTHENC
Antoine Ténart1b44c5a2017-05-24 16:10:34 +0200713 select CRYPTO_BLKCIPHER
Ofer Heifetza7dea8c2018-06-28 17:21:55 +0200714 select CRYPTO_DES
Antoine Ténart1b44c5a2017-05-24 16:10:34 +0200715 select CRYPTO_HASH
716 select CRYPTO_HMAC
Ofer Heifetz293f89c2018-06-28 17:21:53 +0200717 select CRYPTO_MD5
Antoine Ténart1b44c5a2017-05-24 16:10:34 +0200718 select CRYPTO_SHA1
719 select CRYPTO_SHA256
720 select CRYPTO_SHA512
721 help
722 This driver interfaces with the SafeXcel EIP-197 cryptographic engine
723 designed by Inside Secure. Select this if you want to use CBC/ECB
724 chain mode, AES cipher mode and SHA1/SHA224/SHA256/SHA512 hash
725 algorithms.
726
Lars Perssona21eb942017-08-10 14:53:53 +0200727config CRYPTO_DEV_ARTPEC6
728 tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."
729 depends on ARM && (ARCH_ARTPEC || COMPILE_TEST)
Lars Perssona21eb942017-08-10 14:53:53 +0200730 depends on OF
731 select CRYPTO_AEAD
732 select CRYPTO_AES
733 select CRYPTO_ALGAPI
734 select CRYPTO_BLKCIPHER
735 select CRYPTO_CTR
736 select CRYPTO_HASH
737 select CRYPTO_SHA1
738 select CRYPTO_SHA256
Lars Perssona21eb942017-08-10 14:53:53 +0200739 select CRYPTO_SHA512
740 help
741 Enables the driver for the on-chip crypto accelerator
742 of Axis ARTPEC SoCs.
743
744 To compile this driver as a module, choose M here.
745
Gilad Ben-Yossef4c3f9722018-01-22 09:27:00 +0000746config CRYPTO_DEV_CCREE
747 tristate "Support for ARM TrustZone CryptoCell family of security processors"
748 depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA
749 default n
750 select CRYPTO_HASH
751 select CRYPTO_BLKCIPHER
752 select CRYPTO_DES
753 select CRYPTO_AEAD
754 select CRYPTO_AUTHENC
755 select CRYPTO_SHA1
756 select CRYPTO_MD5
757 select CRYPTO_SHA256
758 select CRYPTO_SHA512
759 select CRYPTO_HMAC
760 select CRYPTO_AES
761 select CRYPTO_CBC
762 select CRYPTO_ECB
763 select CRYPTO_CTR
764 select CRYPTO_XTS
765 help
Gilad Ben-Yossef27b3b222018-02-19 14:51:23 +0000766 Say 'Y' to enable a driver for the REE interface of the Arm
767 TrustZone CryptoCell family of processors. Currently the
768 CryptoCell 712, 710 and 630 are supported.
Gilad Ben-Yossef4c3f9722018-01-22 09:27:00 +0000769 Choose this if you wish to use hardware acceleration of
770 cryptographic operations on the system REE.
771 If unsure say Y.
772
Jonathan Cameron915e4e82018-07-23 16:49:54 +0100773source "drivers/crypto/hisilicon/Kconfig"
774
Jan Engelhardtb5114312007-07-15 23:39:36 -0700775endif # CRYPTO_HW