xref: /linux/drivers/crypto/Kconfig (revision 2ecdf5c9910e20f73639bc322f0518a3439d17c0)
1# SPDX-License-Identifier: GPL-2.0-only
2
3menuconfig CRYPTO_HW
4	bool "Hardware crypto devices"
5	default y
6	help
7	  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.
11
12if CRYPTO_HW
13
14source "drivers/crypto/allwinner/Kconfig"
15
16config CRYPTO_DEV_PADLOCK
17	tristate "Support for VIA PadLock ACE"
18	depends on X86 && !UML
19	help
20	  Some VIA processors come with an integrated crypto engine
21	  (so called VIA PadLock ACE, Advanced Cryptography Engine)
22	  that provides instructions for very fast cryptographic
23	  operations with supported algorithms.
24
25	  The instructions are used only when the CPU supports them.
26	  Otherwise software encryption is used.
27
28config CRYPTO_DEV_PADLOCK_AES
29	tristate "PadLock driver for AES algorithm"
30	depends on CRYPTO_DEV_PADLOCK
31	select CRYPTO_SKCIPHER
32	select CRYPTO_LIB_AES
33	help
34	  Use VIA PadLock for AES algorithm.
35
36	  Available in VIA C3 and newer CPUs.
37
38	  If unsure say M. The compiled module will be
39	  called padlock-aes.
40
41config CRYPTO_DEV_PADLOCK_SHA
42	tristate "PadLock driver for SHA1 and SHA256 algorithms"
43	depends on CRYPTO_DEV_PADLOCK
44	select CRYPTO_HASH
45	select CRYPTO_SHA1
46	select CRYPTO_SHA256
47	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
53	  called padlock-sha.
54
55config CRYPTO_DEV_GEODE
56	tristate "Support for the Geode LX AES engine"
57	depends on X86_32 && PCI
58	select CRYPTO_ALGAPI
59	select CRYPTO_SKCIPHER
60	help
61	  Say 'Y' here to use the AMD Geode LX processor on-board AES
62	  engine for the CryptoAPI AES algorithm.
63
64	  To compile this driver as a module, choose M here: the module
65	  will be called geode-aes.
66
67config ZCRYPT
68	tristate "Support for s390 cryptographic adapters"
69	depends on S390
70	depends on AP
71	select HW_RANDOM
72	help
73	  Select this option if you want to enable support for
74	  s390 cryptographic adapters like Crypto Express 4 up
75	  to 8 in Coprocessor (CEXxC), EP11 Coprocessor (CEXxP)
76	  or Accelerator (CEXxA) mode.
77
78config PKEY
79	tristate "Kernel API for protected key handling"
80	depends on S390
81	help
82	  With this option enabled the pkey kernel modules provide an API
83	  for creation and handling of protected keys. Other parts of the
84	  kernel or userspace applications may use these functions.
85
86	  The protected key support is distributed into:
87	  - A pkey base and API kernel module (pkey.ko) which offers the
88	    infrastructure for the pkey handler kernel modules, the ioctl
89	    and the sysfs API and the in-kernel API to the crypto cipher
90	    implementations using protected key.
91	  - A pkey pckmo kernel module (pkey-pckmo.ko) which is automatically
92	    loaded when pckmo support (that is generation of protected keys
93	    from clear key values) is available.
94	  - A pkey CCA kernel module (pkey-cca.ko) which is automatically
95	    loaded when a CEX crypto card is available.
96	  - A pkey EP11 kernel module (pkey-ep11.ko) which is automatically
97	    loaded when a CEX crypto card is available.
98	  - A pkey UV kernel module (pkey-uv.ko) which is automatically
99	    loaded when the Ultravisor feature is available within a
100	    protected execution environment.
101
102	  Select this option if you want to enable the kernel and userspace
103	  API for protected key handling.
104
105config PKEY_CCA
106	tristate "PKEY CCA support handler"
107	depends on PKEY
108	depends on ZCRYPT
109	help
110	  This is the CCA support handler for deriving protected keys
111	  from CCA (secure) keys. Also this handler provides an alternate
112	  way to make protected keys from clear key values.
113
114	  The PKEY CCA support handler needs a Crypto Express card (CEX)
115	  in CCA mode.
116
117	  If you have selected the PKEY option then you should also enable
118	  this option unless you are sure you never need to derive protected
119	  keys from CCA key material.
120
121config PKEY_EP11
122	tristate "PKEY EP11 support handler"
123	depends on PKEY
124	depends on ZCRYPT
125	help
126	  This is the EP11 support handler for deriving protected keys
127	  from EP11 (secure) keys. Also this handler provides an alternate
128	  way to make protected keys from clear key values.
129
130	  The PKEY EP11 support handler needs a Crypto Express card (CEX)
131	  in EP11 mode.
132
133	  If you have selected the PKEY option then you should also enable
134	  this option unless you are sure you never need to derive protected
135	  keys from EP11 key material.
136
137config PKEY_PCKMO
138	tristate "PKEY PCKMO support handler"
139	depends on PKEY
140	help
141	  This is the PCKMO support handler for deriving protected keys
142	  from clear key values via invoking the PCKMO instruction.
143
144	  The PCKMO instruction can be enabled and disabled in the crypto
145	  settings at the LPAR profile. This handler checks for availability
146	  during initialization and if build as a kernel module unloads
147	  itself if PCKMO is disabled.
148
149	  The PCKMO way of deriving protected keys from clear key material
150	  is especially used during self test of protected key ciphers like
151	  PAES but the CCA and EP11 handler provide alternate ways to
152	  generate protected keys from clear key values.
153
154	  If you have selected the PKEY option then you should also enable
155	  this option unless you are sure you never need to derive protected
156	  keys from clear key values directly via PCKMO.
157
158config PKEY_UV
159	tristate "PKEY UV support handler"
160	depends on PKEY
161	depends on S390_UV_UAPI
162	help
163	  This is the PKEY Ultravisor support handler for deriving protected
164	  keys from secrets stored within the Ultravisor (UV).
165
166	  This module works together with the UV device and supports the
167	  retrieval of protected keys from secrets stored within the
168	  UV firmware layer. This service is only available within
169	  a protected execution guest and thus this module will fail upon
170	  modprobe if no protected execution environment is detected.
171
172	  Enable this option if you intend to run this kernel with an KVM
173	  guest with protected execution and you want to use UV retrievable
174	  secrets via PKEY API.
175
176config CRYPTO_PAES_S390
177	tristate "PAES cipher algorithms"
178	depends on S390
179	depends on ZCRYPT
180	depends on PKEY
181	select CRYPTO_ALGAPI
182	select CRYPTO_SKCIPHER
183	select CRYPTO_ENGINE
184	help
185	  This is the s390 hardware accelerated implementation of the
186	  AES cipher algorithms for use with protected key.
187
188	  Select this option if you want to use the paes cipher
189	  for example to use protected key encrypted devices.
190
191config CRYPTO_PHMAC_S390
192	tristate "PHMAC cipher algorithms"
193	depends on S390
194	depends on PKEY
195	select CRYPTO_HASH
196	select CRYPTO_ENGINE
197	help
198	  This is the s390 hardware accelerated implementation of the
199	  protected key HMAC support for SHA224, SHA256, SHA384 and SHA512.
200
201	  Select this option if you want to use the phmac digests
202	  for example to use dm-integrity with secure/protected keys.
203
204config S390_PRNG
205	tristate "Pseudo random number generator device driver"
206	depends on S390
207	default "m"
208	help
209	  Select this option if you want to use the s390 pseudo random number
210	  generator. The PRNG is part of the cryptographic processor functions
211	  and uses triple-DES to generate secure random numbers like the
212	  ANSI X9.17 standard. User-space programs access the
213	  pseudo-random-number device through the char device /dev/prandom.
214
215	  It is available as of z9.
216
217config CRYPTO_DEV_SL3516
218	tristate "Storlink SL3516 crypto offloader"
219	depends on ARCH_GEMINI || COMPILE_TEST
220	depends on HAS_IOMEM && PM
221	select CRYPTO_SKCIPHER
222	select CRYPTO_ENGINE
223	select CRYPTO_ECB
224	select CRYPTO_AES
225	select HW_RANDOM
226	help
227	  This option allows you to have support for SL3516 crypto offloader.
228
229config CRYPTO_DEV_SL3516_DEBUG
230	bool "Enable SL3516 stats"
231	depends on CRYPTO_DEV_SL3516
232	depends on DEBUG_FS
233	help
234	  Say y to enable SL3516 debug stats.
235	  This will create /sys/kernel/debug/sl3516/stats for displaying
236	  the number of requests per algorithm and other internal stats.
237
238config CRYPTO_DEV_HIFN_795X
239	tristate "Driver HIFN 795x crypto accelerator chips"
240	select CRYPTO_LIB_DES
241	select CRYPTO_SKCIPHER
242	select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG
243	depends on PCI
244	depends on !ARCH_DMA_ADDR_T_64BIT
245	help
246	  This option allows you to have support for HIFN 795x crypto adapters.
247
248config CRYPTO_DEV_HIFN_795X_RNG
249	bool "HIFN 795x random number generator"
250	depends on CRYPTO_DEV_HIFN_795X
251	help
252	  Select this option if you want to enable the random number generator
253	  on the HIFN 795x crypto adapters.
254
255source "drivers/crypto/caam/Kconfig"
256
257config CRYPTO_DEV_TALITOS
258	tristate "Talitos Freescale Security Engine (SEC)"
259	select CRYPTO_AEAD
260	select CRYPTO_AUTHENC
261	select CRYPTO_SKCIPHER
262	select CRYPTO_HASH
263	select CRYPTO_LIB_DES
264	select HW_RANDOM
265	depends on FSL_SOC
266	help
267	  Say 'Y' here to use the Freescale Security Engine (SEC)
268	  to offload cryptographic algorithm computation.
269
270	  The Freescale SEC is present on PowerQUICC 'E' processors, such
271	  as the MPC8349E and MPC8548E.
272
273	  To compile this driver as a module, choose M here: the module
274	  will be called talitos.
275
276config CRYPTO_DEV_TALITOS1
277	bool "SEC1 (SEC 1.0 and SEC Lite 1.2)"
278	depends on CRYPTO_DEV_TALITOS
279	depends on PPC_8xx || PPC_82xx
280	default y
281	help
282	  Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0
283	  found on MPC82xx or the Freescale Security Engine (SEC Lite)
284	  version 1.2 found on MPC8xx
285
286config CRYPTO_DEV_TALITOS2
287	bool "SEC2+ (SEC version 2.0 or upper)"
288	depends on CRYPTO_DEV_TALITOS
289	default y if !PPC_8xx
290	help
291	  Say 'Y' here to use the Freescale Security Engine (SEC)
292	  version 2 and following as found on MPC83xx, MPC85xx, etc ...
293
294config CRYPTO_DEV_PPC4XX
295	tristate "Driver AMCC PPC4xx crypto accelerator"
296	depends on PPC && 4xx
297	select CRYPTO_HASH
298	select CRYPTO_AEAD
299	select CRYPTO_AES
300	select CRYPTO_LIB_AES
301	select CRYPTO_CCM
302	select CRYPTO_CTR
303	select CRYPTO_GCM
304	select CRYPTO_SKCIPHER
305	help
306	  This option allows you to have support for AMCC crypto acceleration.
307
308config HW_RANDOM_PPC4XX
309	bool "PowerPC 4xx generic true random number generator support"
310	depends on CRYPTO_DEV_PPC4XX && HW_RANDOM=y
311	default y
312	help
313	 This option provides the kernel-side support for the TRNG hardware
314	 found in the security function of some PowerPC 4xx SoCs.
315
316config CRYPTO_DEV_OMAP
317	tristate "Support for OMAP crypto HW accelerators"
318	depends on ARCH_OMAP2PLUS || COMPILE_TEST
319	help
320	  OMAP processors have various crypto HW accelerators. Select this if
321	  you want to use the OMAP modules for any of the crypto algorithms.
322
323if CRYPTO_DEV_OMAP
324
325config CRYPTO_DEV_OMAP_SHAM
326	tristate "Support for OMAP MD5/SHA1/SHA2 hw accelerator"
327	depends on ARCH_OMAP2PLUS
328	select CRYPTO_ENGINE
329	select CRYPTO_SHA1
330	select CRYPTO_MD5
331	select CRYPTO_SHA256
332	select CRYPTO_SHA512
333	select CRYPTO_HMAC
334	help
335	  OMAP processors have MD5/SHA1/SHA2 hw accelerator. Select this if you
336	  want to use the OMAP module for MD5/SHA1/SHA2 algorithms.
337
338config CRYPTO_DEV_OMAP_AES
339	tristate "Support for OMAP AES hw engine"
340	depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP2PLUS
341	select CRYPTO_AES
342	select CRYPTO_SKCIPHER
343	select CRYPTO_ENGINE
344	select CRYPTO_CBC
345	select CRYPTO_ECB
346	select CRYPTO_CTR
347	select CRYPTO_AEAD
348	help
349	  OMAP processors have AES module accelerator. Select this if you
350	  want to use the OMAP module for AES algorithms.
351
352config CRYPTO_DEV_OMAP_DES
353	tristate "Support for OMAP DES/3DES hw engine"
354	depends on ARCH_OMAP2PLUS || COMPILE_TEST
355	select CRYPTO_LIB_DES
356	select CRYPTO_SKCIPHER
357	select CRYPTO_ENGINE
358	help
359	  OMAP processors have DES/3DES module accelerator. Select this if you
360	  want to use the OMAP module for DES and 3DES algorithms. Currently
361	  the ECB and CBC modes of operation are supported by the driver. Also
362	  accesses made on unaligned boundaries are supported.
363
364endif # CRYPTO_DEV_OMAP
365
366config CRYPTO_DEV_SAHARA
367	tristate "Support for SAHARA crypto accelerator"
368	depends on ARCH_MXC && OF
369	select CRYPTO_SKCIPHER
370	select CRYPTO_AES
371	select CRYPTO_ECB
372	select CRYPTO_ENGINE
373	help
374	  This option enables support for the SAHARA HW crypto accelerator
375	  found in some Freescale i.MX chips.
376
377config CRYPTO_DEV_S5P
378	tristate "Support for Samsung S5PV210/Exynos crypto accelerator"
379	depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
380	depends on HAS_IOMEM
381	select CRYPTO_AES
382	select CRYPTO_SKCIPHER
383	help
384	  This option allows you to have support for S5P crypto acceleration.
385	  Select this to offload Samsung S5PV210 or S5PC110, Exynos from AES
386	  algorithms execution.
387
388config CRYPTO_DEV_EXYNOS_HASH
389	bool "Support for Samsung Exynos HASH accelerator"
390	depends on CRYPTO_DEV_S5P
391	select CRYPTO_SHA1
392	select CRYPTO_MD5
393	select CRYPTO_SHA256
394	help
395	  Select this to offload Exynos from HASH MD5/SHA1/SHA256.
396	  This will select software SHA1, MD5 and SHA256 as they are
397	  needed for small and zero-size messages.
398
399config CRYPTO_DEV_NX
400	bool "Support for IBM PowerPC Nest (NX) cryptographic acceleration"
401	depends on PPC64
402	help
403	  This enables support for the NX hardware cryptographic accelerator
404	  coprocessor that is in IBM PowerPC P7+ or later processors.  This
405	  does not actually enable any drivers, it only allows you to select
406	  which acceleration type (encryption and/or compression) to enable.
407
408if CRYPTO_DEV_NX
409	source "drivers/crypto/nx/Kconfig"
410endif
411
412config CRYPTO_DEV_ATMEL_AUTHENC
413	bool "Support for Atmel IPSEC/SSL hw accelerator"
414	depends on ARCH_AT91 || COMPILE_TEST
415	depends on CRYPTO_DEV_ATMEL_AES
416	help
417	  Some Atmel processors can combine the AES and SHA hw accelerators
418	  to enhance support of IPSEC/SSL.
419	  Select this if you want to use the Atmel modules for
420	  authenc(hmac(shaX),Y(cbc)) algorithms.
421
422config CRYPTO_DEV_ATMEL_AES
423	tristate "Support for Atmel AES hw accelerator"
424	depends on ARCH_MICROCHIP || COMPILE_TEST
425	select CRYPTO_AES
426	select CRYPTO_AEAD
427	select CRYPTO_SKCIPHER
428	select CRYPTO_AUTHENC if CRYPTO_DEV_ATMEL_AUTHENC
429	select CRYPTO_DEV_ATMEL_SHA if CRYPTO_DEV_ATMEL_AUTHENC
430	help
431	  Some Atmel processors have AES hw accelerator.
432	  Select this if you want to use the Atmel module for
433	  AES algorithms.
434
435	  To compile this driver as a module, choose M here: the module
436	  will be called atmel-aes.
437
438config CRYPTO_DEV_ATMEL_TDES
439	tristate "Support for Atmel DES/TDES hw accelerator"
440	depends on ARCH_AT91 || COMPILE_TEST
441	select CRYPTO_LIB_DES
442	select CRYPTO_SKCIPHER
443	help
444	  Some Atmel processors have DES/TDES hw accelerator.
445	  Select this if you want to use the Atmel module for
446	  DES/TDES algorithms.
447
448	  To compile this driver as a module, choose M here: the module
449	  will be called atmel-tdes.
450
451config CRYPTO_DEV_ATMEL_SHA
452	tristate "Support for Atmel SHA hw accelerator"
453	depends on ARCH_AT91 || COMPILE_TEST
454	select CRYPTO_HASH
455	help
456	  Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512
457	  hw accelerator.
458	  Select this if you want to use the Atmel module for
459	  SHA1/SHA224/SHA256/SHA384/SHA512 algorithms.
460
461	  To compile this driver as a module, choose M here: the module
462	  will be called atmel-sha.
463
464config CRYPTO_DEV_ATMEL_I2C
465	tristate
466	select BITREVERSE
467
468config CRYPTO_DEV_ATMEL_ECC
469	tristate "Support for Microchip / Atmel ECC hw accelerator"
470	depends on I2C
471	select CRYPTO_DEV_ATMEL_I2C
472	select CRYPTO_ECDH
473	select CRC16
474	help
475	  Microchip / Atmel ECC hw accelerator.
476	  Select this if you want to use the Microchip / Atmel module for
477	  ECDH algorithm.
478
479	  To compile this driver as a module, choose M here: the module
480	  will be called atmel-ecc.
481
482config CRYPTO_DEV_ATMEL_SHA204A
483	tristate "Support for Microchip / Atmel SHA accelerator and RNG"
484	depends on I2C
485	select CRYPTO_DEV_ATMEL_I2C
486	select HW_RANDOM
487	select CRC16
488	help
489	  Microchip / Atmel SHA accelerator and RNG.
490	  Select this if you want to use the Microchip / Atmel SHA204A
491	  module as a random number generator. (Other functions of the
492	  chip are currently not exposed by this driver)
493
494	  To compile this driver as a module, choose M here: the module
495	  will be called atmel-sha204a.
496
497config CRYPTO_DEV_CCP
498	bool "Support for AMD Secure Processor"
499	depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM
500	help
501	  The AMD Secure Processor provides support for the Cryptographic Coprocessor
502	  (CCP) and the Platform Security Processor (PSP) devices.
503
504if CRYPTO_DEV_CCP
505	source "drivers/crypto/ccp/Kconfig"
506endif
507
508config CRYPTO_DEV_MXS_DCP
509	tristate "Support for Freescale MXS DCP"
510	depends on (ARCH_MXS || ARCH_MXC)
511	select STMP_DEVICE
512	select CRYPTO_CBC
513	select CRYPTO_ECB
514	select CRYPTO_AES
515	select CRYPTO_SKCIPHER
516	select CRYPTO_HASH
517	help
518	  The Freescale i.MX23/i.MX28 has SHA1/SHA256 and AES128 CBC/ECB
519	  co-processor on the die.
520
521	  To compile this driver as a module, choose M here: the module
522	  will be called mxs-dcp.
523
524source "drivers/crypto/cavium/cpt/Kconfig"
525source "drivers/crypto/cavium/nitrox/Kconfig"
526source "drivers/crypto/marvell/Kconfig"
527source "drivers/crypto/intel/Kconfig"
528
529config CRYPTO_DEV_QCE
530	tristate "Qualcomm crypto engine accelerator"
531	depends on ARCH_QCOM || COMPILE_TEST
532	depends on HAS_IOMEM
533	help
534	  This driver supports Qualcomm crypto engine accelerator
535	  hardware. To compile this driver as a module, choose M here. The
536	  module will be called qcrypto.
537
538config CRYPTO_DEV_QCE_SKCIPHER
539	bool
540	depends on CRYPTO_DEV_QCE
541	select CRYPTO_AES
542	select CRYPTO_LIB_DES
543	select CRYPTO_ECB
544	select CRYPTO_CBC
545	select CRYPTO_XTS
546	select CRYPTO_CTR
547	select CRYPTO_SKCIPHER
548
549config CRYPTO_DEV_QCE_SHA
550	bool
551	depends on CRYPTO_DEV_QCE
552	select CRYPTO_SHA1
553	select CRYPTO_SHA256
554
555config CRYPTO_DEV_QCE_AEAD
556	bool
557	depends on CRYPTO_DEV_QCE
558	select CRYPTO_AUTHENC
559	select CRYPTO_LIB_DES
560
561choice
562	prompt "Algorithms enabled for QCE acceleration"
563	default CRYPTO_DEV_QCE_ENABLE_ALL
564	depends on CRYPTO_DEV_QCE
565	help
566	  This option allows to choose whether to build support for all algorithms
567	  (default), hashes-only, or skciphers-only.
568
569	  The QCE engine does not appear to scale as well as the CPU to handle
570	  multiple crypto requests.  While the ipq40xx chips have 4-core CPUs, the
571	  QCE handles only 2 requests in parallel.
572
573	  Ipsec throughput seems to improve when disabling either family of
574	  algorithms, sharing the load with the CPU.  Enabling skciphers-only
575	  appears to work best.
576
577	config CRYPTO_DEV_QCE_ENABLE_ALL
578		bool "All supported algorithms"
579		select CRYPTO_DEV_QCE_SKCIPHER
580		select CRYPTO_DEV_QCE_SHA
581		select CRYPTO_DEV_QCE_AEAD
582		help
583		  Enable all supported algorithms:
584			- AES (CBC, CTR, ECB, XTS)
585			- 3DES (CBC, ECB)
586			- DES (CBC, ECB)
587			- SHA1, HMAC-SHA1
588			- SHA256, HMAC-SHA256
589
590	config CRYPTO_DEV_QCE_ENABLE_SKCIPHER
591		bool "Symmetric-key ciphers only"
592		select CRYPTO_DEV_QCE_SKCIPHER
593		help
594		  Enable symmetric-key ciphers only:
595			- AES (CBC, CTR, ECB, XTS)
596			- 3DES (ECB, CBC)
597			- DES (ECB, CBC)
598
599	config CRYPTO_DEV_QCE_ENABLE_SHA
600		bool "Hash/HMAC only"
601		select CRYPTO_DEV_QCE_SHA
602		help
603		  Enable hashes/HMAC algorithms only:
604			- SHA1, HMAC-SHA1
605			- SHA256, HMAC-SHA256
606
607	config CRYPTO_DEV_QCE_ENABLE_AEAD
608		bool "AEAD algorithms only"
609		select CRYPTO_DEV_QCE_AEAD
610		help
611		  Enable AEAD algorithms only:
612			- authenc()
613			- ccm(aes)
614			- rfc4309(ccm(aes))
615endchoice
616
617config CRYPTO_DEV_QCE_SW_MAX_LEN
618	int "Default maximum request size to use software for AES"
619	depends on CRYPTO_DEV_QCE && CRYPTO_DEV_QCE_SKCIPHER
620	default 512
621	help
622	  This sets the default maximum request size to perform AES requests
623	  using software instead of the crypto engine.  It can be changed by
624	  setting the aes_sw_max_len parameter.
625
626	  Small blocks are processed faster in software than hardware.
627	  Considering the 256-bit ciphers, software is 2-3 times faster than
628	  qce at 256-bytes, 30% faster at 512, and about even at 768-bytes.
629	  With 128-bit keys, the break-even point would be around 1024-bytes.
630
631	  The default is set a little lower, to 512 bytes, to balance the
632	  cost in CPU usage.  The minimum recommended setting is 16-bytes
633	  (1 AES block), since AES-GCM will fail if you set it lower.
634	  Setting this to zero will send all requests to the hardware.
635
636	  Note that 192-bit keys are not supported by the hardware and are
637	  always processed by the software fallback, and all DES requests
638	  are done by the hardware.
639
640config CRYPTO_DEV_QCOM_RNG
641	tristate "Qualcomm Random Number Generator Driver"
642	depends on ARCH_QCOM || COMPILE_TEST
643	depends on HW_RANDOM
644	help
645	  This driver provides support for the Random Number
646	  Generator hardware found on Qualcomm SoCs.
647
648	  To compile this driver as a module, choose M here. The
649	  module will be called qcom-rng. If unsure, say N.
650
651config CRYPTO_DEV_IMGTEC_HASH
652	tristate "Imagination Technologies hardware hash accelerator"
653	depends on MIPS || COMPILE_TEST
654	select CRYPTO_MD5
655	select CRYPTO_SHA1
656	select CRYPTO_SHA256
657	select CRYPTO_HASH
658	help
659	  This driver interfaces with the Imagination Technologies
660	  hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
661	  hashing algorithms.
662
663config CRYPTO_DEV_ROCKCHIP
664	tristate "Rockchip's Cryptographic Engine driver"
665	depends on OF && ARCH_ROCKCHIP
666	depends on PM
667	select CRYPTO_ECB
668	select CRYPTO_CBC
669	select CRYPTO_DES
670	select CRYPTO_AES
671	select CRYPTO_ENGINE
672	select CRYPTO_LIB_DES
673	select CRYPTO_MD5
674	select CRYPTO_SHA1
675	select CRYPTO_SHA256
676	select CRYPTO_HASH
677	select CRYPTO_SKCIPHER
678
679	help
680	  This driver interfaces with the hardware crypto accelerator.
681	  Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
682
683config CRYPTO_DEV_ROCKCHIP_DEBUG
684	bool "Enable Rockchip crypto stats"
685	depends on CRYPTO_DEV_ROCKCHIP
686	depends on DEBUG_FS
687	help
688	  Say y to enable Rockchip crypto debug stats.
689	  This will create /sys/kernel/debug/rk3288_crypto/stats for displaying
690	  the number of requests per algorithm and other internal stats.
691
692config CRYPTO_DEV_TEGRA
693	tristate "Enable Tegra Security Engine"
694	depends on TEGRA_HOST1X
695	select CRYPTO_ENGINE
696
697	help
698	  Select this to enable Tegra Security Engine which accelerates various
699	  AES encryption/decryption and HASH algorithms.
700
701config CRYPTO_DEV_ZYNQMP_AES
702	tristate "Support for Xilinx ZynqMP AES hw accelerator"
703	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
704	select CRYPTO_AES
705	select CRYPTO_ENGINE
706	select CRYPTO_AEAD
707	help
708	  Xilinx ZynqMP has AES-GCM engine used for symmetric key
709	  encryption and decryption. This driver interfaces with AES hw
710	  accelerator. Select this if you want to use the ZynqMP module
711	  for AES algorithms.
712
713config CRYPTO_DEV_ZYNQMP_SHA3
714	tristate "Support for Xilinx ZynqMP SHA3 hardware accelerator"
715	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
716	select CRYPTO_SHA3
717	help
718	  Xilinx ZynqMP has SHA3 engine used for secure hash calculation.
719	  This driver interfaces with SHA3 hardware engine.
720	  Select this if you want to use the ZynqMP module
721	  for SHA3 hash computation.
722
723source "drivers/crypto/chelsio/Kconfig"
724
725source "drivers/crypto/virtio/Kconfig"
726
727config CRYPTO_DEV_BCM_SPU
728	tristate "Broadcom symmetric crypto/hash acceleration support"
729	depends on ARCH_BCM_IPROC
730	depends on MAILBOX
731	default m
732	select CRYPTO_AUTHENC
733	select CRYPTO_LIB_DES
734	select CRYPTO_MD5
735	select CRYPTO_SHA1
736	select CRYPTO_SHA256
737	select CRYPTO_SHA512
738	help
739	  This driver provides support for Broadcom crypto acceleration using the
740	  Secure Processing Unit (SPU). The SPU driver registers skcipher,
741	  ahash, and aead algorithms with the kernel cryptographic API.
742
743source "drivers/crypto/stm32/Kconfig"
744
745config CRYPTO_DEV_SAFEXCEL
746	tristate "Inside Secure's SafeXcel cryptographic engine driver"
747	depends on (OF || PCI || COMPILE_TEST) && HAS_IOMEM
748	select CRYPTO_LIB_AES
749	select CRYPTO_AUTHENC
750	select CRYPTO_SKCIPHER
751	select CRYPTO_LIB_DES
752	select CRYPTO_HASH
753	select CRYPTO_HMAC
754	select CRYPTO_MD5
755	select CRYPTO_SHA1
756	select CRYPTO_SHA256
757	select CRYPTO_SHA512
758	select CRYPTO_CHACHA20POLY1305
759	select CRYPTO_SHA3
760	help
761	  This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic
762	  engines designed by Inside Secure. It currently accelerates DES, 3DES and
763	  AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256,
764	  SHA384 and SHA512 hash algorithms for both basic hash and HMAC.
765	  Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations.
766
767config CRYPTO_DEV_ARTPEC6
768	tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."
769	depends on ARM && (ARCH_ARTPEC || COMPILE_TEST)
770	depends on OF
771	select CRYPTO_AEAD
772	select CRYPTO_AES
773	select CRYPTO_ALGAPI
774	select CRYPTO_SKCIPHER
775	select CRYPTO_CTR
776	select CRYPTO_HASH
777	select CRYPTO_SHA1
778	select CRYPTO_SHA256
779	select CRYPTO_SHA512
780	help
781	  Enables the driver for the on-chip crypto accelerator
782	  of Axis ARTPEC SoCs.
783
784	  To compile this driver as a module, choose M here.
785
786config CRYPTO_DEV_CCREE
787	tristate "Support for ARM TrustZone CryptoCell family of security processors"
788	depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA
789	depends on HAS_IOMEM
790	select CRYPTO_HASH
791	select CRYPTO_SKCIPHER
792	select CRYPTO_LIB_DES
793	select CRYPTO_AEAD
794	select CRYPTO_AUTHENC
795	select CRYPTO_SHA1
796	select CRYPTO_MD5
797	select CRYPTO_SHA256
798	select CRYPTO_SHA512
799	select CRYPTO_HMAC
800	select CRYPTO_AES
801	select CRYPTO_CBC
802	select CRYPTO_ECB
803	select CRYPTO_CTR
804	select CRYPTO_XTS
805	select CRYPTO_SM4_GENERIC
806	select CRYPTO_SM3
807	help
808	  Say 'Y' to enable a driver for the REE interface of the Arm
809	  TrustZone CryptoCell family of processors. Currently the
810	  CryptoCell 713, 703, 712, 710 and 630 are supported.
811	  Choose this if you wish to use hardware acceleration of
812	  cryptographic operations on the system REE.
813	  If unsure say Y.
814
815source "drivers/crypto/hisilicon/Kconfig"
816
817source "drivers/crypto/amlogic/Kconfig"
818
819config CRYPTO_DEV_SA2UL
820	tristate "Support for TI security accelerator"
821	depends on ARCH_K3 || COMPILE_TEST
822	select CRYPTO_AES
823	select CRYPTO_ALGAPI
824	select CRYPTO_AUTHENC
825	select CRYPTO_DES
826	select CRYPTO_SHA1
827	select CRYPTO_SHA256
828	select CRYPTO_SHA512
829	select HW_RANDOM
830	select SG_SPLIT
831	help
832	  K3 devices include a security accelerator engine that may be
833	  used for crypto offload.  Select this if you want to use hardware
834	  acceleration for cryptographic algorithms on these devices.
835
836source "drivers/crypto/aspeed/Kconfig"
837source "drivers/crypto/starfive/Kconfig"
838source "drivers/crypto/inside-secure/eip93/Kconfig"
839source "drivers/crypto/ti/Kconfig"
840
841endif # CRYPTO_HW
842