xref: /openbmc/linux/drivers/crypto/Kconfig (revision 57d67c6e)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2b511431dSJan Engelhardt
3b511431dSJan Engelhardtmenuconfig CRYPTO_HW
4b511431dSJan Engelhardt	bool "Hardware crypto devices"
5b511431dSJan Engelhardt	default y
6a7f7f624SMasahiro Yamada	help
706bfb7ebSJan Engelhardt	  Say Y here to get to see options for hardware crypto devices and
806bfb7ebSJan Engelhardt	  processors. This option alone does not add any kernel code.
906bfb7ebSJan Engelhardt
1006bfb7ebSJan Engelhardt	  If you say N, all options in this submenu will be skipped and disabled.
11b511431dSJan Engelhardt
12b511431dSJan Engelhardtif CRYPTO_HW
131da177e4SLinus Torvalds
143914b931SCorentin Labbesource "drivers/crypto/allwinner/Kconfig"
153914b931SCorentin Labbe
161da177e4SLinus Torvaldsconfig CRYPTO_DEV_PADLOCK
17d158325eSHerbert Xu	tristate "Support for VIA PadLock ACE"
182f817418SHerbert Xu	depends on X86 && !UML
191da177e4SLinus Torvalds	help
201da177e4SLinus Torvalds	  Some VIA processors come with an integrated crypto engine
211da177e4SLinus Torvalds	  (so called VIA PadLock ACE, Advanced Cryptography Engine)
221191f0a4SMichal Ludvig	  that provides instructions for very fast cryptographic
231191f0a4SMichal Ludvig	  operations with supported algorithms.
241da177e4SLinus Torvalds
251da177e4SLinus Torvalds	  The instructions are used only when the CPU supports them.
265644bda5SMichal Ludvig	  Otherwise software encryption is used.
275644bda5SMichal Ludvig
281da177e4SLinus Torvaldsconfig CRYPTO_DEV_PADLOCK_AES
291191f0a4SMichal Ludvig	tristate "PadLock driver for AES algorithm"
301da177e4SLinus Torvalds	depends on CRYPTO_DEV_PADLOCK
31b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
328131878dSArd Biesheuvel	select CRYPTO_LIB_AES
331da177e4SLinus Torvalds	help
341da177e4SLinus Torvalds	  Use VIA PadLock for AES algorithm.
351da177e4SLinus Torvalds
361191f0a4SMichal Ludvig	  Available in VIA C3 and newer CPUs.
371191f0a4SMichal Ludvig
381191f0a4SMichal Ludvig	  If unsure say M. The compiled module will be
394737f097SPavel Machek	  called padlock-aes.
401191f0a4SMichal Ludvig
416c833275SMichal Ludvigconfig CRYPTO_DEV_PADLOCK_SHA
426c833275SMichal Ludvig	tristate "PadLock driver for SHA1 and SHA256 algorithms"
436c833275SMichal Ludvig	depends on CRYPTO_DEV_PADLOCK
44bbbee467SHerbert Xu	select CRYPTO_HASH
456c833275SMichal Ludvig	select CRYPTO_SHA1
466c833275SMichal Ludvig	select CRYPTO_SHA256
476c833275SMichal Ludvig	help
486c833275SMichal Ludvig	  Use VIA PadLock for SHA1/SHA256 algorithms.
496c833275SMichal Ludvig
506c833275SMichal Ludvig	  Available in VIA C7 and newer processors.
516c833275SMichal Ludvig
526c833275SMichal Ludvig	  If unsure say M. The compiled module will be
534737f097SPavel Machek	  called padlock-sha.
546c833275SMichal Ludvig
559fe757b0SJordan Crouseconfig CRYPTO_DEV_GEODE
569fe757b0SJordan Crouse	tristate "Support for the Geode LX AES engine"
57f6259deaSSimon Arlott	depends on X86_32 && PCI
589fe757b0SJordan Crouse	select CRYPTO_ALGAPI
59b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
609fe757b0SJordan Crouse	help
619fe757b0SJordan Crouse	  Say 'Y' here to use the AMD Geode LX processor on-board AES
623dde6ad8SDavid Sterba	  engine for the CryptoAPI AES algorithm.
639fe757b0SJordan Crouse
649fe757b0SJordan Crouse	  To compile this driver as a module, choose M here: the module
659fe757b0SJordan Crouse	  will be called geode-aes.
669fe757b0SJordan Crouse
6761d48c2cSMartin Schwidefskyconfig ZCRYPT
68a3358e3dSHarald Freudenberger	tristate "Support for s390 cryptographic adapters"
6961d48c2cSMartin Schwidefsky	depends on S390
702f7c8bd6SRalph Wuerthner	select HW_RANDOM
7161d48c2cSMartin Schwidefsky	help
72a3358e3dSHarald Freudenberger	  Select this option if you want to enable support for
73a3358e3dSHarald Freudenberger	  s390 cryptographic adapters like:
740ae88ccfSHarald Freudenberger	  + Crypto Express 2 up to 7 Coprocessor (CEXxC)
750ae88ccfSHarald Freudenberger	  + Crypto Express 2 up to 7 Accelerator (CEXxA)
760ae88ccfSHarald Freudenberger	  + Crypto Express 4 up to 7 EP11 Coprocessor (CEXxP)
770ae88ccfSHarald Freudenberger
780ae88ccfSHarald Freudenbergerconfig ZCRYPT_DEBUG
790ae88ccfSHarald Freudenberger	bool "Enable debug features for s390 cryptographic adapters"
800ae88ccfSHarald Freudenberger	default n
810ae88ccfSHarald Freudenberger	depends on DEBUG_KERNEL
820ae88ccfSHarald Freudenberger	depends on ZCRYPT
830ae88ccfSHarald Freudenberger	help
840ae88ccfSHarald Freudenberger	  Say 'Y' here to enable some additional debug features on the
850ae88ccfSHarald Freudenberger	  s390 cryptographic adapters driver.
860ae88ccfSHarald Freudenberger
870ae88ccfSHarald Freudenberger	  There will be some more sysfs attributes displayed for ap cards
880ae88ccfSHarald Freudenberger	  and queues and some flags on crypto requests are interpreted as
890ae88ccfSHarald Freudenberger	  debugging messages to force error injection.
900ae88ccfSHarald Freudenberger
910ae88ccfSHarald Freudenberger	  Do not enable on production level kernel build.
920ae88ccfSHarald Freudenberger
930ae88ccfSHarald Freudenberger	  If unsure, say N.
9461d48c2cSMartin Schwidefsky
9500fab235SHarald Freudenbergerconfig ZCRYPT_MULTIDEVNODES
9600fab235SHarald Freudenberger	bool "Support for multiple zcrypt device nodes"
9700fab235SHarald Freudenberger	default y
9800fab235SHarald Freudenberger	depends on S390
9900fab235SHarald Freudenberger	depends on ZCRYPT
10000fab235SHarald Freudenberger	help
10100fab235SHarald Freudenberger	  With this option enabled the zcrypt device driver can
10200fab235SHarald Freudenberger	  provide multiple devices nodes in /dev. Each device
10300fab235SHarald Freudenberger	  node can get customized to limit access and narrow
10400fab235SHarald Freudenberger	  down the use of the available crypto hardware.
10500fab235SHarald Freudenberger
106e80d4af0SHarald Freudenbergerconfig PKEY
107e80d4af0SHarald Freudenberger	tristate "Kernel API for protected key handling"
108e80d4af0SHarald Freudenberger	depends on S390
109e80d4af0SHarald Freudenberger	depends on ZCRYPT
110e80d4af0SHarald Freudenberger	help
111e80d4af0SHarald Freudenberger	  With this option enabled the pkey kernel module provides an API
112e80d4af0SHarald Freudenberger	  for creation and handling of protected keys. Other parts of the
113e80d4af0SHarald Freudenberger	  kernel or userspace applications may use these functions.
114e80d4af0SHarald Freudenberger
115e80d4af0SHarald Freudenberger	  Select this option if you want to enable the kernel and userspace
116e80d4af0SHarald Freudenberger	  API for proteced key handling.
117e80d4af0SHarald Freudenberger
118e80d4af0SHarald Freudenberger	  Please note that creation of protected keys from secure keys
119e80d4af0SHarald Freudenberger	  requires to have at least one CEX card in coprocessor mode
120e80d4af0SHarald Freudenberger	  available at runtime.
12161d48c2cSMartin Schwidefsky
122c4684f98SHarald Freudenbergerconfig CRYPTO_PAES_S390
123c4684f98SHarald Freudenberger	tristate "PAES cipher algorithms"
124c4684f98SHarald Freudenberger	depends on S390
125c4684f98SHarald Freudenberger	depends on ZCRYPT
126c4684f98SHarald Freudenberger	depends on PKEY
127c4684f98SHarald Freudenberger	select CRYPTO_ALGAPI
128b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
129c4684f98SHarald Freudenberger	help
130c4684f98SHarald Freudenberger	  This is the s390 hardware accelerated implementation of the
131c4684f98SHarald Freudenberger	  AES cipher algorithms for use with protected key.
132c4684f98SHarald Freudenberger
133c4684f98SHarald Freudenberger	  Select this option if you want to use the paes cipher
134c4684f98SHarald Freudenberger	  for example to use protected key encrypted devices.
135c4684f98SHarald Freudenberger
1363f5615e0SJan Glauberconfig S390_PRNG
1373f5615e0SJan Glauber	tristate "Pseudo random number generator device driver"
1383f5615e0SJan Glauber	depends on S390
1393f5615e0SJan Glauber	default "m"
1403f5615e0SJan Glauber	help
1413f5615e0SJan Glauber	  Select this option if you want to use the s390 pseudo random number
1423f5615e0SJan Glauber	  generator. The PRNG is part of the cryptographic processor functions
1433f5615e0SJan Glauber	  and uses triple-DES to generate secure random numbers like the
144d393d9b8SJan Glauber	  ANSI X9.17 standard. User-space programs access the
145d393d9b8SJan Glauber	  pseudo-random-number device through the char device /dev/prandom.
146d393d9b8SJan Glauber
147d393d9b8SJan Glauber	  It is available as of z9.
1483f5615e0SJan Glauber
1490a625fd2SDavid S. Millerconfig CRYPTO_DEV_NIAGARA2
1500a625fd2SDavid S. Miller	tristate "Niagara2 Stream Processing Unit driver"
15104007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
152b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
153596103cfSHerbert Xu	select CRYPTO_HASH
1548054b800SLABBE Corentin	select CRYPTO_MD5
1558054b800SLABBE Corentin	select CRYPTO_SHA1
1568054b800SLABBE Corentin	select CRYPTO_SHA256
1570a625fd2SDavid S. Miller	depends on SPARC64
1580a625fd2SDavid S. Miller	help
1590a625fd2SDavid S. Miller	  Each core of a Niagara2 processor contains a Stream
1600a625fd2SDavid S. Miller	  Processing Unit, which itself contains several cryptographic
1610a625fd2SDavid S. Miller	  sub-units.  One set provides the Modular Arithmetic Unit,
1620a625fd2SDavid S. Miller	  used for SSL offload.  The other set provides the Cipher
1630a625fd2SDavid S. Miller	  Group, which can perform encryption, decryption, hashing,
1640a625fd2SDavid S. Miller	  checksumming, and raw copies.
1650a625fd2SDavid S. Miller
16646c5338dSCorentin Labbeconfig CRYPTO_DEV_SL3516
167df941fddSGeert Uytterhoeven	tristate "Storlink SL3516 crypto offloader"
168e29dd5c8SGeert Uytterhoeven	depends on ARCH_GEMINI || COMPILE_TEST
169e29dd5c8SGeert Uytterhoeven	depends on HAS_IOMEM && PM
17046c5338dSCorentin Labbe	select CRYPTO_SKCIPHER
17146c5338dSCorentin Labbe	select CRYPTO_ENGINE
17246c5338dSCorentin Labbe	select CRYPTO_ECB
17346c5338dSCorentin Labbe	select CRYPTO_AES
17446c5338dSCorentin Labbe	select HW_RANDOM
17546c5338dSCorentin Labbe	help
17646c5338dSCorentin Labbe	  This option allows you to have support for SL3516 crypto offloader.
17746c5338dSCorentin Labbe
17846c5338dSCorentin Labbeconfig CRYPTO_DEV_SL3516_DEBUG
17946c5338dSCorentin Labbe	bool "Enable SL3516 stats"
18046c5338dSCorentin Labbe	depends on CRYPTO_DEV_SL3516
18146c5338dSCorentin Labbe	depends on DEBUG_FS
18246c5338dSCorentin Labbe	help
18346c5338dSCorentin Labbe	  Say y to enable SL3516 debug stats.
18446c5338dSCorentin Labbe	  This will create /sys/kernel/debug/sl3516/stats for displaying
18546c5338dSCorentin Labbe	  the number of requests per algorithm and other internal stats.
18646c5338dSCorentin Labbe
187f7d0561eSEvgeniy Polyakovconfig CRYPTO_DEV_HIFN_795X
188f7d0561eSEvgeniy Polyakov	tristate "Driver HIFN 795x crypto accelerator chips"
18904007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
190b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
191946fef4eSHerbert Xu	select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG
1922707b937SJan Glauber	depends on PCI
19375b76625SRichard Weinberger	depends on !ARCH_DMA_ADDR_T_64BIT
194f7d0561eSEvgeniy Polyakov	help
195f7d0561eSEvgeniy Polyakov	  This option allows you to have support for HIFN 795x crypto adapters.
196f7d0561eSEvgeniy Polyakov
197946fef4eSHerbert Xuconfig CRYPTO_DEV_HIFN_795X_RNG
198946fef4eSHerbert Xu	bool "HIFN 795x random number generator"
199946fef4eSHerbert Xu	depends on CRYPTO_DEV_HIFN_795X
200946fef4eSHerbert Xu	help
201946fef4eSHerbert Xu	  Select this option if you want to enable the random number generator
202946fef4eSHerbert Xu	  on the HIFN 795x crypto adapters.
203f7d0561eSEvgeniy Polyakov
2048636a1f9SMasahiro Yamadasource "drivers/crypto/caam/Kconfig"
2058e8ec596SKim Phillips
2069c4a7965SKim Phillipsconfig CRYPTO_DEV_TALITOS
2079c4a7965SKim Phillips	tristate "Talitos Freescale Security Engine (SEC)"
208596103cfSHerbert Xu	select CRYPTO_AEAD
2099c4a7965SKim Phillips	select CRYPTO_AUTHENC
210b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
211596103cfSHerbert Xu	select CRYPTO_HASH
212dbc2e87bSHerbert Xu	select CRYPTO_LIB_DES
2139c4a7965SKim Phillips	select HW_RANDOM
2149c4a7965SKim Phillips	depends on FSL_SOC
2159c4a7965SKim Phillips	help
2169c4a7965SKim Phillips	  Say 'Y' here to use the Freescale Security Engine (SEC)
2179c4a7965SKim Phillips	  to offload cryptographic algorithm computation.
2189c4a7965SKim Phillips
2199c4a7965SKim Phillips	  The Freescale SEC is present on PowerQUICC 'E' processors, such
2209c4a7965SKim Phillips	  as the MPC8349E and MPC8548E.
2219c4a7965SKim Phillips
2229c4a7965SKim Phillips	  To compile this driver as a module, choose M here: the module
2239c4a7965SKim Phillips	  will be called talitos.
2249c4a7965SKim Phillips
2255b841a65SLEROY Christopheconfig CRYPTO_DEV_TALITOS1
2265b841a65SLEROY Christophe	bool "SEC1 (SEC 1.0 and SEC Lite 1.2)"
2275b841a65SLEROY Christophe	depends on CRYPTO_DEV_TALITOS
2285b841a65SLEROY Christophe	depends on PPC_8xx || PPC_82xx
2295b841a65SLEROY Christophe	default y
2305b841a65SLEROY Christophe	help
2315b841a65SLEROY Christophe	  Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0
2325b841a65SLEROY Christophe	  found on MPC82xx or the Freescale Security Engine (SEC Lite)
2335b841a65SLEROY Christophe	  version 1.2 found on MPC8xx
2345b841a65SLEROY Christophe
2355b841a65SLEROY Christopheconfig CRYPTO_DEV_TALITOS2
2365b841a65SLEROY Christophe	bool "SEC2+ (SEC version 2.0 or upper)"
2375b841a65SLEROY Christophe	depends on CRYPTO_DEV_TALITOS
2385b841a65SLEROY Christophe	default y if !PPC_8xx
2395b841a65SLEROY Christophe	help
2405b841a65SLEROY Christophe	  Say 'Y' here to use the Freescale Security Engine (SEC)
2415b841a65SLEROY Christophe	  version 2 and following as found on MPC83xx, MPC85xx, etc ...
2425b841a65SLEROY Christophe
24381bef015SChristian Hohnstaedtconfig CRYPTO_DEV_IXP4XX
24481bef015SChristian Hohnstaedt	tristate "Driver for IXP4xx crypto hardware acceleration"
2459665c52bSKrzysztof Hałasa	depends on ARCH_IXP4XX && IXP4XX_QMGR && IXP4XX_NPE
246dfb098d6SCorentin Labbe	select CRYPTO_AES
247dfb098d6SCorentin Labbe	select CRYPTO_DES
248dfb098d6SCorentin Labbe	select CRYPTO_ECB
249dfb098d6SCorentin Labbe	select CRYPTO_CBC
250dfb098d6SCorentin Labbe	select CRYPTO_CTR
25104007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
252596103cfSHerbert Xu	select CRYPTO_AEAD
253090657e4SImre Kaloz	select CRYPTO_AUTHENC
254b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
25581bef015SChristian Hohnstaedt	help
25681bef015SChristian Hohnstaedt	  Driver for the IXP4xx NPE crypto engine.
25781bef015SChristian Hohnstaedt
258049359d6SJames Hsiaoconfig CRYPTO_DEV_PPC4XX
259049359d6SJames Hsiao	tristate "Driver AMCC PPC4xx crypto accelerator"
260049359d6SJames Hsiao	depends on PPC && 4xx
261049359d6SJames Hsiao	select CRYPTO_HASH
262a0aae821SChristian Lamparter	select CRYPTO_AEAD
263298b4c60SChristian Lamparter	select CRYPTO_AES
264da3e7a97SArd Biesheuvel	select CRYPTO_LIB_AES
265a0aae821SChristian Lamparter	select CRYPTO_CCM
26698e87e3dSChristian Lamparter	select CRYPTO_CTR
267a0aae821SChristian Lamparter	select CRYPTO_GCM
268b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
269049359d6SJames Hsiao	help
270049359d6SJames Hsiao	  This option allows you to have support for AMCC crypto acceleration.
271049359d6SJames Hsiao
2725343e674SChristian Lamparterconfig HW_RANDOM_PPC4XX
2735343e674SChristian Lamparter	bool "PowerPC 4xx generic true random number generator support"
27463b8ee4fSFlorian Fainelli	depends on CRYPTO_DEV_PPC4XX && HW_RANDOM=y
2755343e674SChristian Lamparter	default y
276a7f7f624SMasahiro Yamada	help
2775343e674SChristian Lamparter	 This option provides the kernel-side support for the TRNG hardware
2785343e674SChristian Lamparter	 found in the security function of some PowerPC 4xx SoCs.
2795343e674SChristian Lamparter
28074ed87e7STero Kristoconfig CRYPTO_DEV_OMAP
28174ed87e7STero Kristo	tristate "Support for OMAP crypto HW accelerators"
28274ed87e7STero Kristo	depends on ARCH_OMAP2PLUS
28374ed87e7STero Kristo	help
28474ed87e7STero Kristo	  OMAP processors have various crypto HW accelerators. Select this if
28574ed87e7STero Kristo	  you want to use the OMAP modules for any of the crypto algorithms.
28674ed87e7STero Kristo
28774ed87e7STero Kristoif CRYPTO_DEV_OMAP
28874ed87e7STero Kristo
2898628e7c8SDmitry Kasatkinconfig CRYPTO_DEV_OMAP_SHAM
290eaef7e3fSLokesh Vutla	tristate "Support for OMAP MD5/SHA1/SHA2 hw accelerator"
291eaef7e3fSLokesh Vutla	depends on ARCH_OMAP2PLUS
29238281194SArnd Bergmann	select CRYPTO_ENGINE
2938628e7c8SDmitry Kasatkin	select CRYPTO_SHA1
2948628e7c8SDmitry Kasatkin	select CRYPTO_MD5
295eaef7e3fSLokesh Vutla	select CRYPTO_SHA256
296eaef7e3fSLokesh Vutla	select CRYPTO_SHA512
297eaef7e3fSLokesh Vutla	select CRYPTO_HMAC
2988628e7c8SDmitry Kasatkin	help
299eaef7e3fSLokesh Vutla	  OMAP processors have MD5/SHA1/SHA2 hw accelerator. Select this if you
300eaef7e3fSLokesh Vutla	  want to use the OMAP module for MD5/SHA1/SHA2 algorithms.
3018628e7c8SDmitry Kasatkin
302537559a5SDmitry Kasatkinconfig CRYPTO_DEV_OMAP_AES
303537559a5SDmitry Kasatkin	tristate "Support for OMAP AES hw engine"
3041bbf6437SJoel Fernandes	depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP2PLUS
305537559a5SDmitry Kasatkin	select CRYPTO_AES
306b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
3070529900aSBaolin Wang	select CRYPTO_ENGINE
3089fcb191aSLokesh Vutla	select CRYPTO_CBC
3099fcb191aSLokesh Vutla	select CRYPTO_ECB
3109fcb191aSLokesh Vutla	select CRYPTO_CTR
311ad18cc9dSTero Kristo	select CRYPTO_AEAD
312537559a5SDmitry Kasatkin	help
313537559a5SDmitry Kasatkin	  OMAP processors have AES module accelerator. Select this if you
314537559a5SDmitry Kasatkin	  want to use the OMAP module for AES algorithms.
315537559a5SDmitry Kasatkin
316701d0f19SJoel Fernandesconfig CRYPTO_DEV_OMAP_DES
31797ee7ed3SPeter Meerwald	tristate "Support for OMAP DES/3DES hw engine"
318701d0f19SJoel Fernandes	depends on ARCH_OMAP2PLUS
31904007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
320b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
321f1b77aacSBaolin Wang	select CRYPTO_ENGINE
322701d0f19SJoel Fernandes	help
323701d0f19SJoel Fernandes	  OMAP processors have DES/3DES module accelerator. Select this if you
324701d0f19SJoel Fernandes	  want to use the OMAP module for DES and 3DES algorithms. Currently
32597ee7ed3SPeter Meerwald	  the ECB and CBC modes of operation are supported by the driver. Also
32697ee7ed3SPeter Meerwald	  accesses made on unaligned boundaries are supported.
327701d0f19SJoel Fernandes
32874ed87e7STero Kristoendif # CRYPTO_DEV_OMAP
32974ed87e7STero Kristo
3305de88752SJavier Martinconfig CRYPTO_DEV_SAHARA
3315de88752SJavier Martin	tristate "Support for SAHARA crypto accelerator"
33274d24d83SPaul Bolle	depends on ARCH_MXC && OF
333b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
3345de88752SJavier Martin	select CRYPTO_AES
3355de88752SJavier Martin	select CRYPTO_ECB
3365de88752SJavier Martin	help
3375de88752SJavier Martin	  This option enables support for the SAHARA HW crypto accelerator
3385de88752SJavier Martin	  found in some Freescale i.MX chips.
3395de88752SJavier Martin
340c46ea13fSKrzysztof Kozlowskiconfig CRYPTO_DEV_EXYNOS_RNG
341b279997fSKrzysztof Kozlowski	tristate "Exynos HW pseudo random number generator support"
342c46ea13fSKrzysztof Kozlowski	depends on ARCH_EXYNOS || COMPILE_TEST
343c46ea13fSKrzysztof Kozlowski	depends on HAS_IOMEM
344c46ea13fSKrzysztof Kozlowski	select CRYPTO_RNG
345a7f7f624SMasahiro Yamada	help
346c46ea13fSKrzysztof Kozlowski	  This driver provides kernel-side support through the
347c46ea13fSKrzysztof Kozlowski	  cryptographic API for the pseudo random number generator hardware
348c46ea13fSKrzysztof Kozlowski	  found on Exynos SoCs.
349c46ea13fSKrzysztof Kozlowski
350c46ea13fSKrzysztof Kozlowski	  To compile this driver as a module, choose M here: the
351c46ea13fSKrzysztof Kozlowski	  module will be called exynos-rng.
352c46ea13fSKrzysztof Kozlowski
353c46ea13fSKrzysztof Kozlowski	  If unsure, say Y.
354c46ea13fSKrzysztof Kozlowski
355a49e490cSVladimir Zapolskiyconfig CRYPTO_DEV_S5P
356e922e96fSNaveen Krishna Chatradhi	tristate "Support for Samsung S5PV210/Exynos crypto accelerator"
357dc1d9deeSKrzysztof Kozlowski	depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
358ee1b23d1SGeert Uytterhoeven	depends on HAS_IOMEM
359a49e490cSVladimir Zapolskiy	select CRYPTO_AES
360b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
361a49e490cSVladimir Zapolskiy	help
362a49e490cSVladimir Zapolskiy	  This option allows you to have support for S5P crypto acceleration.
363e922e96fSNaveen Krishna Chatradhi	  Select this to offload Samsung S5PV210 or S5PC110, Exynos from AES
364a49e490cSVladimir Zapolskiy	  algorithms execution.
365a49e490cSVladimir Zapolskiy
366c2afad6cSKamil Koniecznyconfig CRYPTO_DEV_EXYNOS_HASH
367c2afad6cSKamil Konieczny	bool "Support for Samsung Exynos HASH accelerator"
368c2afad6cSKamil Konieczny	depends on CRYPTO_DEV_S5P
369c2afad6cSKamil Konieczny	depends on !CRYPTO_DEV_EXYNOS_RNG && CRYPTO_DEV_EXYNOS_RNG!=m
370c2afad6cSKamil Konieczny	select CRYPTO_SHA1
371c2afad6cSKamil Konieczny	select CRYPTO_MD5
372c2afad6cSKamil Konieczny	select CRYPTO_SHA256
373c2afad6cSKamil Konieczny	help
374c2afad6cSKamil Konieczny	  Select this to offload Exynos from HASH MD5/SHA1/SHA256.
375c2afad6cSKamil Konieczny	  This will select software SHA1, MD5 and SHA256 as they are
376c2afad6cSKamil Konieczny	  needed for small and zero-size messages.
377c2afad6cSKamil Konieczny	  HASH algorithms will be disabled if EXYNOS_RNG
378c2afad6cSKamil Konieczny	  is enabled due to hw conflict.
379c2afad6cSKamil Konieczny
380aef7b31cSKent Yoderconfig CRYPTO_DEV_NX
3817011a122SDan Streetman	bool "Support for IBM PowerPC Nest (NX) cryptographic acceleration"
3827011a122SDan Streetman	depends on PPC64
383aef7b31cSKent Yoder	help
3847011a122SDan Streetman	  This enables support for the NX hardware cryptographic accelerator
3857011a122SDan Streetman	  coprocessor that is in IBM PowerPC P7+ or later processors.  This
3867011a122SDan Streetman	  does not actually enable any drivers, it only allows you to select
3877011a122SDan Streetman	  which acceleration type (encryption and/or compression) to enable.
388322cacceSSeth Jennings
389322cacceSSeth Jenningsif CRYPTO_DEV_NX
390322cacceSSeth Jennings	source "drivers/crypto/nx/Kconfig"
391322cacceSSeth Jenningsendif
392aef7b31cSKent Yoder
3932789c08fSAndreas Westinconfig CRYPTO_DEV_UX500
3942789c08fSAndreas Westin	tristate "Driver for ST-Ericsson UX500 crypto hardware acceleration"
3952789c08fSAndreas Westin	depends on ARCH_U8500
3962789c08fSAndreas Westin	help
3972789c08fSAndreas Westin	  Driver for ST-Ericsson UX500 crypto engine.
3982789c08fSAndreas Westin
3992789c08fSAndreas Westinif CRYPTO_DEV_UX500
4002789c08fSAndreas Westin	source "drivers/crypto/ux500/Kconfig"
4012789c08fSAndreas Westinendif # if CRYPTO_DEV_UX500
4022789c08fSAndreas Westin
40389a82ef8SCyrille Pitchenconfig CRYPTO_DEV_ATMEL_AUTHENC
404aee1f9f3SYueHaibing	bool "Support for Atmel IPSEC/SSL hw accelerator"
405ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
406aee1f9f3SYueHaibing	depends on CRYPTO_DEV_ATMEL_AES
40789a82ef8SCyrille Pitchen	help
40889a82ef8SCyrille Pitchen	  Some Atmel processors can combine the AES and SHA hw accelerators
40989a82ef8SCyrille Pitchen	  to enhance support of IPSEC/SSL.
41089a82ef8SCyrille Pitchen	  Select this if you want to use the Atmel modules for
41189a82ef8SCyrille Pitchen	  authenc(hmac(shaX),Y(cbc)) algorithms.
41289a82ef8SCyrille Pitchen
413bd3c7b5cSNicolas Royerconfig CRYPTO_DEV_ATMEL_AES
414bd3c7b5cSNicolas Royer	tristate "Support for Atmel AES hw accelerator"
415ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
416bd3c7b5cSNicolas Royer	select CRYPTO_AES
417d4419548SCyrille Pitchen	select CRYPTO_AEAD
418b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
419aee1f9f3SYueHaibing	select CRYPTO_AUTHENC if CRYPTO_DEV_ATMEL_AUTHENC
420aee1f9f3SYueHaibing	select CRYPTO_DEV_ATMEL_SHA if CRYPTO_DEV_ATMEL_AUTHENC
421bd3c7b5cSNicolas Royer	help
422bd3c7b5cSNicolas Royer	  Some Atmel processors have AES hw accelerator.
423bd3c7b5cSNicolas Royer	  Select this if you want to use the Atmel module for
424bd3c7b5cSNicolas Royer	  AES algorithms.
425bd3c7b5cSNicolas Royer
426bd3c7b5cSNicolas Royer	  To compile this driver as a module, choose M here: the module
427bd3c7b5cSNicolas Royer	  will be called atmel-aes.
428bd3c7b5cSNicolas Royer
42913802005SNicolas Royerconfig CRYPTO_DEV_ATMEL_TDES
43013802005SNicolas Royer	tristate "Support for Atmel DES/TDES hw accelerator"
431ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
43204007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
433b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
43413802005SNicolas Royer	help
43513802005SNicolas Royer	  Some Atmel processors have DES/TDES hw accelerator.
43613802005SNicolas Royer	  Select this if you want to use the Atmel module for
43713802005SNicolas Royer	  DES/TDES algorithms.
43813802005SNicolas Royer
43913802005SNicolas Royer	  To compile this driver as a module, choose M here: the module
44013802005SNicolas Royer	  will be called atmel-tdes.
44113802005SNicolas Royer
442ebc82efaSNicolas Royerconfig CRYPTO_DEV_ATMEL_SHA
443d4905b38SNicolas Royer	tristate "Support for Atmel SHA hw accelerator"
444ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
445596103cfSHerbert Xu	select CRYPTO_HASH
446ebc82efaSNicolas Royer	help
447d4905b38SNicolas Royer	  Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512
448d4905b38SNicolas Royer	  hw accelerator.
449ebc82efaSNicolas Royer	  Select this if you want to use the Atmel module for
450d4905b38SNicolas Royer	  SHA1/SHA224/SHA256/SHA384/SHA512 algorithms.
451ebc82efaSNicolas Royer
452ebc82efaSNicolas Royer	  To compile this driver as a module, choose M here: the module
453ebc82efaSNicolas Royer	  will be called atmel-sha.
454ebc82efaSNicolas Royer
455c34a3201SArd Biesheuvelconfig CRYPTO_DEV_ATMEL_I2C
456c34a3201SArd Biesheuvel	tristate
457d33a23b0SArnd Bergmann	select BITREVERSE
458c34a3201SArd Biesheuvel
45911105693STudor-Dan Ambarusconfig CRYPTO_DEV_ATMEL_ECC
46011105693STudor-Dan Ambarus	tristate "Support for Microchip / Atmel ECC hw accelerator"
46111105693STudor-Dan Ambarus	depends on I2C
462c34a3201SArd Biesheuvel	select CRYPTO_DEV_ATMEL_I2C
46311105693STudor-Dan Ambarus	select CRYPTO_ECDH
46411105693STudor-Dan Ambarus	select CRC16
46511105693STudor-Dan Ambarus	help
46611105693STudor-Dan Ambarus	  Microhip / Atmel ECC hw accelerator.
46711105693STudor-Dan Ambarus	  Select this if you want to use the Microchip / Atmel module for
46811105693STudor-Dan Ambarus	  ECDH algorithm.
46911105693STudor-Dan Ambarus
47011105693STudor-Dan Ambarus	  To compile this driver as a module, choose M here: the module
47111105693STudor-Dan Ambarus	  will be called atmel-ecc.
47211105693STudor-Dan Ambarus
473da001fb6SArd Biesheuvelconfig CRYPTO_DEV_ATMEL_SHA204A
474da001fb6SArd Biesheuvel	tristate "Support for Microchip / Atmel SHA accelerator and RNG"
475da001fb6SArd Biesheuvel	depends on I2C
476da001fb6SArd Biesheuvel	select CRYPTO_DEV_ATMEL_I2C
477da001fb6SArd Biesheuvel	select HW_RANDOM
4784bb02dbdSYueHaibing	select CRC16
479da001fb6SArd Biesheuvel	help
480da001fb6SArd Biesheuvel	  Microhip / Atmel SHA accelerator and RNG.
481da001fb6SArd Biesheuvel	  Select this if you want to use the Microchip / Atmel SHA204A
482da001fb6SArd Biesheuvel	  module as a random number generator. (Other functions of the
483da001fb6SArd Biesheuvel	  chip are currently not exposed by this driver)
484da001fb6SArd Biesheuvel
485da001fb6SArd Biesheuvel	  To compile this driver as a module, choose M here: the module
486da001fb6SArd Biesheuvel	  will be called atmel-sha204a.
487da001fb6SArd Biesheuvel
488f1147660STom Lendackyconfig CRYPTO_DEV_CCP
489720419f0SBrijesh Singh	bool "Support for AMD Secure Processor"
4906c506343STom Lendacky	depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM
491f1147660STom Lendacky	help
492720419f0SBrijesh Singh	  The AMD Secure Processor provides support for the Cryptographic Coprocessor
493720419f0SBrijesh Singh	  (CCP) and the Platform Security Processor (PSP) devices.
494f1147660STom Lendacky
495f1147660STom Lendackyif CRYPTO_DEV_CCP
496f1147660STom Lendacky	source "drivers/crypto/ccp/Kconfig"
497f1147660STom Lendackyendif
498f1147660STom Lendacky
49915b59e7cSMarek Vasutconfig CRYPTO_DEV_MXS_DCP
50015b59e7cSMarek Vasut	tristate "Support for Freescale MXS DCP"
501a2712e6cSFabio Estevam	depends on (ARCH_MXS || ARCH_MXC)
502dc97fa02SArnd Bergmann	select STMP_DEVICE
50315b59e7cSMarek Vasut	select CRYPTO_CBC
50415b59e7cSMarek Vasut	select CRYPTO_ECB
50515b59e7cSMarek Vasut	select CRYPTO_AES
506b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
507596103cfSHerbert Xu	select CRYPTO_HASH
50815b59e7cSMarek Vasut	help
50915b59e7cSMarek Vasut	  The Freescale i.MX23/i.MX28 has SHA1/SHA256 and AES128 CBC/ECB
51015b59e7cSMarek Vasut	  co-processor on the die.
51115b59e7cSMarek Vasut
51215b59e7cSMarek Vasut	  To compile this driver as a module, choose M here: the module
51315b59e7cSMarek Vasut	  will be called mxs-dcp.
51415b59e7cSMarek Vasut
515cea4001aSTadeusz Struksource "drivers/crypto/qat/Kconfig"
51662ad8b5cSGeorge Cheriansource "drivers/crypto/cavium/cpt/Kconfig"
51714fa93cdSSrikanth Jampalasource "drivers/crypto/cavium/nitrox/Kconfig"
518655ff1a1SSrujanaChallasource "drivers/crypto/marvell/Kconfig"
519c672752dSStanimir Varbanov
520640035a2SMahipal Challaconfig CRYPTO_DEV_CAVIUM_ZIP
521640035a2SMahipal Challa	tristate "Cavium ZIP driver"
522640035a2SMahipal Challa	depends on PCI && 64BIT && (ARM64 || COMPILE_TEST)
523a7f7f624SMasahiro Yamada	help
524640035a2SMahipal Challa	  Select this option if you want to enable compression/decompression
525640035a2SMahipal Challa	  acceleration on Cavium's ARM based SoCs
526640035a2SMahipal Challa
527c672752dSStanimir Varbanovconfig CRYPTO_DEV_QCE
528c672752dSStanimir Varbanov	tristate "Qualcomm crypto engine accelerator"
529ee1b23d1SGeert Uytterhoeven	depends on ARCH_QCOM || COMPILE_TEST
530ee1b23d1SGeert Uytterhoeven	depends on HAS_IOMEM
53159e056cdSEneas U de Queiroz	help
53259e056cdSEneas U de Queiroz	  This driver supports Qualcomm crypto engine accelerator
53359e056cdSEneas U de Queiroz	  hardware. To compile this driver as a module, choose M here. The
53459e056cdSEneas U de Queiroz	  module will be called qcrypto.
53559e056cdSEneas U de Queiroz
53659e056cdSEneas U de Queirozconfig CRYPTO_DEV_QCE_SKCIPHER
53759e056cdSEneas U de Queiroz	bool
53859e056cdSEneas U de Queiroz	depends on CRYPTO_DEV_QCE
539c672752dSStanimir Varbanov	select CRYPTO_AES
54004007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
541c672752dSStanimir Varbanov	select CRYPTO_ECB
542c672752dSStanimir Varbanov	select CRYPTO_CBC
543c672752dSStanimir Varbanov	select CRYPTO_XTS
544c672752dSStanimir Varbanov	select CRYPTO_CTR
545b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
54659e056cdSEneas U de Queiroz
54759e056cdSEneas U de Queirozconfig CRYPTO_DEV_QCE_SHA
54859e056cdSEneas U de Queiroz	bool
54959e056cdSEneas U de Queiroz	depends on CRYPTO_DEV_QCE
5508ac1b9ccSSivaprakash Murugesan	select CRYPTO_SHA1
5518ac1b9ccSSivaprakash Murugesan	select CRYPTO_SHA256
55259e056cdSEneas U de Queiroz
5539363efb4SThara Gopinathconfig CRYPTO_DEV_QCE_AEAD
5549363efb4SThara Gopinath	bool
5559363efb4SThara Gopinath	depends on CRYPTO_DEV_QCE
5569363efb4SThara Gopinath	select CRYPTO_AUTHENC
5579363efb4SThara Gopinath	select CRYPTO_LIB_DES
5589363efb4SThara Gopinath
55959e056cdSEneas U de Queirozchoice
56059e056cdSEneas U de Queiroz	prompt "Algorithms enabled for QCE acceleration"
56159e056cdSEneas U de Queiroz	default CRYPTO_DEV_QCE_ENABLE_ALL
56259e056cdSEneas U de Queiroz	depends on CRYPTO_DEV_QCE
563c672752dSStanimir Varbanov	help
5642e0e386aSColin Ian King	  This option allows to choose whether to build support for all algorithms
56559e056cdSEneas U de Queiroz	  (default), hashes-only, or skciphers-only.
56659e056cdSEneas U de Queiroz
56759e056cdSEneas U de Queiroz	  The QCE engine does not appear to scale as well as the CPU to handle
56859e056cdSEneas U de Queiroz	  multiple crypto requests.  While the ipq40xx chips have 4-core CPUs, the
56959e056cdSEneas U de Queiroz	  QCE handles only 2 requests in parallel.
57059e056cdSEneas U de Queiroz
57159e056cdSEneas U de Queiroz	  Ipsec throughput seems to improve when disabling either family of
57259e056cdSEneas U de Queiroz	  algorithms, sharing the load with the CPU.  Enabling skciphers-only
57359e056cdSEneas U de Queiroz	  appears to work best.
57459e056cdSEneas U de Queiroz
57559e056cdSEneas U de Queiroz	config CRYPTO_DEV_QCE_ENABLE_ALL
57659e056cdSEneas U de Queiroz		bool "All supported algorithms"
57759e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SKCIPHER
57859e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SHA
5799363efb4SThara Gopinath		select CRYPTO_DEV_QCE_AEAD
58059e056cdSEneas U de Queiroz		help
58159e056cdSEneas U de Queiroz		  Enable all supported algorithms:
58259e056cdSEneas U de Queiroz			- AES (CBC, CTR, ECB, XTS)
58359e056cdSEneas U de Queiroz			- 3DES (CBC, ECB)
58459e056cdSEneas U de Queiroz			- DES (CBC, ECB)
58559e056cdSEneas U de Queiroz			- SHA1, HMAC-SHA1
58659e056cdSEneas U de Queiroz			- SHA256, HMAC-SHA256
58759e056cdSEneas U de Queiroz
58859e056cdSEneas U de Queiroz	config CRYPTO_DEV_QCE_ENABLE_SKCIPHER
58959e056cdSEneas U de Queiroz		bool "Symmetric-key ciphers only"
59059e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SKCIPHER
59159e056cdSEneas U de Queiroz		help
59259e056cdSEneas U de Queiroz		  Enable symmetric-key ciphers only:
59359e056cdSEneas U de Queiroz			- AES (CBC, CTR, ECB, XTS)
59459e056cdSEneas U de Queiroz			- 3DES (ECB, CBC)
59559e056cdSEneas U de Queiroz			- DES (ECB, CBC)
59659e056cdSEneas U de Queiroz
59759e056cdSEneas U de Queiroz	config CRYPTO_DEV_QCE_ENABLE_SHA
59859e056cdSEneas U de Queiroz		bool "Hash/HMAC only"
59959e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SHA
60059e056cdSEneas U de Queiroz		help
60159e056cdSEneas U de Queiroz		  Enable hashes/HMAC algorithms only:
60259e056cdSEneas U de Queiroz			- SHA1, HMAC-SHA1
60359e056cdSEneas U de Queiroz			- SHA256, HMAC-SHA256
60459e056cdSEneas U de Queiroz
6059363efb4SThara Gopinath	config CRYPTO_DEV_QCE_ENABLE_AEAD
6069363efb4SThara Gopinath		bool "AEAD algorithms only"
6079363efb4SThara Gopinath		select CRYPTO_DEV_QCE_AEAD
6089363efb4SThara Gopinath		help
6099363efb4SThara Gopinath		  Enable AEAD algorithms only:
6109363efb4SThara Gopinath			- authenc()
6119363efb4SThara Gopinath			- ccm(aes)
6129363efb4SThara Gopinath			- rfc4309(ccm(aes))
61359e056cdSEneas U de Queirozendchoice
614c672752dSStanimir Varbanov
615ce163ba0SEneas U de Queirozconfig CRYPTO_DEV_QCE_SW_MAX_LEN
616ce163ba0SEneas U de Queiroz	int "Default maximum request size to use software for AES"
617ce163ba0SEneas U de Queiroz	depends on CRYPTO_DEV_QCE && CRYPTO_DEV_QCE_SKCIPHER
618ce163ba0SEneas U de Queiroz	default 512
619ce163ba0SEneas U de Queiroz	help
620ce163ba0SEneas U de Queiroz	  This sets the default maximum request size to perform AES requests
621ce163ba0SEneas U de Queiroz	  using software instead of the crypto engine.  It can be changed by
622ce163ba0SEneas U de Queiroz	  setting the aes_sw_max_len parameter.
623ce163ba0SEneas U de Queiroz
624ce163ba0SEneas U de Queiroz	  Small blocks are processed faster in software than hardware.
625ce163ba0SEneas U de Queiroz	  Considering the 256-bit ciphers, software is 2-3 times faster than
626ce163ba0SEneas U de Queiroz	  qce at 256-bytes, 30% faster at 512, and about even at 768-bytes.
627ce163ba0SEneas U de Queiroz	  With 128-bit keys, the break-even point would be around 1024-bytes.
628ce163ba0SEneas U de Queiroz
629ce163ba0SEneas U de Queiroz	  The default is set a little lower, to 512 bytes, to balance the
630ce163ba0SEneas U de Queiroz	  cost in CPU usage.  The minimum recommended setting is 16-bytes
631ce163ba0SEneas U de Queiroz	  (1 AES block), since AES-GCM will fail if you set it lower.
632ce163ba0SEneas U de Queiroz	  Setting this to zero will send all requests to the hardware.
633ce163ba0SEneas U de Queiroz
634ce163ba0SEneas U de Queiroz	  Note that 192-bit keys are not supported by the hardware and are
635ce163ba0SEneas U de Queiroz	  always processed by the software fallback, and all DES requests
636ce163ba0SEneas U de Queiroz	  are done by the hardware.
637ce163ba0SEneas U de Queiroz
638ceec5f5bSVinod Koulconfig CRYPTO_DEV_QCOM_RNG
639ceec5f5bSVinod Koul	tristate "Qualcomm Random Number Generator Driver"
640ceec5f5bSVinod Koul	depends on ARCH_QCOM || COMPILE_TEST
641ceec5f5bSVinod Koul	select CRYPTO_RNG
642ceec5f5bSVinod Koul	help
643ceec5f5bSVinod Koul	  This driver provides support for the Random Number
644ceec5f5bSVinod Koul	  Generator hardware found on Qualcomm SoCs.
645ceec5f5bSVinod Koul
646ceec5f5bSVinod Koul	  To compile this driver as a module, choose M here. The
647ceec5f5bSVinod Koul	  module will be called qcom-rng. If unsure, say N.
648ceec5f5bSVinod Koul
649d2e3ae6fSLeonidas S. Barbosaconfig CRYPTO_DEV_VMX
650d2e3ae6fSLeonidas S. Barbosa	bool "Support for VMX cryptographic acceleration instructions"
651f1ab4287SMichael Ellerman	depends on PPC64 && VSX
652d2e3ae6fSLeonidas S. Barbosa	help
653d2e3ae6fSLeonidas S. Barbosa	  Support for VMX cryptographic acceleration instructions.
654d2e3ae6fSLeonidas S. Barbosa
655d2e3ae6fSLeonidas S. Barbosasource "drivers/crypto/vmx/Kconfig"
656d2e3ae6fSLeonidas S. Barbosa
657d358f1abSJames Hartleyconfig CRYPTO_DEV_IMGTEC_HASH
658d358f1abSJames Hartley	tristate "Imagination Technologies hardware hash accelerator"
6598c98ebd7SGeert Uytterhoeven	depends on MIPS || COMPILE_TEST
660d358f1abSJames Hartley	select CRYPTO_MD5
661d358f1abSJames Hartley	select CRYPTO_SHA1
662d358f1abSJames Hartley	select CRYPTO_SHA256
663d358f1abSJames Hartley	select CRYPTO_HASH
664d358f1abSJames Hartley	help
665d358f1abSJames Hartley	  This driver interfaces with the Imagination Technologies
666d358f1abSJames Hartley	  hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
667d358f1abSJames Hartley	  hashing algorithms.
668d358f1abSJames Hartley
669433cd2c6SZain Wangconfig CRYPTO_DEV_ROCKCHIP
670433cd2c6SZain Wang	tristate "Rockchip's Cryptographic Engine driver"
671433cd2c6SZain Wang	depends on OF && ARCH_ROCKCHIP
67268ef8af0SCorentin Labbe	depends on PM
67368ef8af0SCorentin Labbe	select CRYPTO_ECB
67468ef8af0SCorentin Labbe	select CRYPTO_CBC
67568ef8af0SCorentin Labbe	select CRYPTO_DES
676433cd2c6SZain Wang	select CRYPTO_AES
677*57d67c6eSCorentin Labbe	select CRYPTO_ENGINE
67804007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
679bfd927ffSZain Wang	select CRYPTO_MD5
680bfd927ffSZain Wang	select CRYPTO_SHA1
681bfd927ffSZain Wang	select CRYPTO_SHA256
682bfd927ffSZain Wang	select CRYPTO_HASH
683b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
684433cd2c6SZain Wang
685433cd2c6SZain Wang	help
686433cd2c6SZain Wang	  This driver interfaces with the hardware crypto accelerator.
687433cd2c6SZain Wang	  Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
688433cd2c6SZain Wang
6894d96f7d4SKalyani Akulaconfig CRYPTO_DEV_ZYNQMP_AES
6904d96f7d4SKalyani Akula	tristate "Support for Xilinx ZynqMP AES hw accelerator"
6914d96f7d4SKalyani Akula	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
6924d96f7d4SKalyani Akula	select CRYPTO_AES
6934d96f7d4SKalyani Akula	select CRYPTO_ENGINE
6944d96f7d4SKalyani Akula	select CRYPTO_AEAD
6954d96f7d4SKalyani Akula	help
6964d96f7d4SKalyani Akula	  Xilinx ZynqMP has AES-GCM engine used for symmetric key
6974d96f7d4SKalyani Akula	  encryption and decryption. This driver interfaces with AES hw
6984d96f7d4SKalyani Akula	  accelerator. Select this if you want to use the ZynqMP module
6994d96f7d4SKalyani Akula	  for AES algorithms.
7004d96f7d4SKalyani Akula
7017ecc3e34SHarshaconfig CRYPTO_DEV_ZYNQMP_SHA3
7020e03b8fdSHerbert Xu	tristate "Support for Xilinx ZynqMP SHA3 hardware accelerator"
7030e03b8fdSHerbert Xu	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
7047ecc3e34SHarsha	select CRYPTO_SHA3
7057ecc3e34SHarsha	help
7067ecc3e34SHarsha	  Xilinx ZynqMP has SHA3 engine used for secure hash calculation.
7077ecc3e34SHarsha	  This driver interfaces with SHA3 hardware engine.
7087ecc3e34SHarsha	  Select this if you want to use the ZynqMP module
7097ecc3e34SHarsha	  for SHA3 hash computation.
7107ecc3e34SHarsha
71102038fd6SHariprasad Shenaisource "drivers/crypto/chelsio/Kconfig"
71202038fd6SHariprasad Shenai
713dbaf0624SGongleisource "drivers/crypto/virtio/Kconfig"
714dbaf0624SGonglei
7159d12ba86SRob Riceconfig CRYPTO_DEV_BCM_SPU
7169d12ba86SRob Rice	tristate "Broadcom symmetric crypto/hash acceleration support"
7179d12ba86SRob Rice	depends on ARCH_BCM_IPROC
718efc856edSraveendra padasalagi	depends on MAILBOX
7199d12ba86SRob Rice	default m
720ab57b335SEric Biggers	select CRYPTO_AUTHENC
72104007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
7229d12ba86SRob Rice	select CRYPTO_MD5
7239d12ba86SRob Rice	select CRYPTO_SHA1
7249d12ba86SRob Rice	select CRYPTO_SHA256
7259d12ba86SRob Rice	select CRYPTO_SHA512
7269d12ba86SRob Rice	help
7279d12ba86SRob Rice	  This driver provides support for Broadcom crypto acceleration using the
728a9c01cd6SArd Biesheuvel	  Secure Processing Unit (SPU). The SPU driver registers skcipher,
7299d12ba86SRob Rice	  ahash, and aead algorithms with the kernel cryptographic API.
7309d12ba86SRob Rice
731b51dbe90SFabien DESSENNEsource "drivers/crypto/stm32/Kconfig"
732b51dbe90SFabien DESSENNE
7331b44c5a6SAntoine Ténartconfig CRYPTO_DEV_SAFEXCEL
7341b44c5a6SAntoine Ténart	tristate "Inside Secure's SafeXcel cryptographic engine driver"
7356dc0e310SBrendan Higgins	depends on (OF || PCI || COMPILE_TEST) && HAS_IOMEM
736363a90c2SArd Biesheuvel	select CRYPTO_LIB_AES
737f6beaea3SAntoine Tenart	select CRYPTO_AUTHENC
738b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
73904007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
7401b44c5a6SAntoine Ténart	select CRYPTO_HASH
7411b44c5a6SAntoine Ténart	select CRYPTO_HMAC
742293f89cfSOfer Heifetz	select CRYPTO_MD5
7431b44c5a6SAntoine Ténart	select CRYPTO_SHA1
7441b44c5a6SAntoine Ténart	select CRYPTO_SHA256
7451b44c5a6SAntoine Ténart	select CRYPTO_SHA512
746fc0f82b1SPascal van Leeuwen	select CRYPTO_CHACHA20POLY1305
7471d448f27SPascal van Leeuwen	select CRYPTO_SHA3
7481b44c5a6SAntoine Ténart	help
7490f6e5c82SPascal van Leeuwen	  This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic
7500f6e5c82SPascal van Leeuwen	  engines designed by Inside Secure. It currently accelerates DES, 3DES and
7510f6e5c82SPascal van Leeuwen	  AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256,
7520f6e5c82SPascal van Leeuwen	  SHA384 and SHA512 hash algorithms for both basic hash and HMAC.
7530f6e5c82SPascal van Leeuwen	  Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations.
7541b44c5a6SAntoine Ténart
755a21eb94fSLars Perssonconfig CRYPTO_DEV_ARTPEC6
756a21eb94fSLars Persson	tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."
757a21eb94fSLars Persson	depends on ARM && (ARCH_ARTPEC || COMPILE_TEST)
758a21eb94fSLars Persson	depends on OF
759a21eb94fSLars Persson	select CRYPTO_AEAD
760a21eb94fSLars Persson	select CRYPTO_AES
761a21eb94fSLars Persson	select CRYPTO_ALGAPI
762b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
763a21eb94fSLars Persson	select CRYPTO_CTR
764a21eb94fSLars Persson	select CRYPTO_HASH
765a21eb94fSLars Persson	select CRYPTO_SHA1
766a21eb94fSLars Persson	select CRYPTO_SHA256
767a21eb94fSLars Persson	select CRYPTO_SHA512
768a21eb94fSLars Persson	help
769a21eb94fSLars Persson	  Enables the driver for the on-chip crypto accelerator
770a21eb94fSLars Persson	  of Axis ARTPEC SoCs.
771a21eb94fSLars Persson
772a21eb94fSLars Persson	  To compile this driver as a module, choose M here.
773a21eb94fSLars Persson
7744c3f9727SGilad Ben-Yossefconfig CRYPTO_DEV_CCREE
7754c3f9727SGilad Ben-Yossef	tristate "Support for ARM TrustZone CryptoCell family of security processors"
7764c3f9727SGilad Ben-Yossef	depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA
7774c3f9727SGilad Ben-Yossef	default n
7784c3f9727SGilad Ben-Yossef	select CRYPTO_HASH
779b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
78004007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
7814c3f9727SGilad Ben-Yossef	select CRYPTO_AEAD
7824c3f9727SGilad Ben-Yossef	select CRYPTO_AUTHENC
7834c3f9727SGilad Ben-Yossef	select CRYPTO_SHA1
7844c3f9727SGilad Ben-Yossef	select CRYPTO_MD5
7854c3f9727SGilad Ben-Yossef	select CRYPTO_SHA256
7864c3f9727SGilad Ben-Yossef	select CRYPTO_SHA512
7874c3f9727SGilad Ben-Yossef	select CRYPTO_HMAC
7884c3f9727SGilad Ben-Yossef	select CRYPTO_AES
7894c3f9727SGilad Ben-Yossef	select CRYPTO_CBC
7904c3f9727SGilad Ben-Yossef	select CRYPTO_ECB
7914c3f9727SGilad Ben-Yossef	select CRYPTO_CTR
7924c3f9727SGilad Ben-Yossef	select CRYPTO_XTS
7939b8d51f8SGilad Ben-Yossef	select CRYPTO_SM4
794927574e0SYael Chemla	select CRYPTO_SM3
7954c3f9727SGilad Ben-Yossef	help
79627b3b22dSGilad Ben-Yossef	  Say 'Y' to enable a driver for the REE interface of the Arm
79727b3b22dSGilad Ben-Yossef	  TrustZone CryptoCell family of processors. Currently the
7981c876a90SGilad Ben-Yossef	  CryptoCell 713, 703, 712, 710 and 630 are supported.
7994c3f9727SGilad Ben-Yossef	  Choose this if you wish to use hardware acceleration of
8004c3f9727SGilad Ben-Yossef	  cryptographic operations on the system REE.
8014c3f9727SGilad Ben-Yossef	  If unsure say Y.
8024c3f9727SGilad Ben-Yossef
803915e4e84SJonathan Cameronsource "drivers/crypto/hisilicon/Kconfig"
804915e4e84SJonathan Cameron
80548fe583fSCorentin Labbesource "drivers/crypto/amlogic/Kconfig"
80648fe583fSCorentin Labbe
8077694b6caSKeerthyconfig CRYPTO_DEV_SA2UL
8087694b6caSKeerthy	tristate "Support for TI security accelerator"
8097694b6caSKeerthy	depends on ARCH_K3 || COMPILE_TEST
8107694b6caSKeerthy	select CRYPTO_AES
8117694b6caSKeerthy	select CRYPTO_ALGAPI
81261f033baSHerbert Xu	select CRYPTO_AUTHENC
813bfe8fe93SRandy Dunlap	select CRYPTO_SHA1
814bfe8fe93SRandy Dunlap	select CRYPTO_SHA256
815bfe8fe93SRandy Dunlap	select CRYPTO_SHA512
8167694b6caSKeerthy	select HW_RANDOM
8177694b6caSKeerthy	select SG_SPLIT
8187694b6caSKeerthy	help
8197694b6caSKeerthy	  K3 devices include a security accelerator engine that may be
8207694b6caSKeerthy	  used for crypto offload.  Select this if you want to use hardware
8217694b6caSKeerthy	  acceleration for cryptographic algorithms on these devices.
8227694b6caSKeerthy
82388574332SMike Healysource "drivers/crypto/keembay/Kconfig"
824108713a7SNeal Liusource "drivers/crypto/aspeed/Kconfig"
82588574332SMike Healy
826b511431dSJan Engelhardtendif # CRYPTO_HW
827