xref: /linux/drivers/crypto/Kconfig (revision e9ef810dfee7a2227da9d423aecb0ced35faddbe)
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
828fcc231cSHarald 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
868fcc231cSHarald Freudenberger	  The protected key support is distributed into:
878fcc231cSHarald Freudenberger	  - A pkey base and API kernel module (pkey.ko) which offers the
888fcc231cSHarald Freudenberger	    infrastructure for the pkey handler kernel modules, the ioctl
898fcc231cSHarald Freudenberger	    and the sysfs API and the in-kernel API to the crypto cipher
908fcc231cSHarald Freudenberger	    implementations using protected key.
918fcc231cSHarald Freudenberger	  - A pkey pckmo kernel module (pkey-pckmo.ko) which is automatically
928fcc231cSHarald Freudenberger	    loaded when pckmo support (that is generation of protected keys
938fcc231cSHarald Freudenberger	    from clear key values) is available.
948fcc231cSHarald Freudenberger	  - A pkey CCA kernel module (pkey-cca.ko) which is automatically
958fcc231cSHarald Freudenberger	    loaded when a CEX crypto card is available.
968fcc231cSHarald Freudenberger	  - A pkey EP11 kernel module (pkey-ep11.ko) which is automatically
978fcc231cSHarald Freudenberger	    loaded when a CEX crypto card is available.
9873dfc79cSHarald Freudenberger	  - A pkey UV kernel module (pkey-uv.ko) which is automatically
9973dfc79cSHarald Freudenberger	    loaded when the Ultravisor feature is available within a
10073dfc79cSHarald Freudenberger	    protected execution environment.
101e80d4af0SHarald Freudenberger
1028fcc231cSHarald Freudenberger	  Select this option if you want to enable the kernel and userspace
1038fcc231cSHarald Freudenberger	  API for protected key handling.
1048fcc231cSHarald Freudenberger
1058fcc231cSHarald Freudenbergerconfig PKEY_CCA
1068fcc231cSHarald Freudenberger	tristate "PKEY CCA support handler"
1078fcc231cSHarald Freudenberger	depends on PKEY
1088fcc231cSHarald Freudenberger	depends on ZCRYPT
1098fcc231cSHarald Freudenberger	help
1108fcc231cSHarald Freudenberger	  This is the CCA support handler for deriving protected keys
1118fcc231cSHarald Freudenberger	  from CCA (secure) keys. Also this handler provides an alternate
1128fcc231cSHarald Freudenberger	  way to make protected keys from clear key values.
1138fcc231cSHarald Freudenberger
1148fcc231cSHarald Freudenberger	  The PKEY CCA support handler needs a Crypto Express card (CEX)
1158fcc231cSHarald Freudenberger	  in CCA mode.
1168fcc231cSHarald Freudenberger
1178fcc231cSHarald Freudenberger	  If you have selected the PKEY option then you should also enable
1188fcc231cSHarald Freudenberger	  this option unless you are sure you never need to derive protected
1198fcc231cSHarald Freudenberger	  keys from CCA key material.
1208fcc231cSHarald Freudenberger
1218fcc231cSHarald Freudenbergerconfig PKEY_EP11
1228fcc231cSHarald Freudenberger	tristate "PKEY EP11 support handler"
1238fcc231cSHarald Freudenberger	depends on PKEY
1248fcc231cSHarald Freudenberger	depends on ZCRYPT
1258fcc231cSHarald Freudenberger	help
1268fcc231cSHarald Freudenberger	  This is the EP11 support handler for deriving protected keys
1278fcc231cSHarald Freudenberger	  from EP11 (secure) keys. Also this handler provides an alternate
1288fcc231cSHarald Freudenberger	  way to make protected keys from clear key values.
1298fcc231cSHarald Freudenberger
1308fcc231cSHarald Freudenberger	  The PKEY EP11 support handler needs a Crypto Express card (CEX)
1318fcc231cSHarald Freudenberger	  in EP11 mode.
1328fcc231cSHarald Freudenberger
1338fcc231cSHarald Freudenberger	  If you have selected the PKEY option then you should also enable
1348fcc231cSHarald Freudenberger	  this option unless you are sure you never need to derive protected
1358fcc231cSHarald Freudenberger	  keys from EP11 key material.
1368fcc231cSHarald Freudenberger
1378fcc231cSHarald Freudenbergerconfig PKEY_PCKMO
1388fcc231cSHarald Freudenberger	tristate "PKEY PCKMO support handler"
1398fcc231cSHarald Freudenberger	depends on PKEY
1408fcc231cSHarald Freudenberger	help
1418fcc231cSHarald Freudenberger	  This is the PCKMO support handler for deriving protected keys
1428fcc231cSHarald Freudenberger	  from clear key values via invoking the PCKMO instruction.
1438fcc231cSHarald Freudenberger
1448fcc231cSHarald Freudenberger	  The PCKMO instruction can be enabled and disabled in the crypto
1458fcc231cSHarald Freudenberger	  settings at the LPAR profile. This handler checks for availability
1468fcc231cSHarald Freudenberger	  during initialization and if build as a kernel module unloads
1478fcc231cSHarald Freudenberger	  itself if PCKMO is disabled.
1488fcc231cSHarald Freudenberger
1498fcc231cSHarald Freudenberger	  The PCKMO way of deriving protected keys from clear key material
1508fcc231cSHarald Freudenberger	  is especially used during self test of protected key ciphers like
1518fcc231cSHarald Freudenberger	  PAES but the CCA and EP11 handler provide alternate ways to
1528fcc231cSHarald Freudenberger	  generate protected keys from clear key values.
1538fcc231cSHarald Freudenberger
1548fcc231cSHarald Freudenberger	  If you have selected the PKEY option then you should also enable
1558fcc231cSHarald Freudenberger	  this option unless you are sure you never need to derive protected
1568fcc231cSHarald Freudenberger	  keys from clear key values directly via PCKMO.
15761d48c2cSMartin Schwidefsky
15873dfc79cSHarald Freudenbergerconfig PKEY_UV
15973dfc79cSHarald Freudenberger	tristate "PKEY UV support handler"
16073dfc79cSHarald Freudenberger	depends on PKEY
16173dfc79cSHarald Freudenberger	depends on S390_UV_UAPI
16273dfc79cSHarald Freudenberger	help
16373dfc79cSHarald Freudenberger	  This is the PKEY Ultravisor support handler for deriving protected
16473dfc79cSHarald Freudenberger	  keys from secrets stored within the Ultravisor (UV).
16573dfc79cSHarald Freudenberger
16673dfc79cSHarald Freudenberger	  This module works together with the UV device and supports the
16773dfc79cSHarald Freudenberger	  retrieval of protected keys from secrets stored within the
16873dfc79cSHarald Freudenberger	  UV firmware layer. This service is only available within
16973dfc79cSHarald Freudenberger	  a protected execution guest and thus this module will fail upon
17073dfc79cSHarald Freudenberger	  modprobe if no protected execution environment is detected.
17173dfc79cSHarald Freudenberger
17273dfc79cSHarald Freudenberger	  Enable this option if you intend to run this kernel with an KVM
17373dfc79cSHarald Freudenberger	  guest with protected execution and you want to use UV retrievable
17473dfc79cSHarald Freudenberger	  secrets via PKEY API.
17573dfc79cSHarald Freudenberger
176c4684f98SHarald Freudenbergerconfig CRYPTO_PAES_S390
177c4684f98SHarald Freudenberger	tristate "PAES cipher algorithms"
178c4684f98SHarald Freudenberger	depends on S390
179c4684f98SHarald Freudenberger	depends on ZCRYPT
180c4684f98SHarald Freudenberger	depends on PKEY
181c4684f98SHarald Freudenberger	select CRYPTO_ALGAPI
182b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
183*34a149a0SHarald Freudenberger	select CRYPTO_ENGINE
184c4684f98SHarald Freudenberger	help
185c4684f98SHarald Freudenberger	  This is the s390 hardware accelerated implementation of the
186c4684f98SHarald Freudenberger	  AES cipher algorithms for use with protected key.
187c4684f98SHarald Freudenberger
188c4684f98SHarald Freudenberger	  Select this option if you want to use the paes cipher
189c4684f98SHarald Freudenberger	  for example to use protected key encrypted devices.
190c4684f98SHarald Freudenberger
1913f5615e0SJan Glauberconfig CRYPTO_PHMAC_S390
1923f5615e0SJan Glauber	tristate "PHMAC cipher algorithms"
1933f5615e0SJan Glauber	depends on S390
1943f5615e0SJan Glauber	depends on PKEY
1953f5615e0SJan Glauber	select CRYPTO_HASH
1963f5615e0SJan Glauber	select CRYPTO_ENGINE
1973f5615e0SJan Glauber	help
1983f5615e0SJan Glauber	  This is the s390 hardware accelerated implementation of the
199d393d9b8SJan Glauber	  protected key HMAC support for SHA224, SHA256, SHA384 and SHA512.
200d393d9b8SJan Glauber
201d393d9b8SJan Glauber	  Select this option if you want to use the phmac digests
202d393d9b8SJan Glauber	  for example to use dm-integrity with secure/protected keys.
2033f5615e0SJan Glauber
20446c5338dSCorentin Labbeconfig S390_PRNG
205df941fddSGeert Uytterhoeven	tristate "Pseudo random number generator device driver"
206e29dd5c8SGeert Uytterhoeven	depends on S390
207e29dd5c8SGeert Uytterhoeven	default "m"
20846c5338dSCorentin Labbe	help
20946c5338dSCorentin Labbe	  Select this option if you want to use the s390 pseudo random number
21046c5338dSCorentin Labbe	  generator. The PRNG is part of the cryptographic processor functions
21146c5338dSCorentin Labbe	  and uses triple-DES to generate secure random numbers like the
21246c5338dSCorentin Labbe	  ANSI X9.17 standard. User-space programs access the
21346c5338dSCorentin Labbe	  pseudo-random-number device through the char device /dev/prandom.
21446c5338dSCorentin Labbe
21546c5338dSCorentin Labbe	  It is available as of z9.
21646c5338dSCorentin Labbe
21746c5338dSCorentin Labbeconfig CRYPTO_DEV_SL3516
21846c5338dSCorentin Labbe	tristate "Storlink SL3516 crypto offloader"
21946c5338dSCorentin Labbe	depends on ARCH_GEMINI || COMPILE_TEST
22046c5338dSCorentin Labbe	depends on HAS_IOMEM && PM
22146c5338dSCorentin Labbe	select CRYPTO_SKCIPHER
22246c5338dSCorentin Labbe	select CRYPTO_ENGINE
22346c5338dSCorentin Labbe	select CRYPTO_ECB
22446c5338dSCorentin Labbe	select CRYPTO_AES
225f7d0561eSEvgeniy Polyakov	select HW_RANDOM
226f7d0561eSEvgeniy Polyakov	help
22704007b0eSArd Biesheuvel	  This option allows you to have support for SL3516 crypto offloader.
228b95bba5dSEric Biggers
229946fef4eSHerbert Xuconfig CRYPTO_DEV_SL3516_DEBUG
2302707b937SJan Glauber	bool "Enable SL3516 stats"
23175b76625SRichard Weinberger	depends on CRYPTO_DEV_SL3516
232f7d0561eSEvgeniy Polyakov	depends on DEBUG_FS
233f7d0561eSEvgeniy Polyakov	help
234f7d0561eSEvgeniy Polyakov	  Say y to enable SL3516 debug stats.
235946fef4eSHerbert Xu	  This will create /sys/kernel/debug/sl3516/stats for displaying
236946fef4eSHerbert Xu	  the number of requests per algorithm and other internal stats.
237946fef4eSHerbert Xu
238946fef4eSHerbert Xuconfig CRYPTO_DEV_HIFN_795X
239946fef4eSHerbert Xu	tristate "Driver HIFN 795x crypto accelerator chips"
240946fef4eSHerbert Xu	select CRYPTO_LIB_DES
241f7d0561eSEvgeniy Polyakov	select CRYPTO_SKCIPHER
2428636a1f9SMasahiro Yamada	select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG
2438e8ec596SKim Phillips	depends on PCI
2449c4a7965SKim Phillips	depends on !ARCH_DMA_ADDR_T_64BIT
2459c4a7965SKim Phillips	help
246596103cfSHerbert Xu	  This option allows you to have support for HIFN 795x crypto adapters.
2479c4a7965SKim Phillips
248b95bba5dSEric Biggersconfig CRYPTO_DEV_HIFN_795X_RNG
249596103cfSHerbert Xu	bool "HIFN 795x random number generator"
250dbc2e87bSHerbert Xu	depends on CRYPTO_DEV_HIFN_795X
2519c4a7965SKim Phillips	help
2529c4a7965SKim Phillips	  Select this option if you want to enable the random number generator
2539c4a7965SKim Phillips	  on the HIFN 795x crypto adapters.
2549c4a7965SKim Phillips
2559c4a7965SKim Phillipssource "drivers/crypto/caam/Kconfig"
2569c4a7965SKim Phillips
2579c4a7965SKim Phillipsconfig CRYPTO_DEV_TALITOS
2589c4a7965SKim Phillips	tristate "Talitos Freescale Security Engine (SEC)"
2599c4a7965SKim Phillips	select CRYPTO_AEAD
2609c4a7965SKim Phillips	select CRYPTO_AUTHENC
2619c4a7965SKim Phillips	select CRYPTO_SKCIPHER
2629c4a7965SKim Phillips	select CRYPTO_HASH
2635b841a65SLEROY Christophe	select CRYPTO_LIB_DES
2645b841a65SLEROY Christophe	select HW_RANDOM
2655b841a65SLEROY Christophe	depends on FSL_SOC
2665b841a65SLEROY Christophe	help
2675b841a65SLEROY Christophe	  Say 'Y' here to use the Freescale Security Engine (SEC)
2685b841a65SLEROY Christophe	  to offload cryptographic algorithm computation.
2695b841a65SLEROY Christophe
2705b841a65SLEROY Christophe	  The Freescale SEC is present on PowerQUICC 'E' processors, such
2715b841a65SLEROY Christophe	  as the MPC8349E and MPC8548E.
2725b841a65SLEROY Christophe
2735b841a65SLEROY Christophe	  To compile this driver as a module, choose M here: the module
2745b841a65SLEROY Christophe	  will be called talitos.
2755b841a65SLEROY Christophe
2765b841a65SLEROY Christopheconfig CRYPTO_DEV_TALITOS1
2775b841a65SLEROY Christophe	bool "SEC1 (SEC 1.0 and SEC Lite 1.2)"
2785b841a65SLEROY Christophe	depends on CRYPTO_DEV_TALITOS
2795b841a65SLEROY Christophe	depends on PPC_8xx || PPC_82xx
2805b841a65SLEROY Christophe	default y
281049359d6SJames Hsiao	help
282049359d6SJames Hsiao	  Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0
283049359d6SJames Hsiao	  found on MPC82xx or the Freescale Security Engine (SEC Lite)
284049359d6SJames Hsiao	  version 1.2 found on MPC8xx
285a0aae821SChristian Lamparter
286298b4c60SChristian Lamparterconfig CRYPTO_DEV_TALITOS2
287da3e7a97SArd Biesheuvel	bool "SEC2+ (SEC version 2.0 or upper)"
288a0aae821SChristian Lamparter	depends on CRYPTO_DEV_TALITOS
28998e87e3dSChristian Lamparter	default y if !PPC_8xx
290a0aae821SChristian Lamparter	help
291b95bba5dSEric Biggers	  Say 'Y' here to use the Freescale Security Engine (SEC)
292049359d6SJames Hsiao	  version 2 and following as found on MPC83xx, MPC85xx, etc ...
293049359d6SJames Hsiao
294049359d6SJames Hsiaoconfig CRYPTO_DEV_PPC4XX
2955343e674SChristian Lamparter	tristate "Driver AMCC PPC4xx crypto accelerator"
2965343e674SChristian Lamparter	depends on PPC && 4xx
29763b8ee4fSFlorian Fainelli	select CRYPTO_HASH
2985343e674SChristian Lamparter	select CRYPTO_AEAD
299a7f7f624SMasahiro Yamada	select CRYPTO_AES
3005343e674SChristian Lamparter	select CRYPTO_LIB_AES
3015343e674SChristian Lamparter	select CRYPTO_CCM
3025343e674SChristian Lamparter	select CRYPTO_CTR
30374ed87e7STero Kristo	select CRYPTO_GCM
30474ed87e7STero Kristo	select CRYPTO_SKCIPHER
30574ed87e7STero Kristo	help
30674ed87e7STero Kristo	  This option allows you to have support for AMCC crypto acceleration.
30774ed87e7STero Kristo
30874ed87e7STero Kristoconfig HW_RANDOM_PPC4XX
30974ed87e7STero Kristo	bool "PowerPC 4xx generic true random number generator support"
31074ed87e7STero Kristo	depends on CRYPTO_DEV_PPC4XX && HW_RANDOM=y
31174ed87e7STero Kristo	default y
3128628e7c8SDmitry Kasatkin	help
313eaef7e3fSLokesh Vutla	 This option provides the kernel-side support for the TRNG hardware
314eaef7e3fSLokesh Vutla	 found in the security function of some PowerPC 4xx SoCs.
31538281194SArnd Bergmann
3168628e7c8SDmitry Kasatkinconfig CRYPTO_DEV_OMAP
3178628e7c8SDmitry Kasatkin	tristate "Support for OMAP crypto HW accelerators"
318eaef7e3fSLokesh Vutla	depends on ARCH_OMAP2PLUS
319eaef7e3fSLokesh Vutla	help
320eaef7e3fSLokesh Vutla	  OMAP processors have various crypto HW accelerators. Select this if
3218628e7c8SDmitry Kasatkin	  you want to use the OMAP modules for any of the crypto algorithms.
322eaef7e3fSLokesh Vutla
323eaef7e3fSLokesh Vutlaif CRYPTO_DEV_OMAP
3248628e7c8SDmitry Kasatkin
325537559a5SDmitry Kasatkinconfig CRYPTO_DEV_OMAP_SHAM
326537559a5SDmitry Kasatkin	tristate "Support for OMAP MD5/SHA1/SHA2 hw accelerator"
3271bbf6437SJoel Fernandes	depends on ARCH_OMAP2PLUS
328537559a5SDmitry Kasatkin	select CRYPTO_ENGINE
329b95bba5dSEric Biggers	select CRYPTO_SHA1
3300529900aSBaolin Wang	select CRYPTO_MD5
3319fcb191aSLokesh Vutla	select CRYPTO_SHA256
3329fcb191aSLokesh Vutla	select CRYPTO_SHA512
3339fcb191aSLokesh Vutla	select CRYPTO_HMAC
334ad18cc9dSTero Kristo	help
335537559a5SDmitry Kasatkin	  OMAP processors have MD5/SHA1/SHA2 hw accelerator. Select this if you
336537559a5SDmitry Kasatkin	  want to use the OMAP module for MD5/SHA1/SHA2 algorithms.
337537559a5SDmitry Kasatkin
338537559a5SDmitry Kasatkinconfig CRYPTO_DEV_OMAP_AES
339701d0f19SJoel Fernandes	tristate "Support for OMAP AES hw engine"
34097ee7ed3SPeter Meerwald	depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP2PLUS
341701d0f19SJoel Fernandes	select CRYPTO_AES
34204007b0eSArd Biesheuvel	select CRYPTO_SKCIPHER
343b95bba5dSEric Biggers	select CRYPTO_ENGINE
344f1b77aacSBaolin Wang	select CRYPTO_CBC
345701d0f19SJoel Fernandes	select CRYPTO_ECB
346701d0f19SJoel Fernandes	select CRYPTO_CTR
347701d0f19SJoel Fernandes	select CRYPTO_AEAD
34897ee7ed3SPeter Meerwald	help
34997ee7ed3SPeter Meerwald	  OMAP processors have AES module accelerator. Select this if you
350701d0f19SJoel Fernandes	  want to use the OMAP module for AES algorithms.
35174ed87e7STero Kristo
35274ed87e7STero Kristoconfig CRYPTO_DEV_OMAP_DES
3535de88752SJavier Martin	tristate "Support for OMAP DES/3DES hw engine"
3545de88752SJavier Martin	depends on ARCH_OMAP2PLUS
35574d24d83SPaul Bolle	select CRYPTO_LIB_DES
356b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
3575de88752SJavier Martin	select CRYPTO_ENGINE
3585de88752SJavier Martin	help
35944ff4ea1SOvidiu Panait	  OMAP processors have DES/3DES module accelerator. Select this if you
3605de88752SJavier Martin	  want to use the OMAP module for DES and 3DES algorithms. Currently
3615de88752SJavier Martin	  the ECB and CBC modes of operation are supported by the driver. Also
3625de88752SJavier Martin	  accesses made on unaligned boundaries are supported.
3635de88752SJavier Martin
364c46ea13fSKrzysztof Kozlowskiendif # CRYPTO_DEV_OMAP
365b279997fSKrzysztof Kozlowski
366c46ea13fSKrzysztof Kozlowskiconfig CRYPTO_DEV_SAHARA
367c46ea13fSKrzysztof Kozlowski	tristate "Support for SAHARA crypto accelerator"
368c46ea13fSKrzysztof Kozlowski	depends on ARCH_MXC && OF
369a7f7f624SMasahiro Yamada	select CRYPTO_SKCIPHER
370c46ea13fSKrzysztof Kozlowski	select CRYPTO_AES
371c46ea13fSKrzysztof Kozlowski	select CRYPTO_ECB
372c46ea13fSKrzysztof Kozlowski	select CRYPTO_ENGINE
373c46ea13fSKrzysztof Kozlowski	help
374c46ea13fSKrzysztof Kozlowski	  This option enables support for the SAHARA HW crypto accelerator
375c46ea13fSKrzysztof Kozlowski	  found in some Freescale i.MX chips.
376c46ea13fSKrzysztof Kozlowski
377c46ea13fSKrzysztof Kozlowskiconfig CRYPTO_DEV_EXYNOS_RNG
378c46ea13fSKrzysztof Kozlowski	tristate "Exynos HW pseudo random number generator support"
379a49e490cSVladimir Zapolskiy	depends on ARCH_EXYNOS || COMPILE_TEST
380e922e96fSNaveen Krishna Chatradhi	depends on HAS_IOMEM
381dc1d9deeSKrzysztof Kozlowski	select CRYPTO_RNG
382ee1b23d1SGeert Uytterhoeven	help
383a49e490cSVladimir Zapolskiy	  This driver provides kernel-side support through the
384b95bba5dSEric Biggers	  cryptographic API for the pseudo random number generator hardware
385a49e490cSVladimir Zapolskiy	  found on Exynos SoCs.
386a49e490cSVladimir Zapolskiy
387e922e96fSNaveen Krishna Chatradhi	  To compile this driver as a module, choose M here: the
388a49e490cSVladimir Zapolskiy	  module will be called exynos-rng.
389a49e490cSVladimir Zapolskiy
390c2afad6cSKamil Konieczny	  If unsure, say Y.
391c2afad6cSKamil Konieczny
392c2afad6cSKamil Koniecznyconfig CRYPTO_DEV_S5P
393c2afad6cSKamil Konieczny	tristate "Support for Samsung S5PV210/Exynos crypto accelerator"
394c2afad6cSKamil Konieczny	depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
395c2afad6cSKamil Konieczny	depends on HAS_IOMEM
396c2afad6cSKamil Konieczny	select CRYPTO_AES
397c2afad6cSKamil Konieczny	select CRYPTO_SKCIPHER
398c2afad6cSKamil Konieczny	help
399c2afad6cSKamil Konieczny	  This option allows you to have support for S5P crypto acceleration.
400c2afad6cSKamil Konieczny	  Select this to offload Samsung S5PV210 or S5PC110, Exynos from AES
401c2afad6cSKamil Konieczny	  algorithms execution.
402c2afad6cSKamil Konieczny
403c2afad6cSKamil Koniecznyconfig CRYPTO_DEV_EXYNOS_HASH
404aef7b31cSKent Yoder	bool "Support for Samsung Exynos HASH accelerator"
4057011a122SDan Streetman	depends on CRYPTO_DEV_S5P
4067011a122SDan Streetman	depends on !CRYPTO_DEV_EXYNOS_RNG && CRYPTO_DEV_EXYNOS_RNG!=m
407aef7b31cSKent Yoder	select CRYPTO_SHA1
4087011a122SDan Streetman	select CRYPTO_MD5
4097011a122SDan Streetman	select CRYPTO_SHA256
4107011a122SDan Streetman	help
4117011a122SDan Streetman	  Select this to offload Exynos from HASH MD5/SHA1/SHA256.
412322cacceSSeth Jennings	  This will select software SHA1, MD5 and SHA256 as they are
413322cacceSSeth Jennings	  needed for small and zero-size messages.
414322cacceSSeth Jennings	  HASH algorithms will be disabled if EXYNOS_RNG
415322cacceSSeth Jennings	  is enabled due to hw conflict.
416aef7b31cSKent Yoder
41789a82ef8SCyrille Pitchenconfig CRYPTO_DEV_NX
418aee1f9f3SYueHaibing	bool "Support for IBM PowerPC Nest (NX) cryptographic acceleration"
419ceb4afb3SArnd Bergmann	depends on PPC64
420aee1f9f3SYueHaibing	help
42189a82ef8SCyrille Pitchen	  This enables support for the NX hardware cryptographic accelerator
42289a82ef8SCyrille Pitchen	  coprocessor that is in IBM PowerPC P7+ or later processors.  This
42389a82ef8SCyrille Pitchen	  does not actually enable any drivers, it only allows you to select
42489a82ef8SCyrille Pitchen	  which acceleration type (encryption and/or compression) to enable.
42589a82ef8SCyrille Pitchen
42689a82ef8SCyrille Pitchenif CRYPTO_DEV_NX
427bd3c7b5cSNicolas Royer	source "drivers/crypto/nx/Kconfig"
428bd3c7b5cSNicolas Royerendif
429ceb4afb3SArnd Bergmann
430bd3c7b5cSNicolas Royerconfig CRYPTO_DEV_ATMEL_AUTHENC
431d4419548SCyrille Pitchen	bool "Support for Atmel IPSEC/SSL hw accelerator"
432b95bba5dSEric Biggers	depends on ARCH_AT91 || COMPILE_TEST
433aee1f9f3SYueHaibing	depends on CRYPTO_DEV_ATMEL_AES
434aee1f9f3SYueHaibing	help
435bd3c7b5cSNicolas Royer	  Some Atmel processors can combine the AES and SHA hw accelerators
436bd3c7b5cSNicolas Royer	  to enhance support of IPSEC/SSL.
437bd3c7b5cSNicolas Royer	  Select this if you want to use the Atmel modules for
438bd3c7b5cSNicolas Royer	  authenc(hmac(shaX),Y(cbc)) algorithms.
439bd3c7b5cSNicolas Royer
440bd3c7b5cSNicolas Royerconfig CRYPTO_DEV_ATMEL_AES
441bd3c7b5cSNicolas Royer	tristate "Support for Atmel AES hw accelerator"
442bd3c7b5cSNicolas Royer	depends on ARCH_AT91 || COMPILE_TEST
44313802005SNicolas Royer	select CRYPTO_AES
44413802005SNicolas Royer	select CRYPTO_AEAD
445ceb4afb3SArnd Bergmann	select CRYPTO_SKCIPHER
44604007b0eSArd Biesheuvel	select CRYPTO_AUTHENC if CRYPTO_DEV_ATMEL_AUTHENC
447b95bba5dSEric Biggers	select CRYPTO_DEV_ATMEL_SHA if CRYPTO_DEV_ATMEL_AUTHENC
44813802005SNicolas Royer	help
44913802005SNicolas Royer	  Some Atmel processors have AES hw accelerator.
45013802005SNicolas Royer	  Select this if you want to use the Atmel module for
45113802005SNicolas Royer	  AES algorithms.
45213802005SNicolas Royer
45313802005SNicolas Royer	  To compile this driver as a module, choose M here: the module
45413802005SNicolas Royer	  will be called atmel-aes.
45513802005SNicolas Royer
456ebc82efaSNicolas Royerconfig CRYPTO_DEV_ATMEL_TDES
457d4905b38SNicolas Royer	tristate "Support for Atmel DES/TDES hw accelerator"
458ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
459596103cfSHerbert Xu	select CRYPTO_LIB_DES
460ebc82efaSNicolas Royer	select CRYPTO_SKCIPHER
461d4905b38SNicolas Royer	help
462d4905b38SNicolas Royer	  Some Atmel processors have DES/TDES hw accelerator.
463ebc82efaSNicolas Royer	  Select this if you want to use the Atmel module for
464d4905b38SNicolas Royer	  DES/TDES algorithms.
465ebc82efaSNicolas Royer
466ebc82efaSNicolas Royer	  To compile this driver as a module, choose M here: the module
467ebc82efaSNicolas Royer	  will be called atmel-tdes.
468ebc82efaSNicolas Royer
469c34a3201SArd Biesheuvelconfig CRYPTO_DEV_ATMEL_SHA
470c34a3201SArd Biesheuvel	tristate "Support for Atmel SHA hw accelerator"
471d33a23b0SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
472c34a3201SArd Biesheuvel	select CRYPTO_HASH
47311105693STudor-Dan Ambarus	help
47411105693STudor-Dan Ambarus	  Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512
47511105693STudor-Dan Ambarus	  hw accelerator.
476c34a3201SArd Biesheuvel	  Select this if you want to use the Atmel module for
47711105693STudor-Dan Ambarus	  SHA1/SHA224/SHA256/SHA384/SHA512 algorithms.
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-sha.
48111105693STudor-Dan Ambarus
48211105693STudor-Dan Ambarusconfig CRYPTO_DEV_ATMEL_I2C
48311105693STudor-Dan Ambarus	tristate
48411105693STudor-Dan Ambarus	select BITREVERSE
48511105693STudor-Dan Ambarus
48611105693STudor-Dan Ambarusconfig CRYPTO_DEV_ATMEL_ECC
487da001fb6SArd Biesheuvel	tristate "Support for Microchip / Atmel ECC hw accelerator"
488da001fb6SArd Biesheuvel	depends on I2C
489da001fb6SArd Biesheuvel	select CRYPTO_DEV_ATMEL_I2C
490da001fb6SArd Biesheuvel	select CRYPTO_ECDH
491da001fb6SArd Biesheuvel	select CRC16
4924bb02dbdSYueHaibing	help
493da001fb6SArd Biesheuvel	  Microhip / Atmel ECC hw accelerator.
494da001fb6SArd Biesheuvel	  Select this if you want to use the Microchip / Atmel module for
495da001fb6SArd Biesheuvel	  ECDH algorithm.
496da001fb6SArd Biesheuvel
497da001fb6SArd Biesheuvel	  To compile this driver as a module, choose M here: the module
498da001fb6SArd Biesheuvel	  will be called atmel-ecc.
499da001fb6SArd Biesheuvel
500da001fb6SArd Biesheuvelconfig CRYPTO_DEV_ATMEL_SHA204A
501da001fb6SArd Biesheuvel	tristate "Support for Microchip / Atmel SHA accelerator and RNG"
502f1147660STom Lendacky	depends on I2C
503720419f0SBrijesh Singh	select CRYPTO_DEV_ATMEL_I2C
5046c506343STom Lendacky	select HW_RANDOM
505f1147660STom Lendacky	select CRC16
506720419f0SBrijesh Singh	help
507720419f0SBrijesh Singh	  Microhip / Atmel SHA accelerator and RNG.
508f1147660STom Lendacky	  Select this if you want to use the Microchip / Atmel SHA204A
509f1147660STom Lendacky	  module as a random number generator. (Other functions of the
510f1147660STom Lendacky	  chip are currently not exposed by this driver)
511f1147660STom Lendacky
512f1147660STom Lendacky	  To compile this driver as a module, choose M here: the module
51315b59e7cSMarek Vasut	  will be called atmel-sha204a.
51415b59e7cSMarek Vasut
515a2712e6cSFabio Estevamconfig CRYPTO_DEV_CCP
516dc97fa02SArnd Bergmann	bool "Support for AMD Secure Processor"
51715b59e7cSMarek Vasut	depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM
51815b59e7cSMarek Vasut	help
51915b59e7cSMarek Vasut	  The AMD Secure Processor provides support for the Cryptographic Coprocessor
520b95bba5dSEric Biggers	  (CCP) and the Platform Security Processor (PSP) devices.
521596103cfSHerbert Xu
52215b59e7cSMarek Vasutif CRYPTO_DEV_CCP
52315b59e7cSMarek Vasut	source "drivers/crypto/ccp/Kconfig"
52415b59e7cSMarek Vasutendif
52515b59e7cSMarek Vasut
52615b59e7cSMarek Vasutconfig CRYPTO_DEV_MXS_DCP
52715b59e7cSMarek Vasut	tristate "Support for Freescale MXS DCP"
52815b59e7cSMarek Vasut	depends on (ARCH_MXS || ARCH_MXC)
52962ad8b5cSGeorge Cherian	select STMP_DEVICE
53014fa93cdSSrikanth Jampala	select CRYPTO_CBC
531655ff1a1SSrujanaChalla	select CRYPTO_ECB
532fbf31dd5STom Zanussi	select CRYPTO_AES
533c672752dSStanimir Varbanov	select CRYPTO_SKCIPHER
534c672752dSStanimir Varbanov	select CRYPTO_HASH
535c672752dSStanimir Varbanov	help
536ee1b23d1SGeert Uytterhoeven	  The Freescale i.MX23/i.MX28 has SHA1/SHA256 and AES128 CBC/ECB
537ee1b23d1SGeert Uytterhoeven	  co-processor on the die.
53859e056cdSEneas U de Queiroz
53959e056cdSEneas U de Queiroz	  To compile this driver as a module, choose M here: the module
54059e056cdSEneas U de Queiroz	  will be called mxs-dcp.
54159e056cdSEneas U de Queiroz
54259e056cdSEneas U de Queirozsource "drivers/crypto/cavium/cpt/Kconfig"
54359e056cdSEneas U de Queirozsource "drivers/crypto/cavium/nitrox/Kconfig"
54459e056cdSEneas U de Queirozsource "drivers/crypto/marvell/Kconfig"
54559e056cdSEneas U de Queirozsource "drivers/crypto/intel/Kconfig"
546c672752dSStanimir Varbanov
54704007b0eSArd Biesheuvelconfig CRYPTO_DEV_QCE
548c672752dSStanimir Varbanov	tristate "Qualcomm crypto engine accelerator"
549c672752dSStanimir Varbanov	depends on ARCH_QCOM || COMPILE_TEST
550c672752dSStanimir Varbanov	depends on HAS_IOMEM
551c672752dSStanimir Varbanov	help
552b95bba5dSEric Biggers	  This driver supports Qualcomm crypto engine accelerator
55359e056cdSEneas U de Queiroz	  hardware. To compile this driver as a module, choose M here. The
55459e056cdSEneas U de Queiroz	  module will be called qcrypto.
55559e056cdSEneas U de Queiroz
55659e056cdSEneas U de Queirozconfig CRYPTO_DEV_QCE_SKCIPHER
5578ac1b9ccSSivaprakash Murugesan	bool
5588ac1b9ccSSivaprakash Murugesan	depends on CRYPTO_DEV_QCE
55959e056cdSEneas U de Queiroz	select CRYPTO_AES
5609363efb4SThara Gopinath	select CRYPTO_LIB_DES
5619363efb4SThara Gopinath	select CRYPTO_ECB
5629363efb4SThara Gopinath	select CRYPTO_CBC
5639363efb4SThara Gopinath	select CRYPTO_XTS
5649363efb4SThara Gopinath	select CRYPTO_CTR
5659363efb4SThara Gopinath	select CRYPTO_SKCIPHER
56659e056cdSEneas U de Queiroz
56759e056cdSEneas U de Queirozconfig CRYPTO_DEV_QCE_SHA
56859e056cdSEneas U de Queiroz	bool
56959e056cdSEneas U de Queiroz	depends on CRYPTO_DEV_QCE
570c672752dSStanimir Varbanov	select CRYPTO_SHA1
5712e0e386aSColin Ian King	select CRYPTO_SHA256
57259e056cdSEneas U de Queiroz
57359e056cdSEneas U de Queirozconfig CRYPTO_DEV_QCE_AEAD
57459e056cdSEneas U de Queiroz	bool
57559e056cdSEneas U de Queiroz	depends on CRYPTO_DEV_QCE
57659e056cdSEneas U de Queiroz	select CRYPTO_AUTHENC
57759e056cdSEneas U de Queiroz	select CRYPTO_LIB_DES
57859e056cdSEneas U de Queiroz
57959e056cdSEneas U de Queirozchoice
58059e056cdSEneas U de Queiroz	prompt "Algorithms enabled for QCE acceleration"
58159e056cdSEneas U de Queiroz	default CRYPTO_DEV_QCE_ENABLE_ALL
58259e056cdSEneas U de Queiroz	depends on CRYPTO_DEV_QCE
58359e056cdSEneas U de Queiroz	help
58459e056cdSEneas U de Queiroz	  This option allows to choose whether to build support for all algorithms
58559e056cdSEneas U de Queiroz	  (default), hashes-only, or skciphers-only.
5869363efb4SThara Gopinath
58759e056cdSEneas U de Queiroz	  The QCE engine does not appear to scale as well as the CPU to handle
58859e056cdSEneas U de Queiroz	  multiple crypto requests.  While the ipq40xx chips have 4-core CPUs, the
58959e056cdSEneas U de Queiroz	  QCE handles only 2 requests in parallel.
59059e056cdSEneas U de Queiroz
59159e056cdSEneas U de Queiroz	  Ipsec throughput seems to improve when disabling either family of
59259e056cdSEneas U de Queiroz	  algorithms, sharing the load with the CPU.  Enabling skciphers-only
59359e056cdSEneas U de Queiroz	  appears to work best.
59459e056cdSEneas U de Queiroz
59559e056cdSEneas U de Queiroz	config CRYPTO_DEV_QCE_ENABLE_ALL
59659e056cdSEneas U de Queiroz		bool "All supported algorithms"
59759e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SKCIPHER
59859e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SHA
59959e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_AEAD
60059e056cdSEneas U de Queiroz		help
60159e056cdSEneas U de Queiroz		  Enable all supported algorithms:
60259e056cdSEneas U de Queiroz			- AES (CBC, CTR, ECB, XTS)
60359e056cdSEneas U de Queiroz			- 3DES (CBC, ECB)
60459e056cdSEneas U de Queiroz			- DES (CBC, ECB)
60559e056cdSEneas U de Queiroz			- SHA1, HMAC-SHA1
60659e056cdSEneas U de Queiroz			- SHA256, HMAC-SHA256
60759e056cdSEneas U de Queiroz
60859e056cdSEneas U de Queiroz	config CRYPTO_DEV_QCE_ENABLE_SKCIPHER
60959e056cdSEneas U de Queiroz		bool "Symmetric-key ciphers only"
61059e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SKCIPHER
61159e056cdSEneas U de Queiroz		help
6129363efb4SThara Gopinath		  Enable symmetric-key ciphers only:
6139363efb4SThara Gopinath			- AES (CBC, CTR, ECB, XTS)
6149363efb4SThara Gopinath			- 3DES (ECB, CBC)
6159363efb4SThara Gopinath			- DES (ECB, CBC)
6169363efb4SThara Gopinath
6179363efb4SThara Gopinath	config CRYPTO_DEV_QCE_ENABLE_SHA
6189363efb4SThara Gopinath		bool "Hash/HMAC only"
6199363efb4SThara Gopinath		select CRYPTO_DEV_QCE_SHA
62059e056cdSEneas U de Queiroz		help
621c672752dSStanimir Varbanov		  Enable hashes/HMAC algorithms only:
622ce163ba0SEneas U de Queiroz			- SHA1, HMAC-SHA1
623ce163ba0SEneas U de Queiroz			- SHA256, HMAC-SHA256
624ce163ba0SEneas U de Queiroz
625ce163ba0SEneas U de Queiroz	config CRYPTO_DEV_QCE_ENABLE_AEAD
626ce163ba0SEneas U de Queiroz		bool "AEAD algorithms only"
627ce163ba0SEneas U de Queiroz		select CRYPTO_DEV_QCE_AEAD
628ce163ba0SEneas U de Queiroz		help
629ce163ba0SEneas U de Queiroz		  Enable AEAD algorithms only:
630ce163ba0SEneas U de Queiroz			- authenc()
631ce163ba0SEneas U de Queiroz			- ccm(aes)
632ce163ba0SEneas U de Queiroz			- rfc4309(ccm(aes))
633ce163ba0SEneas U de Queirozendchoice
634ce163ba0SEneas U de Queiroz
635ce163ba0SEneas U de Queirozconfig CRYPTO_DEV_QCE_SW_MAX_LEN
636ce163ba0SEneas U de Queiroz	int "Default maximum request size to use software for AES"
637ce163ba0SEneas U de Queiroz	depends on CRYPTO_DEV_QCE && CRYPTO_DEV_QCE_SKCIPHER
638ce163ba0SEneas U de Queiroz	default 512
639ce163ba0SEneas U de Queiroz	help
640ce163ba0SEneas U de Queiroz	  This sets the default maximum request size to perform AES requests
641ce163ba0SEneas U de Queiroz	  using software instead of the crypto engine.  It can be changed by
642ce163ba0SEneas U de Queiroz	  setting the aes_sw_max_len parameter.
643ce163ba0SEneas U de Queiroz
644ce163ba0SEneas U de Queiroz	  Small blocks are processed faster in software than hardware.
645ceec5f5bSVinod Koul	  Considering the 256-bit ciphers, software is 2-3 times faster than
646ceec5f5bSVinod Koul	  qce at 256-bytes, 30% faster at 512, and about even at 768-bytes.
647ceec5f5bSVinod Koul	  With 128-bit keys, the break-even point would be around 1024-bytes.
648a2786e8bSAndré Apitzsch
649ceec5f5bSVinod Koul	  The default is set a little lower, to 512 bytes, to balance the
650ceec5f5bSVinod Koul	  cost in CPU usage.  The minimum recommended setting is 16-bytes
651ceec5f5bSVinod Koul	  (1 AES block), since AES-GCM will fail if you set it lower.
652ceec5f5bSVinod Koul	  Setting this to zero will send all requests to the hardware.
653ceec5f5bSVinod Koul
654ceec5f5bSVinod Koul	  Note that 192-bit keys are not supported by the hardware and are
655ceec5f5bSVinod Koul	  always processed by the software fallback, and all DES requests
656ceec5f5bSVinod Koul	  are done by the hardware.
65710930333SDanny Tsen
65810930333SDanny Tsenconfig CRYPTO_DEV_QCOM_RNG
65910930333SDanny Tsen	tristate "Qualcomm Random Number Generator Driver"
66010930333SDanny Tsen	depends on ARCH_QCOM || COMPILE_TEST
66110930333SDanny Tsen	depends on HW_RANDOM
66210930333SDanny Tsen	select CRYPTO_RNG
66310930333SDanny Tsen	help
664d2e3ae6fSLeonidas S. Barbosa	  This driver provides support for the Random Number
665d358f1abSJames Hartley	  Generator hardware found on Qualcomm SoCs.
666d358f1abSJames Hartley
6678c98ebd7SGeert Uytterhoeven	  To compile this driver as a module, choose M here. The
668d358f1abSJames Hartley	  module will be called qcom-rng. If unsure, say N.
669d358f1abSJames Hartley
670d358f1abSJames Hartley#config CRYPTO_DEV_VMX
671d358f1abSJames Hartley#	bool "Support for VMX cryptographic acceleration instructions"
672d358f1abSJames Hartley#	depends on PPC64 && VSX
673d358f1abSJames Hartley#	help
674d358f1abSJames Hartley#	  Support for VMX cryptographic acceleration instructions.
675d358f1abSJames Hartley#
676d358f1abSJames Hartley#source "drivers/crypto/vmx/Kconfig"
677433cd2c6SZain Wang
678433cd2c6SZain Wangconfig CRYPTO_DEV_IMGTEC_HASH
679433cd2c6SZain Wang	tristate "Imagination Technologies hardware hash accelerator"
68068ef8af0SCorentin Labbe	depends on MIPS || COMPILE_TEST
68168ef8af0SCorentin Labbe	select CRYPTO_MD5
68268ef8af0SCorentin Labbe	select CRYPTO_SHA1
68368ef8af0SCorentin Labbe	select CRYPTO_SHA256
684433cd2c6SZain Wang	select CRYPTO_HASH
68557d67c6eSCorentin Labbe	help
68604007b0eSArd Biesheuvel	  This driver interfaces with the Imagination Technologies
687bfd927ffSZain Wang	  hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
688bfd927ffSZain Wang	  hashing algorithms.
689bfd927ffSZain Wang
690bfd927ffSZain Wangconfig CRYPTO_DEV_ROCKCHIP
691b95bba5dSEric Biggers	tristate "Rockchip's Cryptographic Engine driver"
692433cd2c6SZain Wang	depends on OF && ARCH_ROCKCHIP
693433cd2c6SZain Wang	depends on PM
694433cd2c6SZain Wang	select CRYPTO_ECB
695433cd2c6SZain Wang	select CRYPTO_CBC
696433cd2c6SZain Wang	select CRYPTO_DES
69748d904d4SCorentin Labbe	select CRYPTO_AES
69848d904d4SCorentin Labbe	select CRYPTO_ENGINE
69948d904d4SCorentin Labbe	select CRYPTO_LIB_DES
70048d904d4SCorentin Labbe	select CRYPTO_MD5
70148d904d4SCorentin Labbe	select CRYPTO_SHA1
70248d904d4SCorentin Labbe	select CRYPTO_SHA256
70348d904d4SCorentin Labbe	select CRYPTO_HASH
70448d904d4SCorentin Labbe	select CRYPTO_SKCIPHER
70548d904d4SCorentin Labbe
7060880bb3bSAkhil R	help
7070880bb3bSAkhil R	  This driver interfaces with the hardware crypto accelerator.
7080880bb3bSAkhil R	  Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
7090880bb3bSAkhil R
7100880bb3bSAkhil Rconfig CRYPTO_DEV_ROCKCHIP_DEBUG
7110880bb3bSAkhil R	bool "Enable Rockchip crypto stats"
7120880bb3bSAkhil R	depends on CRYPTO_DEV_ROCKCHIP
7130880bb3bSAkhil R	depends on DEBUG_FS
71448d904d4SCorentin Labbe	help
7154d96f7d4SKalyani Akula	  Say y to enable Rockchip crypto debug stats.
7164d96f7d4SKalyani Akula	  This will create /sys/kernel/debug/rk3288_crypto/stats for displaying
7174d96f7d4SKalyani Akula	  the number of requests per algorithm and other internal stats.
7184d96f7d4SKalyani Akula
7194d96f7d4SKalyani Akulaconfig CRYPTO_DEV_TEGRA
7204d96f7d4SKalyani Akula	tristate "Enable Tegra Security Engine"
7214d96f7d4SKalyani Akula	depends on TEGRA_HOST1X
7224d96f7d4SKalyani Akula	select CRYPTO_ENGINE
7234d96f7d4SKalyani Akula
7244d96f7d4SKalyani Akula	help
7254d96f7d4SKalyani Akula	  Select this to enable Tegra Security Engine which accelerates various
7264d96f7d4SKalyani Akula	  AES encryption/decryption and HASH algorithms.
7277ecc3e34SHarsha
7280e03b8fdSHerbert Xuconfig CRYPTO_DEV_ZYNQMP_AES
7290e03b8fdSHerbert Xu	tristate "Support for Xilinx ZynqMP AES hw accelerator"
7307ecc3e34SHarsha	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
7317ecc3e34SHarsha	select CRYPTO_AES
7327ecc3e34SHarsha	select CRYPTO_ENGINE
7337ecc3e34SHarsha	select CRYPTO_AEAD
7347ecc3e34SHarsha	help
7357ecc3e34SHarsha	  Xilinx ZynqMP has AES-GCM engine used for symmetric key
7367ecc3e34SHarsha	  encryption and decryption. This driver interfaces with AES hw
73702038fd6SHariprasad Shenai	  accelerator. Select this if you want to use the ZynqMP module
73802038fd6SHariprasad Shenai	  for AES algorithms.
739dbaf0624SGonglei
740dbaf0624SGongleiconfig CRYPTO_DEV_ZYNQMP_SHA3
7419d12ba86SRob Rice	tristate "Support for Xilinx ZynqMP SHA3 hardware accelerator"
7429d12ba86SRob Rice	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
7439d12ba86SRob Rice	select CRYPTO_SHA3
744efc856edSraveendra padasalagi	help
7459d12ba86SRob Rice	  Xilinx ZynqMP has SHA3 engine used for secure hash calculation.
746ab57b335SEric Biggers	  This driver interfaces with SHA3 hardware engine.
74704007b0eSArd Biesheuvel	  Select this if you want to use the ZynqMP module
7489d12ba86SRob Rice	  for SHA3 hash computation.
7499d12ba86SRob Rice
7509d12ba86SRob Ricesource "drivers/crypto/chelsio/Kconfig"
7519d12ba86SRob Rice
7529d12ba86SRob Ricesource "drivers/crypto/virtio/Kconfig"
7539d12ba86SRob Rice
754a9c01cd6SArd Biesheuvelconfig CRYPTO_DEV_BCM_SPU
7559d12ba86SRob Rice	tristate "Broadcom symmetric crypto/hash acceleration support"
7569d12ba86SRob Rice	depends on ARCH_BCM_IPROC
757b51dbe90SFabien DESSENNE	depends on MAILBOX
758b51dbe90SFabien DESSENNE	default m
7591b44c5a6SAntoine Ténart	select CRYPTO_AUTHENC
7601b44c5a6SAntoine Ténart	select CRYPTO_LIB_DES
7616dc0e310SBrendan Higgins	select CRYPTO_MD5
762363a90c2SArd Biesheuvel	select CRYPTO_SHA1
763f6beaea3SAntoine Tenart	select CRYPTO_SHA256
764b95bba5dSEric Biggers	select CRYPTO_SHA512
76504007b0eSArd Biesheuvel	help
7661b44c5a6SAntoine Ténart	  This driver provides support for Broadcom crypto acceleration using the
7671b44c5a6SAntoine Ténart	  Secure Processing Unit (SPU). The SPU driver registers skcipher,
768293f89cfSOfer Heifetz	  ahash, and aead algorithms with the kernel cryptographic API.
7691b44c5a6SAntoine Ténart
7701b44c5a6SAntoine Ténartsource "drivers/crypto/stm32/Kconfig"
7711b44c5a6SAntoine Ténart
772fc0f82b1SPascal van Leeuwenconfig CRYPTO_DEV_SAFEXCEL
7731d448f27SPascal van Leeuwen	tristate "Inside Secure's SafeXcel cryptographic engine driver"
7741b44c5a6SAntoine Ténart	depends on (OF || PCI || COMPILE_TEST) && HAS_IOMEM
7750f6e5c82SPascal van Leeuwen	select CRYPTO_LIB_AES
7760f6e5c82SPascal van Leeuwen	select CRYPTO_AUTHENC
7770f6e5c82SPascal van Leeuwen	select CRYPTO_SKCIPHER
7780f6e5c82SPascal van Leeuwen	select CRYPTO_LIB_DES
7790f6e5c82SPascal van Leeuwen	select CRYPTO_HASH
7801b44c5a6SAntoine Ténart	select CRYPTO_HMAC
781a21eb94fSLars Persson	select CRYPTO_MD5
782a21eb94fSLars Persson	select CRYPTO_SHA1
783a21eb94fSLars Persson	select CRYPTO_SHA256
784a21eb94fSLars Persson	select CRYPTO_SHA512
785a21eb94fSLars Persson	select CRYPTO_CHACHA20POLY1305
786a21eb94fSLars Persson	select CRYPTO_SHA3
787a21eb94fSLars Persson	help
788b95bba5dSEric Biggers	  This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic
789a21eb94fSLars Persson	  engines designed by Inside Secure. It currently accelerates DES, 3DES and
790a21eb94fSLars Persson	  AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256,
791a21eb94fSLars Persson	  SHA384 and SHA512 hash algorithms for both basic hash and HMAC.
792a21eb94fSLars Persson	  Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations.
793a21eb94fSLars Persson
794a21eb94fSLars Perssonconfig CRYPTO_DEV_ARTPEC6
795a21eb94fSLars Persson	tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."
796a21eb94fSLars Persson	depends on ARM && (ARCH_ARTPEC || COMPILE_TEST)
797a21eb94fSLars Persson	depends on OF
798a21eb94fSLars Persson	select CRYPTO_AEAD
799a21eb94fSLars Persson	select CRYPTO_AES
8004c3f9727SGilad Ben-Yossef	select CRYPTO_ALGAPI
8014c3f9727SGilad Ben-Yossef	select CRYPTO_SKCIPHER
8024c3f9727SGilad Ben-Yossef	select CRYPTO_CTR
803ed490503SHerbert Xu	select CRYPTO_HASH
8044c3f9727SGilad Ben-Yossef	select CRYPTO_SHA1
805b95bba5dSEric Biggers	select CRYPTO_SHA256
80604007b0eSArd Biesheuvel	select CRYPTO_SHA512
8074c3f9727SGilad Ben-Yossef	help
8084c3f9727SGilad Ben-Yossef	  Enables the driver for the on-chip crypto accelerator
8094c3f9727SGilad Ben-Yossef	  of Axis ARTPEC SoCs.
8104c3f9727SGilad Ben-Yossef
8114c3f9727SGilad Ben-Yossef	  To compile this driver as a module, choose M here.
8124c3f9727SGilad Ben-Yossef
8134c3f9727SGilad Ben-Yossefconfig CRYPTO_DEV_CCREE
8144c3f9727SGilad Ben-Yossef	tristate "Support for ARM TrustZone CryptoCell family of security processors"
8154c3f9727SGilad Ben-Yossef	depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA
8164c3f9727SGilad Ben-Yossef	depends on HAS_IOMEM
8174c3f9727SGilad Ben-Yossef	select CRYPTO_HASH
8184c3f9727SGilad Ben-Yossef	select CRYPTO_SKCIPHER
8192ae6feb1STianjia Zhang	select CRYPTO_LIB_DES
8202ae6feb1STianjia Zhang	select CRYPTO_AEAD
8214c3f9727SGilad Ben-Yossef	select CRYPTO_AUTHENC
82227b3b22dSGilad Ben-Yossef	select CRYPTO_SHA1
82327b3b22dSGilad Ben-Yossef	select CRYPTO_MD5
8241c876a90SGilad Ben-Yossef	select CRYPTO_SHA256
8254c3f9727SGilad Ben-Yossef	select CRYPTO_SHA512
8264c3f9727SGilad Ben-Yossef	select CRYPTO_HMAC
8274c3f9727SGilad Ben-Yossef	select CRYPTO_AES
8284c3f9727SGilad Ben-Yossef	select CRYPTO_CBC
829915e4e84SJonathan Cameron	select CRYPTO_ECB
830915e4e84SJonathan Cameron	select CRYPTO_CTR
83148fe583fSCorentin Labbe	select CRYPTO_XTS
83248fe583fSCorentin Labbe	select CRYPTO_SM4_GENERIC
8337694b6caSKeerthy	select CRYPTO_SM3_GENERIC
8347694b6caSKeerthy	help
8357694b6caSKeerthy	  Say 'Y' to enable a driver for the REE interface of the Arm
8367694b6caSKeerthy	  TrustZone CryptoCell family of processors. Currently the
8377694b6caSKeerthy	  CryptoCell 713, 703, 712, 710 and 630 are supported.
83861f033baSHerbert Xu	  Choose this if you wish to use hardware acceleration of
8398832023eSSuman Anna	  cryptographic operations on the system REE.
840bfe8fe93SRandy Dunlap	  If unsure say Y.
841bfe8fe93SRandy Dunlap
842bfe8fe93SRandy Dunlapsource "drivers/crypto/hisilicon/Kconfig"
8437694b6caSKeerthy
8447694b6caSKeerthysource "drivers/crypto/amlogic/Kconfig"
8457694b6caSKeerthy
8467694b6caSKeerthyconfig CRYPTO_DEV_SA2UL
8477694b6caSKeerthy	tristate "Support for TI security accelerator"
8487694b6caSKeerthy	depends on ARCH_K3 || COMPILE_TEST
8497694b6caSKeerthy	select CRYPTO_AES
850108713a7SNeal Liu	select CRYPTO_ALGAPI
85142ef0e94SJia Jie Ho	select CRYPTO_AUTHENC
8529739f5f9SChristian Marangi	select CRYPTO_DES
85388574332SMike Healy	select CRYPTO_SHA1
854b511431dSJan Engelhardt	select CRYPTO_SHA256
855	select CRYPTO_SHA512
856	select HW_RANDOM
857	select SG_SPLIT
858	help
859	  K3 devices include a security accelerator engine that may be
860	  used for crypto offload.  Select this if you want to use hardware
861	  acceleration for cryptographic algorithms on these devices.
862
863source "drivers/crypto/aspeed/Kconfig"
864source "drivers/crypto/starfive/Kconfig"
865source "drivers/crypto/inside-secure/eip93/Kconfig"
866
867endif # CRYPTO_HW
868