1 # SPDX-License-Identifier: GPL-2.0-only
4 bool "Hardware crypto devices"
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.
10 If you say N, all options in this submenu will be skipped and disabled.
14 source "drivers/crypto/allwinner/Kconfig"
16 config CRYPTO_DEV_PADLOCK
17 tristate "Support for VIA PadLock ACE"
18 depends on X86 && !UML
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.
25 The instructions are used only when the CPU supports them.
26 Otherwise software encryption is used.
28 config CRYPTO_DEV_PADLOCK_AES
29 tristate "PadLock driver for AES algorithm"
30 depends on CRYPTO_DEV_PADLOCK
31 select CRYPTO_SKCIPHER
34 Use VIA PadLock for AES algorithm.
36 Available in VIA C3 and newer CPUs.
38 If unsure say M. The compiled module will be
41 config CRYPTO_DEV_PADLOCK_SHA
42 tristate "PadLock driver for SHA1 and SHA256 algorithms"
43 depends on CRYPTO_DEV_PADLOCK
48 Use VIA PadLock for SHA1/SHA256 algorithms.
50 Available in VIA C7 and newer processors.
52 If unsure say M. The compiled module will be
55 config CRYPTO_DEV_GEODE
56 tristate "Support for the Geode LX AES engine"
57 depends on X86_32 && PCI
59 select CRYPTO_SKCIPHER
61 Say 'Y' here to use the AMD Geode LX processor on-board AES
62 engine for the CryptoAPI AES algorithm.
64 To compile this driver as a module, choose M here: the module
65 will be called geode-aes.
68 tristate "Support for s390 cryptographic adapters"
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.
79 tristate "Kernel API for protected key handling"
83 With this option enabled the pkey kernel module provides an API
84 for creation and handling of protected keys. Other parts of the
85 kernel or userspace applications may use these functions.
87 Select this option if you want to enable the kernel and userspace
88 API for proteced key handling.
90 Please note that creation of protected keys from secure keys
91 requires to have at least one CEX card in coprocessor mode
94 config CRYPTO_PAES_S390
95 tristate "PAES cipher algorithms"
100 select CRYPTO_SKCIPHER
102 This is the s390 hardware accelerated implementation of the
103 AES cipher algorithms for use with protected key.
105 Select this option if you want to use the paes cipher
106 for example to use protected key encrypted devices.
109 tristate "Pseudo random number generator device driver"
113 Select this option if you want to use the s390 pseudo random number
114 generator. The PRNG is part of the cryptographic processor functions
115 and uses triple-DES to generate secure random numbers like the
116 ANSI X9.17 standard. User-space programs access the
117 pseudo-random-number device through the char device /dev/prandom.
119 It is available as of z9.
121 config CRYPTO_DEV_NIAGARA2
122 tristate "Niagara2 Stream Processing Unit driver"
123 select CRYPTO_LIB_DES
124 select CRYPTO_SKCIPHER
131 Each core of a Niagara2 processor contains a Stream
132 Processing Unit, which itself contains several cryptographic
133 sub-units. One set provides the Modular Arithmetic Unit,
134 used for SSL offload. The other set provides the Cipher
135 Group, which can perform encryption, decryption, hashing,
136 checksumming, and raw copies.
138 config CRYPTO_DEV_SL3516
139 tristate "Storlink SL3516 crypto offloader"
140 depends on ARCH_GEMINI || COMPILE_TEST
141 depends on HAS_IOMEM && PM
142 select CRYPTO_SKCIPHER
148 This option allows you to have support for SL3516 crypto offloader.
150 config CRYPTO_DEV_SL3516_DEBUG
151 bool "Enable SL3516 stats"
152 depends on CRYPTO_DEV_SL3516
155 Say y to enable SL3516 debug stats.
156 This will create /sys/kernel/debug/sl3516/stats for displaying
157 the number of requests per algorithm and other internal stats.
159 config CRYPTO_DEV_HIFN_795X
160 tristate "Driver HIFN 795x crypto accelerator chips"
161 select CRYPTO_LIB_DES
162 select CRYPTO_SKCIPHER
163 select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG
165 depends on !ARCH_DMA_ADDR_T_64BIT
167 This option allows you to have support for HIFN 795x crypto adapters.
169 config CRYPTO_DEV_HIFN_795X_RNG
170 bool "HIFN 795x random number generator"
171 depends on CRYPTO_DEV_HIFN_795X
173 Select this option if you want to enable the random number generator
174 on the HIFN 795x crypto adapters.
176 source "drivers/crypto/caam/Kconfig"
178 config CRYPTO_DEV_TALITOS
179 tristate "Talitos Freescale Security Engine (SEC)"
181 select CRYPTO_AUTHENC
182 select CRYPTO_SKCIPHER
184 select CRYPTO_LIB_DES
188 Say 'Y' here to use the Freescale Security Engine (SEC)
189 to offload cryptographic algorithm computation.
191 The Freescale SEC is present on PowerQUICC 'E' processors, such
192 as the MPC8349E and MPC8548E.
194 To compile this driver as a module, choose M here: the module
195 will be called talitos.
197 config CRYPTO_DEV_TALITOS1
198 bool "SEC1 (SEC 1.0 and SEC Lite 1.2)"
199 depends on CRYPTO_DEV_TALITOS
200 depends on PPC_8xx || PPC_82xx
203 Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0
204 found on MPC82xx or the Freescale Security Engine (SEC Lite)
205 version 1.2 found on MPC8xx
207 config CRYPTO_DEV_TALITOS2
208 bool "SEC2+ (SEC version 2.0 or upper)"
209 depends on CRYPTO_DEV_TALITOS
210 default y if !PPC_8xx
212 Say 'Y' here to use the Freescale Security Engine (SEC)
213 version 2 and following as found on MPC83xx, MPC85xx, etc ...
215 config CRYPTO_DEV_PPC4XX
216 tristate "Driver AMCC PPC4xx crypto accelerator"
217 depends on PPC && 4xx
221 select CRYPTO_LIB_AES
225 select CRYPTO_SKCIPHER
227 This option allows you to have support for AMCC crypto acceleration.
229 config HW_RANDOM_PPC4XX
230 bool "PowerPC 4xx generic true random number generator support"
231 depends on CRYPTO_DEV_PPC4XX && HW_RANDOM=y
234 This option provides the kernel-side support for the TRNG hardware
235 found in the security function of some PowerPC 4xx SoCs.
237 config CRYPTO_DEV_OMAP
238 tristate "Support for OMAP crypto HW accelerators"
239 depends on ARCH_OMAP2PLUS
241 OMAP processors have various crypto HW accelerators. Select this if
242 you want to use the OMAP modules for any of the crypto algorithms.
246 config CRYPTO_DEV_OMAP_SHAM
247 tristate "Support for OMAP MD5/SHA1/SHA2 hw accelerator"
248 depends on ARCH_OMAP2PLUS
256 OMAP processors have MD5/SHA1/SHA2 hw accelerator. Select this if you
257 want to use the OMAP module for MD5/SHA1/SHA2 algorithms.
259 config CRYPTO_DEV_OMAP_AES
260 tristate "Support for OMAP AES hw engine"
261 depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP2PLUS
263 select CRYPTO_SKCIPHER
270 OMAP processors have AES module accelerator. Select this if you
271 want to use the OMAP module for AES algorithms.
273 config CRYPTO_DEV_OMAP_DES
274 tristate "Support for OMAP DES/3DES hw engine"
275 depends on ARCH_OMAP2PLUS
276 select CRYPTO_LIB_DES
277 select CRYPTO_SKCIPHER
280 OMAP processors have DES/3DES module accelerator. Select this if you
281 want to use the OMAP module for DES and 3DES algorithms. Currently
282 the ECB and CBC modes of operation are supported by the driver. Also
283 accesses made on unaligned boundaries are supported.
285 endif # CRYPTO_DEV_OMAP
287 config CRYPTO_DEV_SAHARA
288 tristate "Support for SAHARA crypto accelerator"
289 depends on ARCH_MXC && OF
290 select CRYPTO_SKCIPHER
295 This option enables support for the SAHARA HW crypto accelerator
296 found in some Freescale i.MX chips.
298 config CRYPTO_DEV_EXYNOS_RNG
299 tristate "Exynos HW pseudo random number generator support"
300 depends on ARCH_EXYNOS || COMPILE_TEST
304 This driver provides kernel-side support through the
305 cryptographic API for the pseudo random number generator hardware
306 found on Exynos SoCs.
308 To compile this driver as a module, choose M here: the
309 module will be called exynos-rng.
313 config CRYPTO_DEV_S5P
314 tristate "Support for Samsung S5PV210/Exynos crypto accelerator"
315 depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
318 select CRYPTO_SKCIPHER
320 This option allows you to have support for S5P crypto acceleration.
321 Select this to offload Samsung S5PV210 or S5PC110, Exynos from AES
322 algorithms execution.
324 config CRYPTO_DEV_EXYNOS_HASH
325 bool "Support for Samsung Exynos HASH accelerator"
326 depends on CRYPTO_DEV_S5P
327 depends on !CRYPTO_DEV_EXYNOS_RNG && CRYPTO_DEV_EXYNOS_RNG!=m
332 Select this to offload Exynos from HASH MD5/SHA1/SHA256.
333 This will select software SHA1, MD5 and SHA256 as they are
334 needed for small and zero-size messages.
335 HASH algorithms will be disabled if EXYNOS_RNG
336 is enabled due to hw conflict.
339 bool "Support for IBM PowerPC Nest (NX) cryptographic acceleration"
342 This enables support for the NX hardware cryptographic accelerator
343 coprocessor that is in IBM PowerPC P7+ or later processors. This
344 does not actually enable any drivers, it only allows you to select
345 which acceleration type (encryption and/or compression) to enable.
348 source "drivers/crypto/nx/Kconfig"
351 config CRYPTO_DEV_ATMEL_AUTHENC
352 bool "Support for Atmel IPSEC/SSL hw accelerator"
353 depends on ARCH_AT91 || COMPILE_TEST
354 depends on CRYPTO_DEV_ATMEL_AES
356 Some Atmel processors can combine the AES and SHA hw accelerators
357 to enhance support of IPSEC/SSL.
358 Select this if you want to use the Atmel modules for
359 authenc(hmac(shaX),Y(cbc)) algorithms.
361 config CRYPTO_DEV_ATMEL_AES
362 tristate "Support for Atmel AES hw accelerator"
363 depends on ARCH_AT91 || COMPILE_TEST
366 select CRYPTO_SKCIPHER
367 select CRYPTO_AUTHENC if CRYPTO_DEV_ATMEL_AUTHENC
368 select CRYPTO_DEV_ATMEL_SHA if CRYPTO_DEV_ATMEL_AUTHENC
370 Some Atmel processors have AES hw accelerator.
371 Select this if you want to use the Atmel module for
374 To compile this driver as a module, choose M here: the module
375 will be called atmel-aes.
377 config CRYPTO_DEV_ATMEL_TDES
378 tristate "Support for Atmel DES/TDES hw accelerator"
379 depends on ARCH_AT91 || COMPILE_TEST
380 select CRYPTO_LIB_DES
381 select CRYPTO_SKCIPHER
383 Some Atmel processors have DES/TDES hw accelerator.
384 Select this if you want to use the Atmel module for
387 To compile this driver as a module, choose M here: the module
388 will be called atmel-tdes.
390 config CRYPTO_DEV_ATMEL_SHA
391 tristate "Support for Atmel SHA hw accelerator"
392 depends on ARCH_AT91 || COMPILE_TEST
395 Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512
397 Select this if you want to use the Atmel module for
398 SHA1/SHA224/SHA256/SHA384/SHA512 algorithms.
400 To compile this driver as a module, choose M here: the module
401 will be called atmel-sha.
403 config CRYPTO_DEV_ATMEL_I2C
407 config CRYPTO_DEV_ATMEL_ECC
408 tristate "Support for Microchip / Atmel ECC hw accelerator"
410 select CRYPTO_DEV_ATMEL_I2C
414 Microhip / Atmel ECC hw accelerator.
415 Select this if you want to use the Microchip / Atmel module for
418 To compile this driver as a module, choose M here: the module
419 will be called atmel-ecc.
421 config CRYPTO_DEV_ATMEL_SHA204A
422 tristate "Support for Microchip / Atmel SHA accelerator and RNG"
424 select CRYPTO_DEV_ATMEL_I2C
428 Microhip / Atmel SHA accelerator and RNG.
429 Select this if you want to use the Microchip / Atmel SHA204A
430 module as a random number generator. (Other functions of the
431 chip are currently not exposed by this driver)
433 To compile this driver as a module, choose M here: the module
434 will be called atmel-sha204a.
436 config CRYPTO_DEV_CCP
437 bool "Support for AMD Secure Processor"
438 depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM
440 The AMD Secure Processor provides support for the Cryptographic Coprocessor
441 (CCP) and the Platform Security Processor (PSP) devices.
444 source "drivers/crypto/ccp/Kconfig"
447 config CRYPTO_DEV_MXS_DCP
448 tristate "Support for Freescale MXS DCP"
449 depends on (ARCH_MXS || ARCH_MXC)
454 select CRYPTO_SKCIPHER
457 The Freescale i.MX23/i.MX28 has SHA1/SHA256 and AES128 CBC/ECB
458 co-processor on the die.
460 To compile this driver as a module, choose M here: the module
461 will be called mxs-dcp.
463 source "drivers/crypto/cavium/cpt/Kconfig"
464 source "drivers/crypto/cavium/nitrox/Kconfig"
465 source "drivers/crypto/marvell/Kconfig"
466 source "drivers/crypto/intel/Kconfig"
468 config CRYPTO_DEV_CAVIUM_ZIP
469 tristate "Cavium ZIP driver"
470 depends on PCI && 64BIT && (ARM64 || COMPILE_TEST)
472 Select this option if you want to enable compression/decompression
473 acceleration on Cavium's ARM based SoCs
475 config CRYPTO_DEV_QCE
476 tristate "Qualcomm crypto engine accelerator"
477 depends on ARCH_QCOM || COMPILE_TEST
480 This driver supports Qualcomm crypto engine accelerator
481 hardware. To compile this driver as a module, choose M here. The
482 module will be called qcrypto.
484 config CRYPTO_DEV_QCE_SKCIPHER
486 depends on CRYPTO_DEV_QCE
488 select CRYPTO_LIB_DES
493 select CRYPTO_SKCIPHER
495 config CRYPTO_DEV_QCE_SHA
497 depends on CRYPTO_DEV_QCE
501 config CRYPTO_DEV_QCE_AEAD
503 depends on CRYPTO_DEV_QCE
504 select CRYPTO_AUTHENC
505 select CRYPTO_LIB_DES
508 prompt "Algorithms enabled for QCE acceleration"
509 default CRYPTO_DEV_QCE_ENABLE_ALL
510 depends on CRYPTO_DEV_QCE
512 This option allows to choose whether to build support for all algorithms
513 (default), hashes-only, or skciphers-only.
515 The QCE engine does not appear to scale as well as the CPU to handle
516 multiple crypto requests. While the ipq40xx chips have 4-core CPUs, the
517 QCE handles only 2 requests in parallel.
519 Ipsec throughput seems to improve when disabling either family of
520 algorithms, sharing the load with the CPU. Enabling skciphers-only
521 appears to work best.
523 config CRYPTO_DEV_QCE_ENABLE_ALL
524 bool "All supported algorithms"
525 select CRYPTO_DEV_QCE_SKCIPHER
526 select CRYPTO_DEV_QCE_SHA
527 select CRYPTO_DEV_QCE_AEAD
529 Enable all supported algorithms:
530 - AES (CBC, CTR, ECB, XTS)
534 - SHA256, HMAC-SHA256
536 config CRYPTO_DEV_QCE_ENABLE_SKCIPHER
537 bool "Symmetric-key ciphers only"
538 select CRYPTO_DEV_QCE_SKCIPHER
540 Enable symmetric-key ciphers only:
541 - AES (CBC, CTR, ECB, XTS)
545 config CRYPTO_DEV_QCE_ENABLE_SHA
546 bool "Hash/HMAC only"
547 select CRYPTO_DEV_QCE_SHA
549 Enable hashes/HMAC algorithms only:
551 - SHA256, HMAC-SHA256
553 config CRYPTO_DEV_QCE_ENABLE_AEAD
554 bool "AEAD algorithms only"
555 select CRYPTO_DEV_QCE_AEAD
557 Enable AEAD algorithms only:
563 config CRYPTO_DEV_QCE_SW_MAX_LEN
564 int "Default maximum request size to use software for AES"
565 depends on CRYPTO_DEV_QCE && CRYPTO_DEV_QCE_SKCIPHER
568 This sets the default maximum request size to perform AES requests
569 using software instead of the crypto engine. It can be changed by
570 setting the aes_sw_max_len parameter.
572 Small blocks are processed faster in software than hardware.
573 Considering the 256-bit ciphers, software is 2-3 times faster than
574 qce at 256-bytes, 30% faster at 512, and about even at 768-bytes.
575 With 128-bit keys, the break-even point would be around 1024-bytes.
577 The default is set a little lower, to 512 bytes, to balance the
578 cost in CPU usage. The minimum recommended setting is 16-bytes
579 (1 AES block), since AES-GCM will fail if you set it lower.
580 Setting this to zero will send all requests to the hardware.
582 Note that 192-bit keys are not supported by the hardware and are
583 always processed by the software fallback, and all DES requests
584 are done by the hardware.
586 config CRYPTO_DEV_QCOM_RNG
587 tristate "Qualcomm Random Number Generator Driver"
588 depends on ARCH_QCOM || COMPILE_TEST
592 This driver provides support for the Random Number
593 Generator hardware found on Qualcomm SoCs.
595 To compile this driver as a module, choose M here. The
596 module will be called qcom-rng. If unsure, say N.
598 #config CRYPTO_DEV_VMX
599 # bool "Support for VMX cryptographic acceleration instructions"
600 # depends on PPC64 && VSX
602 # Support for VMX cryptographic acceleration instructions.
604 #source "drivers/crypto/vmx/Kconfig"
606 config CRYPTO_DEV_IMGTEC_HASH
607 tristate "Imagination Technologies hardware hash accelerator"
608 depends on MIPS || COMPILE_TEST
614 This driver interfaces with the Imagination Technologies
615 hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
618 config CRYPTO_DEV_ROCKCHIP
619 tristate "Rockchip's Cryptographic Engine driver"
620 depends on OF && ARCH_ROCKCHIP
627 select CRYPTO_LIB_DES
632 select CRYPTO_SKCIPHER
635 This driver interfaces with the hardware crypto accelerator.
636 Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
638 config CRYPTO_DEV_ROCKCHIP_DEBUG
639 bool "Enable Rockchip crypto stats"
640 depends on CRYPTO_DEV_ROCKCHIP
643 Say y to enable Rockchip crypto debug stats.
644 This will create /sys/kernel/debug/rk3288_crypto/stats for displaying
645 the number of requests per algorithm and other internal stats.
647 config CRYPTO_DEV_TEGRA
648 tristate "Enable Tegra Security Engine"
649 depends on TEGRA_HOST1X
653 Select this to enable Tegra Security Engine which accelerates various
654 AES encryption/decryption and HASH algorithms.
656 config CRYPTO_DEV_ZYNQMP_AES
657 tristate "Support for Xilinx ZynqMP AES hw accelerator"
658 depends on ZYNQMP_FIRMWARE || COMPILE_TEST
663 Xilinx ZynqMP has AES-GCM engine used for symmetric key
664 encryption and decryption. This driver interfaces with AES hw
665 accelerator. Select this if you want to use the ZynqMP module
668 config CRYPTO_DEV_ZYNQMP_SHA3
669 tristate "Support for Xilinx ZynqMP SHA3 hardware accelerator"
670 depends on ZYNQMP_FIRMWARE || COMPILE_TEST
673 Xilinx ZynqMP has SHA3 engine used for secure hash calculation.
674 This driver interfaces with SHA3 hardware engine.
675 Select this if you want to use the ZynqMP module
676 for SHA3 hash computation.
678 source "drivers/crypto/chelsio/Kconfig"
680 source "drivers/crypto/virtio/Kconfig"
682 config CRYPTO_DEV_BCM_SPU
683 tristate "Broadcom symmetric crypto/hash acceleration support"
684 depends on ARCH_BCM_IPROC
687 select CRYPTO_AUTHENC
688 select CRYPTO_LIB_DES
694 This driver provides support for Broadcom crypto acceleration using the
695 Secure Processing Unit (SPU). The SPU driver registers skcipher,
696 ahash, and aead algorithms with the kernel cryptographic API.
698 source "drivers/crypto/stm32/Kconfig"
700 config CRYPTO_DEV_SAFEXCEL
701 tristate "Inside Secure's SafeXcel cryptographic engine driver"
702 depends on (OF || PCI || COMPILE_TEST) && HAS_IOMEM
703 select CRYPTO_LIB_AES
704 select CRYPTO_AUTHENC
705 select CRYPTO_SKCIPHER
706 select CRYPTO_LIB_DES
713 select CRYPTO_CHACHA20POLY1305
716 This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic
717 engines designed by Inside Secure. It currently accelerates DES, 3DES and
718 AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256,
719 SHA384 and SHA512 hash algorithms for both basic hash and HMAC.
720 Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations.
722 config CRYPTO_DEV_ARTPEC6
723 tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."
724 depends on ARM && (ARCH_ARTPEC || COMPILE_TEST)
729 select CRYPTO_SKCIPHER
736 Enables the driver for the on-chip crypto accelerator
739 To compile this driver as a module, choose M here.
741 config CRYPTO_DEV_CCREE
742 tristate "Support for ARM TrustZone CryptoCell family of security processors"
743 depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA
746 select CRYPTO_SKCIPHER
747 select CRYPTO_LIB_DES
749 select CRYPTO_AUTHENC
760 select CRYPTO_SM4_GENERIC
761 select CRYPTO_SM3_GENERIC
763 Say 'Y' to enable a driver for the REE interface of the Arm
764 TrustZone CryptoCell family of processors. Currently the
765 CryptoCell 713, 703, 712, 710 and 630 are supported.
766 Choose this if you wish to use hardware acceleration of
767 cryptographic operations on the system REE.
770 source "drivers/crypto/hisilicon/Kconfig"
772 source "drivers/crypto/amlogic/Kconfig"
774 config CRYPTO_DEV_SA2UL
775 tristate "Support for TI security accelerator"
776 depends on ARCH_K3 || COMPILE_TEST
779 select CRYPTO_AUTHENC
787 K3 devices include a security accelerator engine that may be
788 used for crypto offload. Select this if you want to use hardware
789 acceleration for cryptographic algorithms on these devices.
791 source "drivers/crypto/aspeed/Kconfig"
792 source "drivers/crypto/starfive/Kconfig"