xref: /linux/drivers/crypto/Kconfig (revision dfb098d692eac2a11a7051dfe87be98cd90da67d)
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	select HW_RANDOM
71	help
72	  Select this option if you want to enable support for
73	  s390 cryptographic adapters like:
74	  + Crypto Express 2 up to 7 Coprocessor (CEXxC)
75	  + Crypto Express 2 up to 7 Accelerator (CEXxA)
76	  + Crypto Express 4 up to 7 EP11 Coprocessor (CEXxP)
77
78config ZCRYPT_DEBUG
79	bool "Enable debug features for s390 cryptographic adapters"
80	default n
81	depends on DEBUG_KERNEL
82	depends on ZCRYPT
83	help
84	  Say 'Y' here to enable some additional debug features on the
85	  s390 cryptographic adapters driver.
86
87	  There will be some more sysfs attributes displayed for ap cards
88	  and queues and some flags on crypto requests are interpreted as
89	  debugging messages to force error injection.
90
91	  Do not enable on production level kernel build.
92
93	  If unsure, say N.
94
95config ZCRYPT_MULTIDEVNODES
96	bool "Support for multiple zcrypt device nodes"
97	default y
98	depends on S390
99	depends on ZCRYPT
100	help
101	  With this option enabled the zcrypt device driver can
102	  provide multiple devices nodes in /dev. Each device
103	  node can get customized to limit access and narrow
104	  down the use of the available crypto hardware.
105
106config PKEY
107	tristate "Kernel API for protected key handling"
108	depends on S390
109	depends on ZCRYPT
110	help
111	  With this option enabled the pkey kernel module provides an API
112	  for creation and handling of protected keys. Other parts of the
113	  kernel or userspace applications may use these functions.
114
115	  Select this option if you want to enable the kernel and userspace
116	  API for proteced key handling.
117
118	  Please note that creation of protected keys from secure keys
119	  requires to have at least one CEX card in coprocessor mode
120	  available at runtime.
121
122config CRYPTO_PAES_S390
123	tristate "PAES cipher algorithms"
124	depends on S390
125	depends on ZCRYPT
126	depends on PKEY
127	select CRYPTO_ALGAPI
128	select CRYPTO_SKCIPHER
129	help
130	  This is the s390 hardware accelerated implementation of the
131	  AES cipher algorithms for use with protected key.
132
133	  Select this option if you want to use the paes cipher
134	  for example to use protected key encrypted devices.
135
136config CRYPTO_SHA1_S390
137	tristate "SHA1 digest algorithm"
138	depends on S390
139	select CRYPTO_HASH
140	help
141	  This is the s390 hardware accelerated implementation of the
142	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
143
144	  It is available as of z990.
145
146config CRYPTO_SHA256_S390
147	tristate "SHA256 digest algorithm"
148	depends on S390
149	select CRYPTO_HASH
150	help
151	  This is the s390 hardware accelerated implementation of the
152	  SHA256 secure hash standard (DFIPS 180-2).
153
154	  It is available as of z9.
155
156config CRYPTO_SHA512_S390
157	tristate "SHA384 and SHA512 digest algorithm"
158	depends on S390
159	select CRYPTO_HASH
160	help
161	  This is the s390 hardware accelerated implementation of the
162	  SHA512 secure hash standard.
163
164	  It is available as of z10.
165
166config CRYPTO_SHA3_256_S390
167	tristate "SHA3_224 and SHA3_256 digest algorithm"
168	depends on S390
169	select CRYPTO_HASH
170	help
171	  This is the s390 hardware accelerated implementation of the
172	  SHA3_256 secure hash standard.
173
174	  It is available as of z14.
175
176config CRYPTO_SHA3_512_S390
177	tristate "SHA3_384 and SHA3_512 digest algorithm"
178	depends on S390
179	select CRYPTO_HASH
180	help
181	  This is the s390 hardware accelerated implementation of the
182	  SHA3_512 secure hash standard.
183
184	  It is available as of z14.
185
186config CRYPTO_DES_S390
187	tristate "DES and Triple DES cipher algorithms"
188	depends on S390
189	select CRYPTO_ALGAPI
190	select CRYPTO_SKCIPHER
191	select CRYPTO_LIB_DES
192	help
193	  This is the s390 hardware accelerated implementation of the
194	  DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
195
196	  As of z990 the ECB and CBC mode are hardware accelerated.
197	  As of z196 the CTR mode is hardware accelerated.
198
199config CRYPTO_AES_S390
200	tristate "AES cipher algorithms"
201	depends on S390
202	select CRYPTO_ALGAPI
203	select CRYPTO_SKCIPHER
204	help
205	  This is the s390 hardware accelerated implementation of the
206	  AES cipher algorithms (FIPS-197).
207
208	  As of z9 the ECB and CBC modes are hardware accelerated
209	  for 128 bit keys.
210	  As of z10 the ECB and CBC modes are hardware accelerated
211	  for all AES key sizes.
212	  As of z196 the CTR mode is hardware accelerated for all AES
213	  key sizes and XTS mode is hardware accelerated for 256 and
214	  512 bit keys.
215
216config S390_PRNG
217	tristate "Pseudo random number generator device driver"
218	depends on S390
219	default "m"
220	help
221	  Select this option if you want to use the s390 pseudo random number
222	  generator. The PRNG is part of the cryptographic processor functions
223	  and uses triple-DES to generate secure random numbers like the
224	  ANSI X9.17 standard. User-space programs access the
225	  pseudo-random-number device through the char device /dev/prandom.
226
227	  It is available as of z9.
228
229config CRYPTO_GHASH_S390
230	tristate "GHASH hash function"
231	depends on S390
232	select CRYPTO_HASH
233	help
234	  This is the s390 hardware accelerated implementation of GHASH,
235	  the hash function used in GCM (Galois/Counter mode).
236
237	  It is available as of z196.
238
239config CRYPTO_CRC32_S390
240	tristate "CRC-32 algorithms"
241	depends on S390
242	select CRYPTO_HASH
243	select CRC32
244	help
245	  Select this option if you want to use hardware accelerated
246	  implementations of CRC algorithms.  With this option, you
247	  can optimize the computation of CRC-32 (IEEE 802.3 Ethernet)
248	  and CRC-32C (Castagnoli).
249
250	  It is available with IBM z13 or later.
251
252config CRYPTO_DEV_NIAGARA2
253	tristate "Niagara2 Stream Processing Unit driver"
254	select CRYPTO_LIB_DES
255	select CRYPTO_SKCIPHER
256	select CRYPTO_HASH
257	select CRYPTO_MD5
258	select CRYPTO_SHA1
259	select CRYPTO_SHA256
260	depends on SPARC64
261	help
262	  Each core of a Niagara2 processor contains a Stream
263	  Processing Unit, which itself contains several cryptographic
264	  sub-units.  One set provides the Modular Arithmetic Unit,
265	  used for SSL offload.  The other set provides the Cipher
266	  Group, which can perform encryption, decryption, hashing,
267	  checksumming, and raw copies.
268
269config CRYPTO_DEV_HIFN_795X
270	tristate "Driver HIFN 795x crypto accelerator chips"
271	select CRYPTO_LIB_DES
272	select CRYPTO_SKCIPHER
273	select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG
274	depends on PCI
275	depends on !ARCH_DMA_ADDR_T_64BIT
276	help
277	  This option allows you to have support for HIFN 795x crypto adapters.
278
279config CRYPTO_DEV_HIFN_795X_RNG
280	bool "HIFN 795x random number generator"
281	depends on CRYPTO_DEV_HIFN_795X
282	help
283	  Select this option if you want to enable the random number generator
284	  on the HIFN 795x crypto adapters.
285
286source "drivers/crypto/caam/Kconfig"
287
288config CRYPTO_DEV_TALITOS
289	tristate "Talitos Freescale Security Engine (SEC)"
290	select CRYPTO_AEAD
291	select CRYPTO_AUTHENC
292	select CRYPTO_SKCIPHER
293	select CRYPTO_HASH
294	select CRYPTO_LIB_DES
295	select HW_RANDOM
296	depends on FSL_SOC
297	help
298	  Say 'Y' here to use the Freescale Security Engine (SEC)
299	  to offload cryptographic algorithm computation.
300
301	  The Freescale SEC is present on PowerQUICC 'E' processors, such
302	  as the MPC8349E and MPC8548E.
303
304	  To compile this driver as a module, choose M here: the module
305	  will be called talitos.
306
307config CRYPTO_DEV_TALITOS1
308	bool "SEC1 (SEC 1.0 and SEC Lite 1.2)"
309	depends on CRYPTO_DEV_TALITOS
310	depends on PPC_8xx || PPC_82xx
311	default y
312	help
313	  Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0
314	  found on MPC82xx or the Freescale Security Engine (SEC Lite)
315	  version 1.2 found on MPC8xx
316
317config CRYPTO_DEV_TALITOS2
318	bool "SEC2+ (SEC version 2.0 or upper)"
319	depends on CRYPTO_DEV_TALITOS
320	default y if !PPC_8xx
321	help
322	  Say 'Y' here to use the Freescale Security Engine (SEC)
323	  version 2 and following as found on MPC83xx, MPC85xx, etc ...
324
325config CRYPTO_DEV_IXP4XX
326	tristate "Driver for IXP4xx crypto hardware acceleration"
327	depends on ARCH_IXP4XX && IXP4XX_QMGR && IXP4XX_NPE
328	select CRYPTO_AES
329	select CRYPTO_DES
330	select CRYPTO_ECB
331	select CRYPTO_CBC
332	select CRYPTO_CTR
333	select CRYPTO_LIB_DES
334	select CRYPTO_AEAD
335	select CRYPTO_AUTHENC
336	select CRYPTO_SKCIPHER
337	help
338	  Driver for the IXP4xx NPE crypto engine.
339
340config CRYPTO_DEV_PPC4XX
341	tristate "Driver AMCC PPC4xx crypto accelerator"
342	depends on PPC && 4xx
343	select CRYPTO_HASH
344	select CRYPTO_AEAD
345	select CRYPTO_AES
346	select CRYPTO_LIB_AES
347	select CRYPTO_CCM
348	select CRYPTO_CTR
349	select CRYPTO_GCM
350	select CRYPTO_SKCIPHER
351	help
352	  This option allows you to have support for AMCC crypto acceleration.
353
354config HW_RANDOM_PPC4XX
355	bool "PowerPC 4xx generic true random number generator support"
356	depends on CRYPTO_DEV_PPC4XX && HW_RANDOM=y
357	default y
358	help
359	 This option provides the kernel-side support for the TRNG hardware
360	 found in the security function of some PowerPC 4xx SoCs.
361
362config CRYPTO_DEV_OMAP
363	tristate "Support for OMAP crypto HW accelerators"
364	depends on ARCH_OMAP2PLUS
365	help
366	  OMAP processors have various crypto HW accelerators. Select this if
367	  you want to use the OMAP modules for any of the crypto algorithms.
368
369if CRYPTO_DEV_OMAP
370
371config CRYPTO_DEV_OMAP_SHAM
372	tristate "Support for OMAP MD5/SHA1/SHA2 hw accelerator"
373	depends on ARCH_OMAP2PLUS
374	select CRYPTO_ENGINE
375	select CRYPTO_SHA1
376	select CRYPTO_MD5
377	select CRYPTO_SHA256
378	select CRYPTO_SHA512
379	select CRYPTO_HMAC
380	help
381	  OMAP processors have MD5/SHA1/SHA2 hw accelerator. Select this if you
382	  want to use the OMAP module for MD5/SHA1/SHA2 algorithms.
383
384config CRYPTO_DEV_OMAP_AES
385	tristate "Support for OMAP AES hw engine"
386	depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP2PLUS
387	select CRYPTO_AES
388	select CRYPTO_SKCIPHER
389	select CRYPTO_ENGINE
390	select CRYPTO_CBC
391	select CRYPTO_ECB
392	select CRYPTO_CTR
393	select CRYPTO_AEAD
394	help
395	  OMAP processors have AES module accelerator. Select this if you
396	  want to use the OMAP module for AES algorithms.
397
398config CRYPTO_DEV_OMAP_DES
399	tristate "Support for OMAP DES/3DES hw engine"
400	depends on ARCH_OMAP2PLUS
401	select CRYPTO_LIB_DES
402	select CRYPTO_SKCIPHER
403	select CRYPTO_ENGINE
404	help
405	  OMAP processors have DES/3DES module accelerator. Select this if you
406	  want to use the OMAP module for DES and 3DES algorithms. Currently
407	  the ECB and CBC modes of operation are supported by the driver. Also
408	  accesses made on unaligned boundaries are supported.
409
410endif # CRYPTO_DEV_OMAP
411
412config CRYPTO_DEV_SAHARA
413	tristate "Support for SAHARA crypto accelerator"
414	depends on ARCH_MXC && OF
415	select CRYPTO_SKCIPHER
416	select CRYPTO_AES
417	select CRYPTO_ECB
418	help
419	  This option enables support for the SAHARA HW crypto accelerator
420	  found in some Freescale i.MX chips.
421
422config CRYPTO_DEV_EXYNOS_RNG
423	tristate "Exynos HW pseudo random number generator support"
424	depends on ARCH_EXYNOS || COMPILE_TEST
425	depends on HAS_IOMEM
426	select CRYPTO_RNG
427	help
428	  This driver provides kernel-side support through the
429	  cryptographic API for the pseudo random number generator hardware
430	  found on Exynos SoCs.
431
432	  To compile this driver as a module, choose M here: the
433	  module will be called exynos-rng.
434
435	  If unsure, say Y.
436
437config CRYPTO_DEV_S5P
438	tristate "Support for Samsung S5PV210/Exynos crypto accelerator"
439	depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
440	depends on HAS_IOMEM
441	select CRYPTO_AES
442	select CRYPTO_SKCIPHER
443	help
444	  This option allows you to have support for S5P crypto acceleration.
445	  Select this to offload Samsung S5PV210 or S5PC110, Exynos from AES
446	  algorithms execution.
447
448config CRYPTO_DEV_EXYNOS_HASH
449	bool "Support for Samsung Exynos HASH accelerator"
450	depends on CRYPTO_DEV_S5P
451	depends on !CRYPTO_DEV_EXYNOS_RNG && CRYPTO_DEV_EXYNOS_RNG!=m
452	select CRYPTO_SHA1
453	select CRYPTO_MD5
454	select CRYPTO_SHA256
455	help
456	  Select this to offload Exynos from HASH MD5/SHA1/SHA256.
457	  This will select software SHA1, MD5 and SHA256 as they are
458	  needed for small and zero-size messages.
459	  HASH algorithms will be disabled if EXYNOS_RNG
460	  is enabled due to hw conflict.
461
462config CRYPTO_DEV_NX
463	bool "Support for IBM PowerPC Nest (NX) cryptographic acceleration"
464	depends on PPC64
465	help
466	  This enables support for the NX hardware cryptographic accelerator
467	  coprocessor that is in IBM PowerPC P7+ or later processors.  This
468	  does not actually enable any drivers, it only allows you to select
469	  which acceleration type (encryption and/or compression) to enable.
470
471if CRYPTO_DEV_NX
472	source "drivers/crypto/nx/Kconfig"
473endif
474
475config CRYPTO_DEV_UX500
476	tristate "Driver for ST-Ericsson UX500 crypto hardware acceleration"
477	depends on ARCH_U8500
478	help
479	  Driver for ST-Ericsson UX500 crypto engine.
480
481if CRYPTO_DEV_UX500
482	source "drivers/crypto/ux500/Kconfig"
483endif # if CRYPTO_DEV_UX500
484
485config CRYPTO_DEV_ATMEL_AUTHENC
486	bool "Support for Atmel IPSEC/SSL hw accelerator"
487	depends on ARCH_AT91 || COMPILE_TEST
488	depends on CRYPTO_DEV_ATMEL_AES
489	help
490	  Some Atmel processors can combine the AES and SHA hw accelerators
491	  to enhance support of IPSEC/SSL.
492	  Select this if you want to use the Atmel modules for
493	  authenc(hmac(shaX),Y(cbc)) algorithms.
494
495config CRYPTO_DEV_ATMEL_AES
496	tristate "Support for Atmel AES hw accelerator"
497	depends on ARCH_AT91 || COMPILE_TEST
498	select CRYPTO_AES
499	select CRYPTO_AEAD
500	select CRYPTO_SKCIPHER
501	select CRYPTO_AUTHENC if CRYPTO_DEV_ATMEL_AUTHENC
502	select CRYPTO_DEV_ATMEL_SHA if CRYPTO_DEV_ATMEL_AUTHENC
503	help
504	  Some Atmel processors have AES hw accelerator.
505	  Select this if you want to use the Atmel module for
506	  AES algorithms.
507
508	  To compile this driver as a module, choose M here: the module
509	  will be called atmel-aes.
510
511config CRYPTO_DEV_ATMEL_TDES
512	tristate "Support for Atmel DES/TDES hw accelerator"
513	depends on ARCH_AT91 || COMPILE_TEST
514	select CRYPTO_LIB_DES
515	select CRYPTO_SKCIPHER
516	help
517	  Some Atmel processors have DES/TDES hw accelerator.
518	  Select this if you want to use the Atmel module for
519	  DES/TDES algorithms.
520
521	  To compile this driver as a module, choose M here: the module
522	  will be called atmel-tdes.
523
524config CRYPTO_DEV_ATMEL_SHA
525	tristate "Support for Atmel SHA hw accelerator"
526	depends on ARCH_AT91 || COMPILE_TEST
527	select CRYPTO_HASH
528	help
529	  Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512
530	  hw accelerator.
531	  Select this if you want to use the Atmel module for
532	  SHA1/SHA224/SHA256/SHA384/SHA512 algorithms.
533
534	  To compile this driver as a module, choose M here: the module
535	  will be called atmel-sha.
536
537config CRYPTO_DEV_ATMEL_I2C
538	tristate
539	select BITREVERSE
540
541config CRYPTO_DEV_ATMEL_ECC
542	tristate "Support for Microchip / Atmel ECC hw accelerator"
543	depends on I2C
544	select CRYPTO_DEV_ATMEL_I2C
545	select CRYPTO_ECDH
546	select CRC16
547	help
548	  Microhip / Atmel ECC hw accelerator.
549	  Select this if you want to use the Microchip / Atmel module for
550	  ECDH algorithm.
551
552	  To compile this driver as a module, choose M here: the module
553	  will be called atmel-ecc.
554
555config CRYPTO_DEV_ATMEL_SHA204A
556	tristate "Support for Microchip / Atmel SHA accelerator and RNG"
557	depends on I2C
558	select CRYPTO_DEV_ATMEL_I2C
559	select HW_RANDOM
560	select CRC16
561	help
562	  Microhip / Atmel SHA accelerator and RNG.
563	  Select this if you want to use the Microchip / Atmel SHA204A
564	  module as a random number generator. (Other functions of the
565	  chip are currently not exposed by this driver)
566
567	  To compile this driver as a module, choose M here: the module
568	  will be called atmel-sha204a.
569
570config CRYPTO_DEV_CCP
571	bool "Support for AMD Secure Processor"
572	depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM
573	help
574	  The AMD Secure Processor provides support for the Cryptographic Coprocessor
575	  (CCP) and the Platform Security Processor (PSP) devices.
576
577if CRYPTO_DEV_CCP
578	source "drivers/crypto/ccp/Kconfig"
579endif
580
581config CRYPTO_DEV_MXS_DCP
582	tristate "Support for Freescale MXS DCP"
583	depends on (ARCH_MXS || ARCH_MXC)
584	select STMP_DEVICE
585	select CRYPTO_CBC
586	select CRYPTO_ECB
587	select CRYPTO_AES
588	select CRYPTO_SKCIPHER
589	select CRYPTO_HASH
590	help
591	  The Freescale i.MX23/i.MX28 has SHA1/SHA256 and AES128 CBC/ECB
592	  co-processor on the die.
593
594	  To compile this driver as a module, choose M here: the module
595	  will be called mxs-dcp.
596
597source "drivers/crypto/qat/Kconfig"
598source "drivers/crypto/cavium/cpt/Kconfig"
599source "drivers/crypto/cavium/nitrox/Kconfig"
600source "drivers/crypto/marvell/Kconfig"
601
602config CRYPTO_DEV_CAVIUM_ZIP
603	tristate "Cavium ZIP driver"
604	depends on PCI && 64BIT && (ARM64 || COMPILE_TEST)
605	help
606	  Select this option if you want to enable compression/decompression
607	  acceleration on Cavium's ARM based SoCs
608
609config CRYPTO_DEV_QCE
610	tristate "Qualcomm crypto engine accelerator"
611	depends on ARCH_QCOM || COMPILE_TEST
612	depends on HAS_IOMEM
613	help
614	  This driver supports Qualcomm crypto engine accelerator
615	  hardware. To compile this driver as a module, choose M here. The
616	  module will be called qcrypto.
617
618config CRYPTO_DEV_QCE_SKCIPHER
619	bool
620	depends on CRYPTO_DEV_QCE
621	select CRYPTO_AES
622	select CRYPTO_LIB_DES
623	select CRYPTO_ECB
624	select CRYPTO_CBC
625	select CRYPTO_XTS
626	select CRYPTO_CTR
627	select CRYPTO_SKCIPHER
628
629config CRYPTO_DEV_QCE_SHA
630	bool
631	depends on CRYPTO_DEV_QCE
632	select CRYPTO_SHA1
633	select CRYPTO_SHA256
634
635config CRYPTO_DEV_QCE_AEAD
636	bool
637	depends on CRYPTO_DEV_QCE
638	select CRYPTO_AUTHENC
639	select CRYPTO_LIB_DES
640
641choice
642	prompt "Algorithms enabled for QCE acceleration"
643	default CRYPTO_DEV_QCE_ENABLE_ALL
644	depends on CRYPTO_DEV_QCE
645	help
646	  This option allows to choose whether to build support for all algorithms
647	  (default), hashes-only, or skciphers-only.
648
649	  The QCE engine does not appear to scale as well as the CPU to handle
650	  multiple crypto requests.  While the ipq40xx chips have 4-core CPUs, the
651	  QCE handles only 2 requests in parallel.
652
653	  Ipsec throughput seems to improve when disabling either family of
654	  algorithms, sharing the load with the CPU.  Enabling skciphers-only
655	  appears to work best.
656
657	config CRYPTO_DEV_QCE_ENABLE_ALL
658		bool "All supported algorithms"
659		select CRYPTO_DEV_QCE_SKCIPHER
660		select CRYPTO_DEV_QCE_SHA
661		select CRYPTO_DEV_QCE_AEAD
662		help
663		  Enable all supported algorithms:
664			- AES (CBC, CTR, ECB, XTS)
665			- 3DES (CBC, ECB)
666			- DES (CBC, ECB)
667			- SHA1, HMAC-SHA1
668			- SHA256, HMAC-SHA256
669
670	config CRYPTO_DEV_QCE_ENABLE_SKCIPHER
671		bool "Symmetric-key ciphers only"
672		select CRYPTO_DEV_QCE_SKCIPHER
673		help
674		  Enable symmetric-key ciphers only:
675			- AES (CBC, CTR, ECB, XTS)
676			- 3DES (ECB, CBC)
677			- DES (ECB, CBC)
678
679	config CRYPTO_DEV_QCE_ENABLE_SHA
680		bool "Hash/HMAC only"
681		select CRYPTO_DEV_QCE_SHA
682		help
683		  Enable hashes/HMAC algorithms only:
684			- SHA1, HMAC-SHA1
685			- SHA256, HMAC-SHA256
686
687	config CRYPTO_DEV_QCE_ENABLE_AEAD
688		bool "AEAD algorithms only"
689		select CRYPTO_DEV_QCE_AEAD
690		help
691		  Enable AEAD algorithms only:
692			- authenc()
693			- ccm(aes)
694			- rfc4309(ccm(aes))
695endchoice
696
697config CRYPTO_DEV_QCE_SW_MAX_LEN
698	int "Default maximum request size to use software for AES"
699	depends on CRYPTO_DEV_QCE && CRYPTO_DEV_QCE_SKCIPHER
700	default 512
701	help
702	  This sets the default maximum request size to perform AES requests
703	  using software instead of the crypto engine.  It can be changed by
704	  setting the aes_sw_max_len parameter.
705
706	  Small blocks are processed faster in software than hardware.
707	  Considering the 256-bit ciphers, software is 2-3 times faster than
708	  qce at 256-bytes, 30% faster at 512, and about even at 768-bytes.
709	  With 128-bit keys, the break-even point would be around 1024-bytes.
710
711	  The default is set a little lower, to 512 bytes, to balance the
712	  cost in CPU usage.  The minimum recommended setting is 16-bytes
713	  (1 AES block), since AES-GCM will fail if you set it lower.
714	  Setting this to zero will send all requests to the hardware.
715
716	  Note that 192-bit keys are not supported by the hardware and are
717	  always processed by the software fallback, and all DES requests
718	  are done by the hardware.
719
720config CRYPTO_DEV_QCOM_RNG
721	tristate "Qualcomm Random Number Generator Driver"
722	depends on ARCH_QCOM || COMPILE_TEST
723	select CRYPTO_RNG
724	help
725	  This driver provides support for the Random Number
726	  Generator hardware found on Qualcomm SoCs.
727
728	  To compile this driver as a module, choose M here. The
729	  module will be called qcom-rng. If unsure, say N.
730
731config CRYPTO_DEV_VMX
732	bool "Support for VMX cryptographic acceleration instructions"
733	depends on PPC64 && VSX
734	help
735	  Support for VMX cryptographic acceleration instructions.
736
737source "drivers/crypto/vmx/Kconfig"
738
739config CRYPTO_DEV_IMGTEC_HASH
740	tristate "Imagination Technologies hardware hash accelerator"
741	depends on MIPS || COMPILE_TEST
742	select CRYPTO_MD5
743	select CRYPTO_SHA1
744	select CRYPTO_SHA256
745	select CRYPTO_HASH
746	help
747	  This driver interfaces with the Imagination Technologies
748	  hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
749	  hashing algorithms.
750
751config CRYPTO_DEV_ROCKCHIP
752	tristate "Rockchip's Cryptographic Engine driver"
753	depends on OF && ARCH_ROCKCHIP
754	select CRYPTO_AES
755	select CRYPTO_LIB_DES
756	select CRYPTO_MD5
757	select CRYPTO_SHA1
758	select CRYPTO_SHA256
759	select CRYPTO_HASH
760	select CRYPTO_SKCIPHER
761
762	help
763	  This driver interfaces with the hardware crypto accelerator.
764	  Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
765
766config CRYPTO_DEV_ZYNQMP_AES
767	tristate "Support for Xilinx ZynqMP AES hw accelerator"
768	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
769	select CRYPTO_AES
770	select CRYPTO_ENGINE
771	select CRYPTO_AEAD
772	help
773	  Xilinx ZynqMP has AES-GCM engine used for symmetric key
774	  encryption and decryption. This driver interfaces with AES hw
775	  accelerator. Select this if you want to use the ZynqMP module
776	  for AES algorithms.
777
778source "drivers/crypto/chelsio/Kconfig"
779
780source "drivers/crypto/virtio/Kconfig"
781
782config CRYPTO_DEV_BCM_SPU
783	tristate "Broadcom symmetric crypto/hash acceleration support"
784	depends on ARCH_BCM_IPROC
785	depends on MAILBOX
786	default m
787	select CRYPTO_AUTHENC
788	select CRYPTO_LIB_DES
789	select CRYPTO_MD5
790	select CRYPTO_SHA1
791	select CRYPTO_SHA256
792	select CRYPTO_SHA512
793	help
794	  This driver provides support for Broadcom crypto acceleration using the
795	  Secure Processing Unit (SPU). The SPU driver registers skcipher,
796	  ahash, and aead algorithms with the kernel cryptographic API.
797
798source "drivers/crypto/stm32/Kconfig"
799
800config CRYPTO_DEV_SAFEXCEL
801	tristate "Inside Secure's SafeXcel cryptographic engine driver"
802	depends on (OF || PCI || COMPILE_TEST) && HAS_IOMEM
803	select CRYPTO_LIB_AES
804	select CRYPTO_AUTHENC
805	select CRYPTO_SKCIPHER
806	select CRYPTO_LIB_DES
807	select CRYPTO_HASH
808	select CRYPTO_HMAC
809	select CRYPTO_MD5
810	select CRYPTO_SHA1
811	select CRYPTO_SHA256
812	select CRYPTO_SHA512
813	select CRYPTO_CHACHA20POLY1305
814	select CRYPTO_SHA3
815	help
816	  This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic
817	  engines designed by Inside Secure. It currently accelerates DES, 3DES and
818	  AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256,
819	  SHA384 and SHA512 hash algorithms for both basic hash and HMAC.
820	  Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations.
821
822config CRYPTO_DEV_ARTPEC6
823	tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."
824	depends on ARM && (ARCH_ARTPEC || COMPILE_TEST)
825	depends on OF
826	select CRYPTO_AEAD
827	select CRYPTO_AES
828	select CRYPTO_ALGAPI
829	select CRYPTO_SKCIPHER
830	select CRYPTO_CTR
831	select CRYPTO_HASH
832	select CRYPTO_SHA1
833	select CRYPTO_SHA256
834	select CRYPTO_SHA512
835	help
836	  Enables the driver for the on-chip crypto accelerator
837	  of Axis ARTPEC SoCs.
838
839	  To compile this driver as a module, choose M here.
840
841config CRYPTO_DEV_CCREE
842	tristate "Support for ARM TrustZone CryptoCell family of security processors"
843	depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA
844	default n
845	select CRYPTO_HASH
846	select CRYPTO_SKCIPHER
847	select CRYPTO_LIB_DES
848	select CRYPTO_AEAD
849	select CRYPTO_AUTHENC
850	select CRYPTO_SHA1
851	select CRYPTO_MD5
852	select CRYPTO_SHA256
853	select CRYPTO_SHA512
854	select CRYPTO_HMAC
855	select CRYPTO_AES
856	select CRYPTO_CBC
857	select CRYPTO_ECB
858	select CRYPTO_CTR
859	select CRYPTO_XTS
860	select CRYPTO_SM4
861	select CRYPTO_SM3
862	help
863	  Say 'Y' to enable a driver for the REE interface of the Arm
864	  TrustZone CryptoCell family of processors. Currently the
865	  CryptoCell 713, 703, 712, 710 and 630 are supported.
866	  Choose this if you wish to use hardware acceleration of
867	  cryptographic operations on the system REE.
868	  If unsure say Y.
869
870source "drivers/crypto/hisilicon/Kconfig"
871
872source "drivers/crypto/amlogic/Kconfig"
873
874config CRYPTO_DEV_SA2UL
875	tristate "Support for TI security accelerator"
876	depends on ARCH_K3 || COMPILE_TEST
877	select ARM64_CRYPTO
878	select CRYPTO_AES
879	select CRYPTO_AES_ARM64
880	select CRYPTO_ALGAPI
881	select CRYPTO_AUTHENC
882	select CRYPTO_SHA1
883	select CRYPTO_SHA256
884	select CRYPTO_SHA512
885	select HW_RANDOM
886	select SG_SPLIT
887	help
888	  K3 devices include a security accelerator engine that may be
889	  used for crypto offload.  Select this if you want to use hardware
890	  acceleration for cryptographic algorithms on these devices.
891
892source "drivers/crypto/keembay/Kconfig"
893
894endif # CRYPTO_HW
895