xref: /linux/drivers/crypto/Kconfig (revision 8fcc231ce3bea12b78bb94b280cdc03cff342435)
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
7012376084SHolger Dengler	depends on AP
712f7c8bd6SRalph Wuerthner	select HW_RANDOM
7261d48c2cSMartin Schwidefsky	help
73a3358e3dSHarald Freudenberger	  Select this option if you want to enable support for
745ac8c724SHarald Freudenberger	  s390 cryptographic adapters like Crypto Express 4 up
755ac8c724SHarald Freudenberger	  to 8 in Coprocessor (CEXxC), EP11 Coprocessor (CEXxP)
765ac8c724SHarald Freudenberger	  or Accelerator (CEXxA) mode.
770ae88ccfSHarald Freudenberger
78e80d4af0SHarald Freudenbergerconfig PKEY
79e80d4af0SHarald Freudenberger	tristate "Kernel API for protected key handling"
80e80d4af0SHarald Freudenberger	depends on S390
81e80d4af0SHarald Freudenberger	help
82*8fcc231cSHarald Freudenberger	  With this option enabled the pkey kernel modules provide an API
83e80d4af0SHarald Freudenberger	  for creation and handling of protected keys. Other parts of the
84e80d4af0SHarald Freudenberger	  kernel or userspace applications may use these functions.
85e80d4af0SHarald Freudenberger
86*8fcc231cSHarald Freudenberger	  The protected key support is distributed into:
87*8fcc231cSHarald Freudenberger	  - A pkey base and API kernel module (pkey.ko) which offers the
88*8fcc231cSHarald Freudenberger	    infrastructure for the pkey handler kernel modules, the ioctl
89*8fcc231cSHarald Freudenberger	    and the sysfs API and the in-kernel API to the crypto cipher
90*8fcc231cSHarald Freudenberger	    implementations using protected key.
91*8fcc231cSHarald Freudenberger	  - A pkey pckmo kernel module (pkey-pckmo.ko) which is automatically
92*8fcc231cSHarald Freudenberger	    loaded when pckmo support (that is generation of protected keys
93*8fcc231cSHarald Freudenberger	    from clear key values) is available.
94*8fcc231cSHarald Freudenberger	  - A pkey CCA kernel module (pkey-cca.ko) which is automatically
95*8fcc231cSHarald Freudenberger	    loaded when a CEX crypto card is available.
96*8fcc231cSHarald Freudenberger	  - A pkey EP11 kernel module (pkey-ep11.ko) which is automatically
97*8fcc231cSHarald Freudenberger	    loaded when a CEX crypto card is available.
98e80d4af0SHarald Freudenberger
99*8fcc231cSHarald Freudenberger	  Select this option if you want to enable the kernel and userspace
100*8fcc231cSHarald Freudenberger	  API for protected key handling.
101*8fcc231cSHarald Freudenberger
102*8fcc231cSHarald Freudenbergerconfig PKEY_CCA
103*8fcc231cSHarald Freudenberger	tristate "PKEY CCA support handler"
104*8fcc231cSHarald Freudenberger	depends on PKEY
105*8fcc231cSHarald Freudenberger	depends on ZCRYPT
106*8fcc231cSHarald Freudenberger	help
107*8fcc231cSHarald Freudenberger	  This is the CCA support handler for deriving protected keys
108*8fcc231cSHarald Freudenberger	  from CCA (secure) keys. Also this handler provides an alternate
109*8fcc231cSHarald Freudenberger	  way to make protected keys from clear key values.
110*8fcc231cSHarald Freudenberger
111*8fcc231cSHarald Freudenberger	  The PKEY CCA support handler needs a Crypto Express card (CEX)
112*8fcc231cSHarald Freudenberger	  in CCA mode.
113*8fcc231cSHarald Freudenberger
114*8fcc231cSHarald Freudenberger	  If you have selected the PKEY option then you should also enable
115*8fcc231cSHarald Freudenberger	  this option unless you are sure you never need to derive protected
116*8fcc231cSHarald Freudenberger	  keys from CCA key material.
117*8fcc231cSHarald Freudenberger
118*8fcc231cSHarald Freudenbergerconfig PKEY_EP11
119*8fcc231cSHarald Freudenberger	tristate "PKEY EP11 support handler"
120*8fcc231cSHarald Freudenberger	depends on PKEY
121*8fcc231cSHarald Freudenberger	depends on ZCRYPT
122*8fcc231cSHarald Freudenberger	help
123*8fcc231cSHarald Freudenberger	  This is the EP11 support handler for deriving protected keys
124*8fcc231cSHarald Freudenberger	  from EP11 (secure) keys. Also this handler provides an alternate
125*8fcc231cSHarald Freudenberger	  way to make protected keys from clear key values.
126*8fcc231cSHarald Freudenberger
127*8fcc231cSHarald Freudenberger	  The PKEY EP11 support handler needs a Crypto Express card (CEX)
128*8fcc231cSHarald Freudenberger	  in EP11 mode.
129*8fcc231cSHarald Freudenberger
130*8fcc231cSHarald Freudenberger	  If you have selected the PKEY option then you should also enable
131*8fcc231cSHarald Freudenberger	  this option unless you are sure you never need to derive protected
132*8fcc231cSHarald Freudenberger	  keys from EP11 key material.
133*8fcc231cSHarald Freudenberger
134*8fcc231cSHarald Freudenbergerconfig PKEY_PCKMO
135*8fcc231cSHarald Freudenberger	tristate "PKEY PCKMO support handler"
136*8fcc231cSHarald Freudenberger	depends on PKEY
137*8fcc231cSHarald Freudenberger	help
138*8fcc231cSHarald Freudenberger	  This is the PCKMO support handler for deriving protected keys
139*8fcc231cSHarald Freudenberger	  from clear key values via invoking the PCKMO instruction.
140*8fcc231cSHarald Freudenberger
141*8fcc231cSHarald Freudenberger	  The PCKMO instruction can be enabled and disabled in the crypto
142*8fcc231cSHarald Freudenberger	  settings at the LPAR profile. This handler checks for availability
143*8fcc231cSHarald Freudenberger	  during initialization and if build as a kernel module unloads
144*8fcc231cSHarald Freudenberger	  itself if PCKMO is disabled.
145*8fcc231cSHarald Freudenberger
146*8fcc231cSHarald Freudenberger	  The PCKMO way of deriving protected keys from clear key material
147*8fcc231cSHarald Freudenberger	  is especially used during self test of protected key ciphers like
148*8fcc231cSHarald Freudenberger	  PAES but the CCA and EP11 handler provide alternate ways to
149*8fcc231cSHarald Freudenberger	  generate protected keys from clear key values.
150*8fcc231cSHarald Freudenberger
151*8fcc231cSHarald Freudenberger	  If you have selected the PKEY option then you should also enable
152*8fcc231cSHarald Freudenberger	  this option unless you are sure you never need to derive protected
153*8fcc231cSHarald Freudenberger	  keys from clear key values directly via PCKMO.
15461d48c2cSMartin Schwidefsky
155c4684f98SHarald Freudenbergerconfig CRYPTO_PAES_S390
156c4684f98SHarald Freudenberger	tristate "PAES cipher algorithms"
157c4684f98SHarald Freudenberger	depends on S390
158c4684f98SHarald Freudenberger	depends on ZCRYPT
159c4684f98SHarald Freudenberger	depends on PKEY
160c4684f98SHarald Freudenberger	select CRYPTO_ALGAPI
161b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
162c4684f98SHarald Freudenberger	help
163c4684f98SHarald Freudenberger	  This is the s390 hardware accelerated implementation of the
164c4684f98SHarald Freudenberger	  AES cipher algorithms for use with protected key.
165c4684f98SHarald Freudenberger
166c4684f98SHarald Freudenberger	  Select this option if you want to use the paes cipher
167c4684f98SHarald Freudenberger	  for example to use protected key encrypted devices.
168c4684f98SHarald Freudenberger
1693f5615e0SJan Glauberconfig S390_PRNG
1703f5615e0SJan Glauber	tristate "Pseudo random number generator device driver"
1713f5615e0SJan Glauber	depends on S390
1723f5615e0SJan Glauber	default "m"
1733f5615e0SJan Glauber	help
1743f5615e0SJan Glauber	  Select this option if you want to use the s390 pseudo random number
1753f5615e0SJan Glauber	  generator. The PRNG is part of the cryptographic processor functions
1763f5615e0SJan Glauber	  and uses triple-DES to generate secure random numbers like the
177d393d9b8SJan Glauber	  ANSI X9.17 standard. User-space programs access the
178d393d9b8SJan Glauber	  pseudo-random-number device through the char device /dev/prandom.
179d393d9b8SJan Glauber
180d393d9b8SJan Glauber	  It is available as of z9.
1813f5615e0SJan Glauber
1820a625fd2SDavid S. Millerconfig CRYPTO_DEV_NIAGARA2
1830a625fd2SDavid S. Miller	tristate "Niagara2 Stream Processing Unit driver"
18404007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
185b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
186596103cfSHerbert Xu	select CRYPTO_HASH
1878054b800SLABBE Corentin	select CRYPTO_MD5
1888054b800SLABBE Corentin	select CRYPTO_SHA1
1898054b800SLABBE Corentin	select CRYPTO_SHA256
1900a625fd2SDavid S. Miller	depends on SPARC64
1910a625fd2SDavid S. Miller	help
1920a625fd2SDavid S. Miller	  Each core of a Niagara2 processor contains a Stream
1930a625fd2SDavid S. Miller	  Processing Unit, which itself contains several cryptographic
1940a625fd2SDavid S. Miller	  sub-units.  One set provides the Modular Arithmetic Unit,
1950a625fd2SDavid S. Miller	  used for SSL offload.  The other set provides the Cipher
1960a625fd2SDavid S. Miller	  Group, which can perform encryption, decryption, hashing,
1970a625fd2SDavid S. Miller	  checksumming, and raw copies.
1980a625fd2SDavid S. Miller
19946c5338dSCorentin Labbeconfig CRYPTO_DEV_SL3516
200df941fddSGeert Uytterhoeven	tristate "Storlink SL3516 crypto offloader"
201e29dd5c8SGeert Uytterhoeven	depends on ARCH_GEMINI || COMPILE_TEST
202e29dd5c8SGeert Uytterhoeven	depends on HAS_IOMEM && PM
20346c5338dSCorentin Labbe	select CRYPTO_SKCIPHER
20446c5338dSCorentin Labbe	select CRYPTO_ENGINE
20546c5338dSCorentin Labbe	select CRYPTO_ECB
20646c5338dSCorentin Labbe	select CRYPTO_AES
20746c5338dSCorentin Labbe	select HW_RANDOM
20846c5338dSCorentin Labbe	help
20946c5338dSCorentin Labbe	  This option allows you to have support for SL3516 crypto offloader.
21046c5338dSCorentin Labbe
21146c5338dSCorentin Labbeconfig CRYPTO_DEV_SL3516_DEBUG
21246c5338dSCorentin Labbe	bool "Enable SL3516 stats"
21346c5338dSCorentin Labbe	depends on CRYPTO_DEV_SL3516
21446c5338dSCorentin Labbe	depends on DEBUG_FS
21546c5338dSCorentin Labbe	help
21646c5338dSCorentin Labbe	  Say y to enable SL3516 debug stats.
21746c5338dSCorentin Labbe	  This will create /sys/kernel/debug/sl3516/stats for displaying
21846c5338dSCorentin Labbe	  the number of requests per algorithm and other internal stats.
21946c5338dSCorentin Labbe
220f7d0561eSEvgeniy Polyakovconfig CRYPTO_DEV_HIFN_795X
221f7d0561eSEvgeniy Polyakov	tristate "Driver HIFN 795x crypto accelerator chips"
22204007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
223b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
224946fef4eSHerbert Xu	select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG
2252707b937SJan Glauber	depends on PCI
22675b76625SRichard Weinberger	depends on !ARCH_DMA_ADDR_T_64BIT
227f7d0561eSEvgeniy Polyakov	help
228f7d0561eSEvgeniy Polyakov	  This option allows you to have support for HIFN 795x crypto adapters.
229f7d0561eSEvgeniy Polyakov
230946fef4eSHerbert Xuconfig CRYPTO_DEV_HIFN_795X_RNG
231946fef4eSHerbert Xu	bool "HIFN 795x random number generator"
232946fef4eSHerbert Xu	depends on CRYPTO_DEV_HIFN_795X
233946fef4eSHerbert Xu	help
234946fef4eSHerbert Xu	  Select this option if you want to enable the random number generator
235946fef4eSHerbert Xu	  on the HIFN 795x crypto adapters.
236f7d0561eSEvgeniy Polyakov
2378636a1f9SMasahiro Yamadasource "drivers/crypto/caam/Kconfig"
2388e8ec596SKim Phillips
2399c4a7965SKim Phillipsconfig CRYPTO_DEV_TALITOS
2409c4a7965SKim Phillips	tristate "Talitos Freescale Security Engine (SEC)"
241596103cfSHerbert Xu	select CRYPTO_AEAD
2429c4a7965SKim Phillips	select CRYPTO_AUTHENC
243b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
244596103cfSHerbert Xu	select CRYPTO_HASH
245dbc2e87bSHerbert Xu	select CRYPTO_LIB_DES
2469c4a7965SKim Phillips	select HW_RANDOM
2479c4a7965SKim Phillips	depends on FSL_SOC
2489c4a7965SKim Phillips	help
2499c4a7965SKim Phillips	  Say 'Y' here to use the Freescale Security Engine (SEC)
2509c4a7965SKim Phillips	  to offload cryptographic algorithm computation.
2519c4a7965SKim Phillips
2529c4a7965SKim Phillips	  The Freescale SEC is present on PowerQUICC 'E' processors, such
2539c4a7965SKim Phillips	  as the MPC8349E and MPC8548E.
2549c4a7965SKim Phillips
2559c4a7965SKim Phillips	  To compile this driver as a module, choose M here: the module
2569c4a7965SKim Phillips	  will be called talitos.
2579c4a7965SKim Phillips
2585b841a65SLEROY Christopheconfig CRYPTO_DEV_TALITOS1
2595b841a65SLEROY Christophe	bool "SEC1 (SEC 1.0 and SEC Lite 1.2)"
2605b841a65SLEROY Christophe	depends on CRYPTO_DEV_TALITOS
2615b841a65SLEROY Christophe	depends on PPC_8xx || PPC_82xx
2625b841a65SLEROY Christophe	default y
2635b841a65SLEROY Christophe	help
2645b841a65SLEROY Christophe	  Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0
2655b841a65SLEROY Christophe	  found on MPC82xx or the Freescale Security Engine (SEC Lite)
2665b841a65SLEROY Christophe	  version 1.2 found on MPC8xx
2675b841a65SLEROY Christophe
2685b841a65SLEROY Christopheconfig CRYPTO_DEV_TALITOS2
2695b841a65SLEROY Christophe	bool "SEC2+ (SEC version 2.0 or upper)"
2705b841a65SLEROY Christophe	depends on CRYPTO_DEV_TALITOS
2715b841a65SLEROY Christophe	default y if !PPC_8xx
2725b841a65SLEROY Christophe	help
2735b841a65SLEROY Christophe	  Say 'Y' here to use the Freescale Security Engine (SEC)
2745b841a65SLEROY Christophe	  version 2 and following as found on MPC83xx, MPC85xx, etc ...
2755b841a65SLEROY Christophe
276049359d6SJames Hsiaoconfig CRYPTO_DEV_PPC4XX
277049359d6SJames Hsiao	tristate "Driver AMCC PPC4xx crypto accelerator"
278049359d6SJames Hsiao	depends on PPC && 4xx
279049359d6SJames Hsiao	select CRYPTO_HASH
280a0aae821SChristian Lamparter	select CRYPTO_AEAD
281298b4c60SChristian Lamparter	select CRYPTO_AES
282da3e7a97SArd Biesheuvel	select CRYPTO_LIB_AES
283a0aae821SChristian Lamparter	select CRYPTO_CCM
28498e87e3dSChristian Lamparter	select CRYPTO_CTR
285a0aae821SChristian Lamparter	select CRYPTO_GCM
286b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
287049359d6SJames Hsiao	help
288049359d6SJames Hsiao	  This option allows you to have support for AMCC crypto acceleration.
289049359d6SJames Hsiao
2905343e674SChristian Lamparterconfig HW_RANDOM_PPC4XX
2915343e674SChristian Lamparter	bool "PowerPC 4xx generic true random number generator support"
29263b8ee4fSFlorian Fainelli	depends on CRYPTO_DEV_PPC4XX && HW_RANDOM=y
2935343e674SChristian Lamparter	default y
294a7f7f624SMasahiro Yamada	help
2955343e674SChristian Lamparter	 This option provides the kernel-side support for the TRNG hardware
2965343e674SChristian Lamparter	 found in the security function of some PowerPC 4xx SoCs.
2975343e674SChristian Lamparter
29874ed87e7STero Kristoconfig CRYPTO_DEV_OMAP
29974ed87e7STero Kristo	tristate "Support for OMAP crypto HW accelerators"
30074ed87e7STero Kristo	depends on ARCH_OMAP2PLUS
30174ed87e7STero Kristo	help
30274ed87e7STero Kristo	  OMAP processors have various crypto HW accelerators. Select this if
30374ed87e7STero Kristo	  you want to use the OMAP modules for any of the crypto algorithms.
30474ed87e7STero Kristo
30574ed87e7STero Kristoif CRYPTO_DEV_OMAP
30674ed87e7STero Kristo
3078628e7c8SDmitry Kasatkinconfig CRYPTO_DEV_OMAP_SHAM
308eaef7e3fSLokesh Vutla	tristate "Support for OMAP MD5/SHA1/SHA2 hw accelerator"
309eaef7e3fSLokesh Vutla	depends on ARCH_OMAP2PLUS
31038281194SArnd Bergmann	select CRYPTO_ENGINE
3118628e7c8SDmitry Kasatkin	select CRYPTO_SHA1
3128628e7c8SDmitry Kasatkin	select CRYPTO_MD5
313eaef7e3fSLokesh Vutla	select CRYPTO_SHA256
314eaef7e3fSLokesh Vutla	select CRYPTO_SHA512
315eaef7e3fSLokesh Vutla	select CRYPTO_HMAC
3168628e7c8SDmitry Kasatkin	help
317eaef7e3fSLokesh Vutla	  OMAP processors have MD5/SHA1/SHA2 hw accelerator. Select this if you
318eaef7e3fSLokesh Vutla	  want to use the OMAP module for MD5/SHA1/SHA2 algorithms.
3198628e7c8SDmitry Kasatkin
320537559a5SDmitry Kasatkinconfig CRYPTO_DEV_OMAP_AES
321537559a5SDmitry Kasatkin	tristate "Support for OMAP AES hw engine"
3221bbf6437SJoel Fernandes	depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP2PLUS
323537559a5SDmitry Kasatkin	select CRYPTO_AES
324b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
3250529900aSBaolin Wang	select CRYPTO_ENGINE
3269fcb191aSLokesh Vutla	select CRYPTO_CBC
3279fcb191aSLokesh Vutla	select CRYPTO_ECB
3289fcb191aSLokesh Vutla	select CRYPTO_CTR
329ad18cc9dSTero Kristo	select CRYPTO_AEAD
330537559a5SDmitry Kasatkin	help
331537559a5SDmitry Kasatkin	  OMAP processors have AES module accelerator. Select this if you
332537559a5SDmitry Kasatkin	  want to use the OMAP module for AES algorithms.
333537559a5SDmitry Kasatkin
334701d0f19SJoel Fernandesconfig CRYPTO_DEV_OMAP_DES
33597ee7ed3SPeter Meerwald	tristate "Support for OMAP DES/3DES hw engine"
336701d0f19SJoel Fernandes	depends on ARCH_OMAP2PLUS
33704007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
338b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
339f1b77aacSBaolin Wang	select CRYPTO_ENGINE
340701d0f19SJoel Fernandes	help
341701d0f19SJoel Fernandes	  OMAP processors have DES/3DES module accelerator. Select this if you
342701d0f19SJoel Fernandes	  want to use the OMAP module for DES and 3DES algorithms. Currently
34397ee7ed3SPeter Meerwald	  the ECB and CBC modes of operation are supported by the driver. Also
34497ee7ed3SPeter Meerwald	  accesses made on unaligned boundaries are supported.
345701d0f19SJoel Fernandes
34674ed87e7STero Kristoendif # CRYPTO_DEV_OMAP
34774ed87e7STero Kristo
3485de88752SJavier Martinconfig CRYPTO_DEV_SAHARA
3495de88752SJavier Martin	tristate "Support for SAHARA crypto accelerator"
35074d24d83SPaul Bolle	depends on ARCH_MXC && OF
351b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
3525de88752SJavier Martin	select CRYPTO_AES
3535de88752SJavier Martin	select CRYPTO_ECB
35444ff4ea1SOvidiu Panait	select CRYPTO_ENGINE
3555de88752SJavier Martin	help
3565de88752SJavier Martin	  This option enables support for the SAHARA HW crypto accelerator
3575de88752SJavier Martin	  found in some Freescale i.MX chips.
3585de88752SJavier Martin
359c46ea13fSKrzysztof Kozlowskiconfig CRYPTO_DEV_EXYNOS_RNG
360b279997fSKrzysztof Kozlowski	tristate "Exynos HW pseudo random number generator support"
361c46ea13fSKrzysztof Kozlowski	depends on ARCH_EXYNOS || COMPILE_TEST
362c46ea13fSKrzysztof Kozlowski	depends on HAS_IOMEM
363c46ea13fSKrzysztof Kozlowski	select CRYPTO_RNG
364a7f7f624SMasahiro Yamada	help
365c46ea13fSKrzysztof Kozlowski	  This driver provides kernel-side support through the
366c46ea13fSKrzysztof Kozlowski	  cryptographic API for the pseudo random number generator hardware
367c46ea13fSKrzysztof Kozlowski	  found on Exynos SoCs.
368c46ea13fSKrzysztof Kozlowski
369c46ea13fSKrzysztof Kozlowski	  To compile this driver as a module, choose M here: the
370c46ea13fSKrzysztof Kozlowski	  module will be called exynos-rng.
371c46ea13fSKrzysztof Kozlowski
372c46ea13fSKrzysztof Kozlowski	  If unsure, say Y.
373c46ea13fSKrzysztof Kozlowski
374a49e490cSVladimir Zapolskiyconfig CRYPTO_DEV_S5P
375e922e96fSNaveen Krishna Chatradhi	tristate "Support for Samsung S5PV210/Exynos crypto accelerator"
376dc1d9deeSKrzysztof Kozlowski	depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
377ee1b23d1SGeert Uytterhoeven	depends on HAS_IOMEM
378a49e490cSVladimir Zapolskiy	select CRYPTO_AES
379b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
380a49e490cSVladimir Zapolskiy	help
381a49e490cSVladimir Zapolskiy	  This option allows you to have support for S5P crypto acceleration.
382e922e96fSNaveen Krishna Chatradhi	  Select this to offload Samsung S5PV210 or S5PC110, Exynos from AES
383a49e490cSVladimir Zapolskiy	  algorithms execution.
384a49e490cSVladimir Zapolskiy
385c2afad6cSKamil Koniecznyconfig CRYPTO_DEV_EXYNOS_HASH
386c2afad6cSKamil Konieczny	bool "Support for Samsung Exynos HASH accelerator"
387c2afad6cSKamil Konieczny	depends on CRYPTO_DEV_S5P
388c2afad6cSKamil Konieczny	depends on !CRYPTO_DEV_EXYNOS_RNG && CRYPTO_DEV_EXYNOS_RNG!=m
389c2afad6cSKamil Konieczny	select CRYPTO_SHA1
390c2afad6cSKamil Konieczny	select CRYPTO_MD5
391c2afad6cSKamil Konieczny	select CRYPTO_SHA256
392c2afad6cSKamil Konieczny	help
393c2afad6cSKamil Konieczny	  Select this to offload Exynos from HASH MD5/SHA1/SHA256.
394c2afad6cSKamil Konieczny	  This will select software SHA1, MD5 and SHA256 as they are
395c2afad6cSKamil Konieczny	  needed for small and zero-size messages.
396c2afad6cSKamil Konieczny	  HASH algorithms will be disabled if EXYNOS_RNG
397c2afad6cSKamil Konieczny	  is enabled due to hw conflict.
398c2afad6cSKamil Konieczny
399aef7b31cSKent Yoderconfig CRYPTO_DEV_NX
4007011a122SDan Streetman	bool "Support for IBM PowerPC Nest (NX) cryptographic acceleration"
4017011a122SDan Streetman	depends on PPC64
402aef7b31cSKent Yoder	help
4037011a122SDan Streetman	  This enables support for the NX hardware cryptographic accelerator
4047011a122SDan Streetman	  coprocessor that is in IBM PowerPC P7+ or later processors.  This
4057011a122SDan Streetman	  does not actually enable any drivers, it only allows you to select
4067011a122SDan Streetman	  which acceleration type (encryption and/or compression) to enable.
407322cacceSSeth Jennings
408322cacceSSeth Jenningsif CRYPTO_DEV_NX
409322cacceSSeth Jennings	source "drivers/crypto/nx/Kconfig"
410322cacceSSeth Jenningsendif
411aef7b31cSKent Yoder
41289a82ef8SCyrille Pitchenconfig CRYPTO_DEV_ATMEL_AUTHENC
413aee1f9f3SYueHaibing	bool "Support for Atmel IPSEC/SSL hw accelerator"
414ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
415aee1f9f3SYueHaibing	depends on CRYPTO_DEV_ATMEL_AES
41689a82ef8SCyrille Pitchen	help
41789a82ef8SCyrille Pitchen	  Some Atmel processors can combine the AES and SHA hw accelerators
41889a82ef8SCyrille Pitchen	  to enhance support of IPSEC/SSL.
41989a82ef8SCyrille Pitchen	  Select this if you want to use the Atmel modules for
42089a82ef8SCyrille Pitchen	  authenc(hmac(shaX),Y(cbc)) algorithms.
42189a82ef8SCyrille Pitchen
422bd3c7b5cSNicolas Royerconfig CRYPTO_DEV_ATMEL_AES
423bd3c7b5cSNicolas Royer	tristate "Support for Atmel AES hw accelerator"
424ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
425bd3c7b5cSNicolas Royer	select CRYPTO_AES
426d4419548SCyrille Pitchen	select CRYPTO_AEAD
427b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
428aee1f9f3SYueHaibing	select CRYPTO_AUTHENC if CRYPTO_DEV_ATMEL_AUTHENC
429aee1f9f3SYueHaibing	select CRYPTO_DEV_ATMEL_SHA if CRYPTO_DEV_ATMEL_AUTHENC
430bd3c7b5cSNicolas Royer	help
431bd3c7b5cSNicolas Royer	  Some Atmel processors have AES hw accelerator.
432bd3c7b5cSNicolas Royer	  Select this if you want to use the Atmel module for
433bd3c7b5cSNicolas Royer	  AES algorithms.
434bd3c7b5cSNicolas Royer
435bd3c7b5cSNicolas Royer	  To compile this driver as a module, choose M here: the module
436bd3c7b5cSNicolas Royer	  will be called atmel-aes.
437bd3c7b5cSNicolas Royer
43813802005SNicolas Royerconfig CRYPTO_DEV_ATMEL_TDES
43913802005SNicolas Royer	tristate "Support for Atmel DES/TDES hw accelerator"
440ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
44104007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
442b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
44313802005SNicolas Royer	help
44413802005SNicolas Royer	  Some Atmel processors have DES/TDES hw accelerator.
44513802005SNicolas Royer	  Select this if you want to use the Atmel module for
44613802005SNicolas Royer	  DES/TDES algorithms.
44713802005SNicolas Royer
44813802005SNicolas Royer	  To compile this driver as a module, choose M here: the module
44913802005SNicolas Royer	  will be called atmel-tdes.
45013802005SNicolas Royer
451ebc82efaSNicolas Royerconfig CRYPTO_DEV_ATMEL_SHA
452d4905b38SNicolas Royer	tristate "Support for Atmel SHA hw accelerator"
453ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
454596103cfSHerbert Xu	select CRYPTO_HASH
455ebc82efaSNicolas Royer	help
456d4905b38SNicolas Royer	  Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512
457d4905b38SNicolas Royer	  hw accelerator.
458ebc82efaSNicolas Royer	  Select this if you want to use the Atmel module for
459d4905b38SNicolas Royer	  SHA1/SHA224/SHA256/SHA384/SHA512 algorithms.
460ebc82efaSNicolas Royer
461ebc82efaSNicolas Royer	  To compile this driver as a module, choose M here: the module
462ebc82efaSNicolas Royer	  will be called atmel-sha.
463ebc82efaSNicolas Royer
464c34a3201SArd Biesheuvelconfig CRYPTO_DEV_ATMEL_I2C
465c34a3201SArd Biesheuvel	tristate
466d33a23b0SArnd Bergmann	select BITREVERSE
467c34a3201SArd Biesheuvel
46811105693STudor-Dan Ambarusconfig CRYPTO_DEV_ATMEL_ECC
46911105693STudor-Dan Ambarus	tristate "Support for Microchip / Atmel ECC hw accelerator"
47011105693STudor-Dan Ambarus	depends on I2C
471c34a3201SArd Biesheuvel	select CRYPTO_DEV_ATMEL_I2C
47211105693STudor-Dan Ambarus	select CRYPTO_ECDH
47311105693STudor-Dan Ambarus	select CRC16
47411105693STudor-Dan Ambarus	help
47511105693STudor-Dan Ambarus	  Microhip / Atmel ECC hw accelerator.
47611105693STudor-Dan Ambarus	  Select this if you want to use the Microchip / Atmel module for
47711105693STudor-Dan Ambarus	  ECDH algorithm.
47811105693STudor-Dan Ambarus
47911105693STudor-Dan Ambarus	  To compile this driver as a module, choose M here: the module
48011105693STudor-Dan Ambarus	  will be called atmel-ecc.
48111105693STudor-Dan Ambarus
482da001fb6SArd Biesheuvelconfig CRYPTO_DEV_ATMEL_SHA204A
483da001fb6SArd Biesheuvel	tristate "Support for Microchip / Atmel SHA accelerator and RNG"
484da001fb6SArd Biesheuvel	depends on I2C
485da001fb6SArd Biesheuvel	select CRYPTO_DEV_ATMEL_I2C
486da001fb6SArd Biesheuvel	select HW_RANDOM
4874bb02dbdSYueHaibing	select CRC16
488da001fb6SArd Biesheuvel	help
489da001fb6SArd Biesheuvel	  Microhip / Atmel SHA accelerator and RNG.
490da001fb6SArd Biesheuvel	  Select this if you want to use the Microchip / Atmel SHA204A
491da001fb6SArd Biesheuvel	  module as a random number generator. (Other functions of the
492da001fb6SArd Biesheuvel	  chip are currently not exposed by this driver)
493da001fb6SArd Biesheuvel
494da001fb6SArd Biesheuvel	  To compile this driver as a module, choose M here: the module
495da001fb6SArd Biesheuvel	  will be called atmel-sha204a.
496da001fb6SArd Biesheuvel
497f1147660STom Lendackyconfig CRYPTO_DEV_CCP
498720419f0SBrijesh Singh	bool "Support for AMD Secure Processor"
4996c506343STom Lendacky	depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM
500f1147660STom Lendacky	help
501720419f0SBrijesh Singh	  The AMD Secure Processor provides support for the Cryptographic Coprocessor
502720419f0SBrijesh Singh	  (CCP) and the Platform Security Processor (PSP) devices.
503f1147660STom Lendacky
504f1147660STom Lendackyif CRYPTO_DEV_CCP
505f1147660STom Lendacky	source "drivers/crypto/ccp/Kconfig"
506f1147660STom Lendackyendif
507f1147660STom Lendacky
50815b59e7cSMarek Vasutconfig CRYPTO_DEV_MXS_DCP
50915b59e7cSMarek Vasut	tristate "Support for Freescale MXS DCP"
510a2712e6cSFabio Estevam	depends on (ARCH_MXS || ARCH_MXC)
511dc97fa02SArnd Bergmann	select STMP_DEVICE
51215b59e7cSMarek Vasut	select CRYPTO_CBC
51315b59e7cSMarek Vasut	select CRYPTO_ECB
51415b59e7cSMarek Vasut	select CRYPTO_AES
515b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
516596103cfSHerbert Xu	select CRYPTO_HASH
51715b59e7cSMarek Vasut	help
51815b59e7cSMarek Vasut	  The Freescale i.MX23/i.MX28 has SHA1/SHA256 and AES128 CBC/ECB
51915b59e7cSMarek Vasut	  co-processor on the die.
52015b59e7cSMarek Vasut
52115b59e7cSMarek Vasut	  To compile this driver as a module, choose M here: the module
52215b59e7cSMarek Vasut	  will be called mxs-dcp.
52315b59e7cSMarek Vasut
52462ad8b5cSGeorge Cheriansource "drivers/crypto/cavium/cpt/Kconfig"
52514fa93cdSSrikanth Jampalasource "drivers/crypto/cavium/nitrox/Kconfig"
526655ff1a1SSrujanaChallasource "drivers/crypto/marvell/Kconfig"
527fbf31dd5STom Zanussisource "drivers/crypto/intel/Kconfig"
528c672752dSStanimir Varbanov
529640035a2SMahipal Challaconfig CRYPTO_DEV_CAVIUM_ZIP
530640035a2SMahipal Challa	tristate "Cavium ZIP driver"
531640035a2SMahipal Challa	depends on PCI && 64BIT && (ARM64 || COMPILE_TEST)
532a7f7f624SMasahiro Yamada	help
533640035a2SMahipal Challa	  Select this option if you want to enable compression/decompression
534640035a2SMahipal Challa	  acceleration on Cavium's ARM based SoCs
535640035a2SMahipal Challa
536c672752dSStanimir Varbanovconfig CRYPTO_DEV_QCE
537c672752dSStanimir Varbanov	tristate "Qualcomm crypto engine accelerator"
538ee1b23d1SGeert Uytterhoeven	depends on ARCH_QCOM || COMPILE_TEST
539ee1b23d1SGeert Uytterhoeven	depends on HAS_IOMEM
54059e056cdSEneas U de Queiroz	help
54159e056cdSEneas U de Queiroz	  This driver supports Qualcomm crypto engine accelerator
54259e056cdSEneas U de Queiroz	  hardware. To compile this driver as a module, choose M here. The
54359e056cdSEneas U de Queiroz	  module will be called qcrypto.
54459e056cdSEneas U de Queiroz
54559e056cdSEneas U de Queirozconfig CRYPTO_DEV_QCE_SKCIPHER
54659e056cdSEneas U de Queiroz	bool
54759e056cdSEneas U de Queiroz	depends on CRYPTO_DEV_QCE
548c672752dSStanimir Varbanov	select CRYPTO_AES
54904007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
550c672752dSStanimir Varbanov	select CRYPTO_ECB
551c672752dSStanimir Varbanov	select CRYPTO_CBC
552c672752dSStanimir Varbanov	select CRYPTO_XTS
553c672752dSStanimir Varbanov	select CRYPTO_CTR
554b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
55559e056cdSEneas U de Queiroz
55659e056cdSEneas U de Queirozconfig CRYPTO_DEV_QCE_SHA
55759e056cdSEneas U de Queiroz	bool
55859e056cdSEneas U de Queiroz	depends on CRYPTO_DEV_QCE
5598ac1b9ccSSivaprakash Murugesan	select CRYPTO_SHA1
5608ac1b9ccSSivaprakash Murugesan	select CRYPTO_SHA256
56159e056cdSEneas U de Queiroz
5629363efb4SThara Gopinathconfig CRYPTO_DEV_QCE_AEAD
5639363efb4SThara Gopinath	bool
5649363efb4SThara Gopinath	depends on CRYPTO_DEV_QCE
5659363efb4SThara Gopinath	select CRYPTO_AUTHENC
5669363efb4SThara Gopinath	select CRYPTO_LIB_DES
5679363efb4SThara Gopinath
56859e056cdSEneas U de Queirozchoice
56959e056cdSEneas U de Queiroz	prompt "Algorithms enabled for QCE acceleration"
57059e056cdSEneas U de Queiroz	default CRYPTO_DEV_QCE_ENABLE_ALL
57159e056cdSEneas U de Queiroz	depends on CRYPTO_DEV_QCE
572c672752dSStanimir Varbanov	help
5732e0e386aSColin Ian King	  This option allows to choose whether to build support for all algorithms
57459e056cdSEneas U de Queiroz	  (default), hashes-only, or skciphers-only.
57559e056cdSEneas U de Queiroz
57659e056cdSEneas U de Queiroz	  The QCE engine does not appear to scale as well as the CPU to handle
57759e056cdSEneas U de Queiroz	  multiple crypto requests.  While the ipq40xx chips have 4-core CPUs, the
57859e056cdSEneas U de Queiroz	  QCE handles only 2 requests in parallel.
57959e056cdSEneas U de Queiroz
58059e056cdSEneas U de Queiroz	  Ipsec throughput seems to improve when disabling either family of
58159e056cdSEneas U de Queiroz	  algorithms, sharing the load with the CPU.  Enabling skciphers-only
58259e056cdSEneas U de Queiroz	  appears to work best.
58359e056cdSEneas U de Queiroz
58459e056cdSEneas U de Queiroz	config CRYPTO_DEV_QCE_ENABLE_ALL
58559e056cdSEneas U de Queiroz		bool "All supported algorithms"
58659e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SKCIPHER
58759e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SHA
5889363efb4SThara Gopinath		select CRYPTO_DEV_QCE_AEAD
58959e056cdSEneas U de Queiroz		help
59059e056cdSEneas U de Queiroz		  Enable all supported algorithms:
59159e056cdSEneas U de Queiroz			- AES (CBC, CTR, ECB, XTS)
59259e056cdSEneas U de Queiroz			- 3DES (CBC, ECB)
59359e056cdSEneas U de Queiroz			- DES (CBC, ECB)
59459e056cdSEneas U de Queiroz			- SHA1, HMAC-SHA1
59559e056cdSEneas U de Queiroz			- SHA256, HMAC-SHA256
59659e056cdSEneas U de Queiroz
59759e056cdSEneas U de Queiroz	config CRYPTO_DEV_QCE_ENABLE_SKCIPHER
59859e056cdSEneas U de Queiroz		bool "Symmetric-key ciphers only"
59959e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SKCIPHER
60059e056cdSEneas U de Queiroz		help
60159e056cdSEneas U de Queiroz		  Enable symmetric-key ciphers only:
60259e056cdSEneas U de Queiroz			- AES (CBC, CTR, ECB, XTS)
60359e056cdSEneas U de Queiroz			- 3DES (ECB, CBC)
60459e056cdSEneas U de Queiroz			- DES (ECB, CBC)
60559e056cdSEneas U de Queiroz
60659e056cdSEneas U de Queiroz	config CRYPTO_DEV_QCE_ENABLE_SHA
60759e056cdSEneas U de Queiroz		bool "Hash/HMAC only"
60859e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SHA
60959e056cdSEneas U de Queiroz		help
61059e056cdSEneas U de Queiroz		  Enable hashes/HMAC algorithms only:
61159e056cdSEneas U de Queiroz			- SHA1, HMAC-SHA1
61259e056cdSEneas U de Queiroz			- SHA256, HMAC-SHA256
61359e056cdSEneas U de Queiroz
6149363efb4SThara Gopinath	config CRYPTO_DEV_QCE_ENABLE_AEAD
6159363efb4SThara Gopinath		bool "AEAD algorithms only"
6169363efb4SThara Gopinath		select CRYPTO_DEV_QCE_AEAD
6179363efb4SThara Gopinath		help
6189363efb4SThara Gopinath		  Enable AEAD algorithms only:
6199363efb4SThara Gopinath			- authenc()
6209363efb4SThara Gopinath			- ccm(aes)
6219363efb4SThara Gopinath			- rfc4309(ccm(aes))
62259e056cdSEneas U de Queirozendchoice
623c672752dSStanimir Varbanov
624ce163ba0SEneas U de Queirozconfig CRYPTO_DEV_QCE_SW_MAX_LEN
625ce163ba0SEneas U de Queiroz	int "Default maximum request size to use software for AES"
626ce163ba0SEneas U de Queiroz	depends on CRYPTO_DEV_QCE && CRYPTO_DEV_QCE_SKCIPHER
627ce163ba0SEneas U de Queiroz	default 512
628ce163ba0SEneas U de Queiroz	help
629ce163ba0SEneas U de Queiroz	  This sets the default maximum request size to perform AES requests
630ce163ba0SEneas U de Queiroz	  using software instead of the crypto engine.  It can be changed by
631ce163ba0SEneas U de Queiroz	  setting the aes_sw_max_len parameter.
632ce163ba0SEneas U de Queiroz
633ce163ba0SEneas U de Queiroz	  Small blocks are processed faster in software than hardware.
634ce163ba0SEneas U de Queiroz	  Considering the 256-bit ciphers, software is 2-3 times faster than
635ce163ba0SEneas U de Queiroz	  qce at 256-bytes, 30% faster at 512, and about even at 768-bytes.
636ce163ba0SEneas U de Queiroz	  With 128-bit keys, the break-even point would be around 1024-bytes.
637ce163ba0SEneas U de Queiroz
638ce163ba0SEneas U de Queiroz	  The default is set a little lower, to 512 bytes, to balance the
639ce163ba0SEneas U de Queiroz	  cost in CPU usage.  The minimum recommended setting is 16-bytes
640ce163ba0SEneas U de Queiroz	  (1 AES block), since AES-GCM will fail if you set it lower.
641ce163ba0SEneas U de Queiroz	  Setting this to zero will send all requests to the hardware.
642ce163ba0SEneas U de Queiroz
643ce163ba0SEneas U de Queiroz	  Note that 192-bit keys are not supported by the hardware and are
644ce163ba0SEneas U de Queiroz	  always processed by the software fallback, and all DES requests
645ce163ba0SEneas U de Queiroz	  are done by the hardware.
646ce163ba0SEneas U de Queiroz
647ceec5f5bSVinod Koulconfig CRYPTO_DEV_QCOM_RNG
648ceec5f5bSVinod Koul	tristate "Qualcomm Random Number Generator Driver"
649ceec5f5bSVinod Koul	depends on ARCH_QCOM || COMPILE_TEST
650a2786e8bSAndré Apitzsch	depends on HW_RANDOM
651ceec5f5bSVinod Koul	select CRYPTO_RNG
652ceec5f5bSVinod Koul	help
653ceec5f5bSVinod Koul	  This driver provides support for the Random Number
654ceec5f5bSVinod Koul	  Generator hardware found on Qualcomm SoCs.
655ceec5f5bSVinod Koul
656ceec5f5bSVinod Koul	  To compile this driver as a module, choose M here. The
657ceec5f5bSVinod Koul	  module will be called qcom-rng. If unsure, say N.
658ceec5f5bSVinod Koul
65910930333SDanny Tsen#config CRYPTO_DEV_VMX
66010930333SDanny Tsen#	bool "Support for VMX cryptographic acceleration instructions"
66110930333SDanny Tsen#	depends on PPC64 && VSX
66210930333SDanny Tsen#	help
66310930333SDanny Tsen#	  Support for VMX cryptographic acceleration instructions.
66410930333SDanny Tsen#
66510930333SDanny Tsen#source "drivers/crypto/vmx/Kconfig"
666d2e3ae6fSLeonidas S. Barbosa
667d358f1abSJames Hartleyconfig CRYPTO_DEV_IMGTEC_HASH
668d358f1abSJames Hartley	tristate "Imagination Technologies hardware hash accelerator"
6698c98ebd7SGeert Uytterhoeven	depends on MIPS || COMPILE_TEST
670d358f1abSJames Hartley	select CRYPTO_MD5
671d358f1abSJames Hartley	select CRYPTO_SHA1
672d358f1abSJames Hartley	select CRYPTO_SHA256
673d358f1abSJames Hartley	select CRYPTO_HASH
674d358f1abSJames Hartley	help
675d358f1abSJames Hartley	  This driver interfaces with the Imagination Technologies
676d358f1abSJames Hartley	  hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
677d358f1abSJames Hartley	  hashing algorithms.
678d358f1abSJames Hartley
679433cd2c6SZain Wangconfig CRYPTO_DEV_ROCKCHIP
680433cd2c6SZain Wang	tristate "Rockchip's Cryptographic Engine driver"
681433cd2c6SZain Wang	depends on OF && ARCH_ROCKCHIP
68268ef8af0SCorentin Labbe	depends on PM
68368ef8af0SCorentin Labbe	select CRYPTO_ECB
68468ef8af0SCorentin Labbe	select CRYPTO_CBC
68568ef8af0SCorentin Labbe	select CRYPTO_DES
686433cd2c6SZain Wang	select CRYPTO_AES
68757d67c6eSCorentin Labbe	select CRYPTO_ENGINE
68804007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
689bfd927ffSZain Wang	select CRYPTO_MD5
690bfd927ffSZain Wang	select CRYPTO_SHA1
691bfd927ffSZain Wang	select CRYPTO_SHA256
692bfd927ffSZain Wang	select CRYPTO_HASH
693b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
694433cd2c6SZain Wang
695433cd2c6SZain Wang	help
696433cd2c6SZain Wang	  This driver interfaces with the hardware crypto accelerator.
697433cd2c6SZain Wang	  Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
698433cd2c6SZain Wang
69948d904d4SCorentin Labbeconfig CRYPTO_DEV_ROCKCHIP_DEBUG
70048d904d4SCorentin Labbe	bool "Enable Rockchip crypto stats"
70148d904d4SCorentin Labbe	depends on CRYPTO_DEV_ROCKCHIP
70248d904d4SCorentin Labbe	depends on DEBUG_FS
70348d904d4SCorentin Labbe	help
70448d904d4SCorentin Labbe	  Say y to enable Rockchip crypto debug stats.
70548d904d4SCorentin Labbe	  This will create /sys/kernel/debug/rk3288_crypto/stats for displaying
70648d904d4SCorentin Labbe	  the number of requests per algorithm and other internal stats.
70748d904d4SCorentin Labbe
7080880bb3bSAkhil Rconfig CRYPTO_DEV_TEGRA
7090880bb3bSAkhil R	tristate "Enable Tegra Security Engine"
7100880bb3bSAkhil R	depends on TEGRA_HOST1X
7110880bb3bSAkhil R	select CRYPTO_ENGINE
7120880bb3bSAkhil R
7130880bb3bSAkhil R	help
7140880bb3bSAkhil R	  Select this to enable Tegra Security Engine which accelerates various
7150880bb3bSAkhil R	  AES encryption/decryption and HASH algorithms.
71648d904d4SCorentin Labbe
7174d96f7d4SKalyani Akulaconfig CRYPTO_DEV_ZYNQMP_AES
7184d96f7d4SKalyani Akula	tristate "Support for Xilinx ZynqMP AES hw accelerator"
7194d96f7d4SKalyani Akula	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
7204d96f7d4SKalyani Akula	select CRYPTO_AES
7214d96f7d4SKalyani Akula	select CRYPTO_ENGINE
7224d96f7d4SKalyani Akula	select CRYPTO_AEAD
7234d96f7d4SKalyani Akula	help
7244d96f7d4SKalyani Akula	  Xilinx ZynqMP has AES-GCM engine used for symmetric key
7254d96f7d4SKalyani Akula	  encryption and decryption. This driver interfaces with AES hw
7264d96f7d4SKalyani Akula	  accelerator. Select this if you want to use the ZynqMP module
7274d96f7d4SKalyani Akula	  for AES algorithms.
7284d96f7d4SKalyani Akula
7297ecc3e34SHarshaconfig CRYPTO_DEV_ZYNQMP_SHA3
7300e03b8fdSHerbert Xu	tristate "Support for Xilinx ZynqMP SHA3 hardware accelerator"
7310e03b8fdSHerbert Xu	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
7327ecc3e34SHarsha	select CRYPTO_SHA3
7337ecc3e34SHarsha	help
7347ecc3e34SHarsha	  Xilinx ZynqMP has SHA3 engine used for secure hash calculation.
7357ecc3e34SHarsha	  This driver interfaces with SHA3 hardware engine.
7367ecc3e34SHarsha	  Select this if you want to use the ZynqMP module
7377ecc3e34SHarsha	  for SHA3 hash computation.
7387ecc3e34SHarsha
73902038fd6SHariprasad Shenaisource "drivers/crypto/chelsio/Kconfig"
74002038fd6SHariprasad Shenai
741dbaf0624SGongleisource "drivers/crypto/virtio/Kconfig"
742dbaf0624SGonglei
7439d12ba86SRob Riceconfig CRYPTO_DEV_BCM_SPU
7449d12ba86SRob Rice	tristate "Broadcom symmetric crypto/hash acceleration support"
7459d12ba86SRob Rice	depends on ARCH_BCM_IPROC
746efc856edSraveendra padasalagi	depends on MAILBOX
7479d12ba86SRob Rice	default m
748ab57b335SEric Biggers	select CRYPTO_AUTHENC
74904007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
7509d12ba86SRob Rice	select CRYPTO_MD5
7519d12ba86SRob Rice	select CRYPTO_SHA1
7529d12ba86SRob Rice	select CRYPTO_SHA256
7539d12ba86SRob Rice	select CRYPTO_SHA512
7549d12ba86SRob Rice	help
7559d12ba86SRob Rice	  This driver provides support for Broadcom crypto acceleration using the
756a9c01cd6SArd Biesheuvel	  Secure Processing Unit (SPU). The SPU driver registers skcipher,
7579d12ba86SRob Rice	  ahash, and aead algorithms with the kernel cryptographic API.
7589d12ba86SRob Rice
759b51dbe90SFabien DESSENNEsource "drivers/crypto/stm32/Kconfig"
760b51dbe90SFabien DESSENNE
7611b44c5a6SAntoine Ténartconfig CRYPTO_DEV_SAFEXCEL
7621b44c5a6SAntoine Ténart	tristate "Inside Secure's SafeXcel cryptographic engine driver"
7636dc0e310SBrendan Higgins	depends on (OF || PCI || COMPILE_TEST) && HAS_IOMEM
764363a90c2SArd Biesheuvel	select CRYPTO_LIB_AES
765f6beaea3SAntoine Tenart	select CRYPTO_AUTHENC
766b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
76704007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
7681b44c5a6SAntoine Ténart	select CRYPTO_HASH
7691b44c5a6SAntoine Ténart	select CRYPTO_HMAC
770293f89cfSOfer Heifetz	select CRYPTO_MD5
7711b44c5a6SAntoine Ténart	select CRYPTO_SHA1
7721b44c5a6SAntoine Ténart	select CRYPTO_SHA256
7731b44c5a6SAntoine Ténart	select CRYPTO_SHA512
774fc0f82b1SPascal van Leeuwen	select CRYPTO_CHACHA20POLY1305
7751d448f27SPascal van Leeuwen	select CRYPTO_SHA3
7761b44c5a6SAntoine Ténart	help
7770f6e5c82SPascal van Leeuwen	  This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic
7780f6e5c82SPascal van Leeuwen	  engines designed by Inside Secure. It currently accelerates DES, 3DES and
7790f6e5c82SPascal van Leeuwen	  AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256,
7800f6e5c82SPascal van Leeuwen	  SHA384 and SHA512 hash algorithms for both basic hash and HMAC.
7810f6e5c82SPascal van Leeuwen	  Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations.
7821b44c5a6SAntoine Ténart
783a21eb94fSLars Perssonconfig CRYPTO_DEV_ARTPEC6
784a21eb94fSLars Persson	tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."
785a21eb94fSLars Persson	depends on ARM && (ARCH_ARTPEC || COMPILE_TEST)
786a21eb94fSLars Persson	depends on OF
787a21eb94fSLars Persson	select CRYPTO_AEAD
788a21eb94fSLars Persson	select CRYPTO_AES
789a21eb94fSLars Persson	select CRYPTO_ALGAPI
790b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
791a21eb94fSLars Persson	select CRYPTO_CTR
792a21eb94fSLars Persson	select CRYPTO_HASH
793a21eb94fSLars Persson	select CRYPTO_SHA1
794a21eb94fSLars Persson	select CRYPTO_SHA256
795a21eb94fSLars Persson	select CRYPTO_SHA512
796a21eb94fSLars Persson	help
797a21eb94fSLars Persson	  Enables the driver for the on-chip crypto accelerator
798a21eb94fSLars Persson	  of Axis ARTPEC SoCs.
799a21eb94fSLars Persson
800a21eb94fSLars Persson	  To compile this driver as a module, choose M here.
801a21eb94fSLars Persson
8024c3f9727SGilad Ben-Yossefconfig CRYPTO_DEV_CCREE
8034c3f9727SGilad Ben-Yossef	tristate "Support for ARM TrustZone CryptoCell family of security processors"
8044c3f9727SGilad Ben-Yossef	depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA
805ed490503SHerbert Xu	depends on HAS_IOMEM
8064c3f9727SGilad Ben-Yossef	select CRYPTO_HASH
807b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
80804007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
8094c3f9727SGilad Ben-Yossef	select CRYPTO_AEAD
8104c3f9727SGilad Ben-Yossef	select CRYPTO_AUTHENC
8114c3f9727SGilad Ben-Yossef	select CRYPTO_SHA1
8124c3f9727SGilad Ben-Yossef	select CRYPTO_MD5
8134c3f9727SGilad Ben-Yossef	select CRYPTO_SHA256
8144c3f9727SGilad Ben-Yossef	select CRYPTO_SHA512
8154c3f9727SGilad Ben-Yossef	select CRYPTO_HMAC
8164c3f9727SGilad Ben-Yossef	select CRYPTO_AES
8174c3f9727SGilad Ben-Yossef	select CRYPTO_CBC
8184c3f9727SGilad Ben-Yossef	select CRYPTO_ECB
8194c3f9727SGilad Ben-Yossef	select CRYPTO_CTR
8204c3f9727SGilad Ben-Yossef	select CRYPTO_XTS
8212ae6feb1STianjia Zhang	select CRYPTO_SM4_GENERIC
8222ae6feb1STianjia Zhang	select CRYPTO_SM3_GENERIC
8234c3f9727SGilad Ben-Yossef	help
82427b3b22dSGilad Ben-Yossef	  Say 'Y' to enable a driver for the REE interface of the Arm
82527b3b22dSGilad Ben-Yossef	  TrustZone CryptoCell family of processors. Currently the
8261c876a90SGilad Ben-Yossef	  CryptoCell 713, 703, 712, 710 and 630 are supported.
8274c3f9727SGilad Ben-Yossef	  Choose this if you wish to use hardware acceleration of
8284c3f9727SGilad Ben-Yossef	  cryptographic operations on the system REE.
8294c3f9727SGilad Ben-Yossef	  If unsure say Y.
8304c3f9727SGilad Ben-Yossef
831915e4e84SJonathan Cameronsource "drivers/crypto/hisilicon/Kconfig"
832915e4e84SJonathan Cameron
83348fe583fSCorentin Labbesource "drivers/crypto/amlogic/Kconfig"
83448fe583fSCorentin Labbe
8357694b6caSKeerthyconfig CRYPTO_DEV_SA2UL
8367694b6caSKeerthy	tristate "Support for TI security accelerator"
8377694b6caSKeerthy	depends on ARCH_K3 || COMPILE_TEST
8387694b6caSKeerthy	select CRYPTO_AES
8397694b6caSKeerthy	select CRYPTO_ALGAPI
84061f033baSHerbert Xu	select CRYPTO_AUTHENC
8418832023eSSuman Anna	select CRYPTO_DES
842bfe8fe93SRandy Dunlap	select CRYPTO_SHA1
843bfe8fe93SRandy Dunlap	select CRYPTO_SHA256
844bfe8fe93SRandy Dunlap	select CRYPTO_SHA512
8457694b6caSKeerthy	select HW_RANDOM
8467694b6caSKeerthy	select SG_SPLIT
8477694b6caSKeerthy	help
8487694b6caSKeerthy	  K3 devices include a security accelerator engine that may be
8497694b6caSKeerthy	  used for crypto offload.  Select this if you want to use hardware
8507694b6caSKeerthy	  acceleration for cryptographic algorithms on these devices.
8517694b6caSKeerthy
852108713a7SNeal Liusource "drivers/crypto/aspeed/Kconfig"
85342ef0e94SJia Jie Hosource "drivers/crypto/starfive/Kconfig"
85488574332SMike Healy
855b511431dSJan Engelhardtendif # CRYPTO_HW
856