xref: /linux/drivers/crypto/Kconfig (revision 0e03b8fd29363f2df44e2a7a176d486de550757a)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2b511431dSJan Engelhardt
3b511431dSJan Engelhardtmenuconfig CRYPTO_HW
4b511431dSJan Engelhardt	bool "Hardware crypto devices"
5b511431dSJan Engelhardt	default y
6a7f7f624SMasahiro Yamada	help
706bfb7ebSJan Engelhardt	  Say Y here to get to see options for hardware crypto devices and
806bfb7ebSJan Engelhardt	  processors. This option alone does not add any kernel code.
906bfb7ebSJan Engelhardt
1006bfb7ebSJan Engelhardt	  If you say N, all options in this submenu will be skipped and disabled.
11b511431dSJan Engelhardt
12b511431dSJan Engelhardtif CRYPTO_HW
131da177e4SLinus Torvalds
143914b931SCorentin Labbesource "drivers/crypto/allwinner/Kconfig"
153914b931SCorentin Labbe
161da177e4SLinus Torvaldsconfig CRYPTO_DEV_PADLOCK
17d158325eSHerbert Xu	tristate "Support for VIA PadLock ACE"
182f817418SHerbert Xu	depends on X86 && !UML
191da177e4SLinus Torvalds	help
201da177e4SLinus Torvalds	  Some VIA processors come with an integrated crypto engine
211da177e4SLinus Torvalds	  (so called VIA PadLock ACE, Advanced Cryptography Engine)
221191f0a4SMichal Ludvig	  that provides instructions for very fast cryptographic
231191f0a4SMichal Ludvig	  operations with supported algorithms.
241da177e4SLinus Torvalds
251da177e4SLinus Torvalds	  The instructions are used only when the CPU supports them.
265644bda5SMichal Ludvig	  Otherwise software encryption is used.
275644bda5SMichal Ludvig
281da177e4SLinus Torvaldsconfig CRYPTO_DEV_PADLOCK_AES
291191f0a4SMichal Ludvig	tristate "PadLock driver for AES algorithm"
301da177e4SLinus Torvalds	depends on CRYPTO_DEV_PADLOCK
31b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
328131878dSArd Biesheuvel	select CRYPTO_LIB_AES
331da177e4SLinus Torvalds	help
341da177e4SLinus Torvalds	  Use VIA PadLock for AES algorithm.
351da177e4SLinus Torvalds
361191f0a4SMichal Ludvig	  Available in VIA C3 and newer CPUs.
371191f0a4SMichal Ludvig
381191f0a4SMichal Ludvig	  If unsure say M. The compiled module will be
394737f097SPavel Machek	  called padlock-aes.
401191f0a4SMichal Ludvig
416c833275SMichal Ludvigconfig CRYPTO_DEV_PADLOCK_SHA
426c833275SMichal Ludvig	tristate "PadLock driver for SHA1 and SHA256 algorithms"
436c833275SMichal Ludvig	depends on CRYPTO_DEV_PADLOCK
44bbbee467SHerbert Xu	select CRYPTO_HASH
456c833275SMichal Ludvig	select CRYPTO_SHA1
466c833275SMichal Ludvig	select CRYPTO_SHA256
476c833275SMichal Ludvig	help
486c833275SMichal Ludvig	  Use VIA PadLock for SHA1/SHA256 algorithms.
496c833275SMichal Ludvig
506c833275SMichal Ludvig	  Available in VIA C7 and newer processors.
516c833275SMichal Ludvig
526c833275SMichal Ludvig	  If unsure say M. The compiled module will be
534737f097SPavel Machek	  called padlock-sha.
546c833275SMichal Ludvig
559fe757b0SJordan Crouseconfig CRYPTO_DEV_GEODE
569fe757b0SJordan Crouse	tristate "Support for the Geode LX AES engine"
57f6259deaSSimon Arlott	depends on X86_32 && PCI
589fe757b0SJordan Crouse	select CRYPTO_ALGAPI
59b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
609fe757b0SJordan Crouse	help
619fe757b0SJordan Crouse	  Say 'Y' here to use the AMD Geode LX processor on-board AES
623dde6ad8SDavid Sterba	  engine for the CryptoAPI AES algorithm.
639fe757b0SJordan Crouse
649fe757b0SJordan Crouse	  To compile this driver as a module, choose M here: the module
659fe757b0SJordan Crouse	  will be called geode-aes.
669fe757b0SJordan Crouse
6761d48c2cSMartin Schwidefskyconfig ZCRYPT
68a3358e3dSHarald Freudenberger	tristate "Support for s390 cryptographic adapters"
6961d48c2cSMartin Schwidefsky	depends on S390
702f7c8bd6SRalph Wuerthner	select HW_RANDOM
7161d48c2cSMartin Schwidefsky	help
72a3358e3dSHarald Freudenberger	  Select this option if you want to enable support for
73a3358e3dSHarald Freudenberger	  s390 cryptographic adapters like:
740ae88ccfSHarald Freudenberger	  + Crypto Express 2 up to 7 Coprocessor (CEXxC)
750ae88ccfSHarald Freudenberger	  + Crypto Express 2 up to 7 Accelerator (CEXxA)
760ae88ccfSHarald Freudenberger	  + Crypto Express 4 up to 7 EP11 Coprocessor (CEXxP)
770ae88ccfSHarald Freudenberger
780ae88ccfSHarald Freudenbergerconfig ZCRYPT_DEBUG
790ae88ccfSHarald Freudenberger	bool "Enable debug features for s390 cryptographic adapters"
800ae88ccfSHarald Freudenberger	default n
810ae88ccfSHarald Freudenberger	depends on DEBUG_KERNEL
820ae88ccfSHarald Freudenberger	depends on ZCRYPT
830ae88ccfSHarald Freudenberger	help
840ae88ccfSHarald Freudenberger	  Say 'Y' here to enable some additional debug features on the
850ae88ccfSHarald Freudenberger	  s390 cryptographic adapters driver.
860ae88ccfSHarald Freudenberger
870ae88ccfSHarald Freudenberger	  There will be some more sysfs attributes displayed for ap cards
880ae88ccfSHarald Freudenberger	  and queues and some flags on crypto requests are interpreted as
890ae88ccfSHarald Freudenberger	  debugging messages to force error injection.
900ae88ccfSHarald Freudenberger
910ae88ccfSHarald Freudenberger	  Do not enable on production level kernel build.
920ae88ccfSHarald Freudenberger
930ae88ccfSHarald Freudenberger	  If unsure, say N.
9461d48c2cSMartin Schwidefsky
9500fab235SHarald Freudenbergerconfig ZCRYPT_MULTIDEVNODES
9600fab235SHarald Freudenberger	bool "Support for multiple zcrypt device nodes"
9700fab235SHarald Freudenberger	default y
9800fab235SHarald Freudenberger	depends on S390
9900fab235SHarald Freudenberger	depends on ZCRYPT
10000fab235SHarald Freudenberger	help
10100fab235SHarald Freudenberger	  With this option enabled the zcrypt device driver can
10200fab235SHarald Freudenberger	  provide multiple devices nodes in /dev. Each device
10300fab235SHarald Freudenberger	  node can get customized to limit access and narrow
10400fab235SHarald Freudenberger	  down the use of the available crypto hardware.
10500fab235SHarald Freudenberger
106e80d4af0SHarald Freudenbergerconfig PKEY
107e80d4af0SHarald Freudenberger	tristate "Kernel API for protected key handling"
108e80d4af0SHarald Freudenberger	depends on S390
109e80d4af0SHarald Freudenberger	depends on ZCRYPT
110e80d4af0SHarald Freudenberger	help
111e80d4af0SHarald Freudenberger	  With this option enabled the pkey kernel module provides an API
112e80d4af0SHarald Freudenberger	  for creation and handling of protected keys. Other parts of the
113e80d4af0SHarald Freudenberger	  kernel or userspace applications may use these functions.
114e80d4af0SHarald Freudenberger
115e80d4af0SHarald Freudenberger	  Select this option if you want to enable the kernel and userspace
116e80d4af0SHarald Freudenberger	  API for proteced key handling.
117e80d4af0SHarald Freudenberger
118e80d4af0SHarald Freudenberger	  Please note that creation of protected keys from secure keys
119e80d4af0SHarald Freudenberger	  requires to have at least one CEX card in coprocessor mode
120e80d4af0SHarald Freudenberger	  available at runtime.
12161d48c2cSMartin Schwidefsky
122c4684f98SHarald Freudenbergerconfig CRYPTO_PAES_S390
123c4684f98SHarald Freudenberger	tristate "PAES cipher algorithms"
124c4684f98SHarald Freudenberger	depends on S390
125c4684f98SHarald Freudenberger	depends on ZCRYPT
126c4684f98SHarald Freudenberger	depends on PKEY
127c4684f98SHarald Freudenberger	select CRYPTO_ALGAPI
128b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
129c4684f98SHarald Freudenberger	help
130c4684f98SHarald Freudenberger	  This is the s390 hardware accelerated implementation of the
131c4684f98SHarald Freudenberger	  AES cipher algorithms for use with protected key.
132c4684f98SHarald Freudenberger
133c4684f98SHarald Freudenberger	  Select this option if you want to use the paes cipher
134c4684f98SHarald Freudenberger	  for example to use protected key encrypted devices.
135c4684f98SHarald Freudenberger
1363f5615e0SJan Glauberconfig CRYPTO_SHA1_S390
1373f5615e0SJan Glauber	tristate "SHA1 digest algorithm"
1383f5615e0SJan Glauber	depends on S390
139563f346dSHerbert Xu	select CRYPTO_HASH
1403f5615e0SJan Glauber	help
1413f5615e0SJan Glauber	  This is the s390 hardware accelerated implementation of the
1423f5615e0SJan Glauber	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
1433f5615e0SJan Glauber
144d393d9b8SJan Glauber	  It is available as of z990.
145d393d9b8SJan Glauber
1463f5615e0SJan Glauberconfig CRYPTO_SHA256_S390
1473f5615e0SJan Glauber	tristate "SHA256 digest algorithm"
1483f5615e0SJan Glauber	depends on S390
149563f346dSHerbert Xu	select CRYPTO_HASH
1503f5615e0SJan Glauber	help
1513f5615e0SJan Glauber	  This is the s390 hardware accelerated implementation of the
1523f5615e0SJan Glauber	  SHA256 secure hash standard (DFIPS 180-2).
1533f5615e0SJan Glauber
154d393d9b8SJan Glauber	  It is available as of z9.
1553f5615e0SJan Glauber
156291dc7c0SJan Glauberconfig CRYPTO_SHA512_S390
1574e2c6d7fSJan Glauber	tristate "SHA384 and SHA512 digest algorithm"
158291dc7c0SJan Glauber	depends on S390
159563f346dSHerbert Xu	select CRYPTO_HASH
160291dc7c0SJan Glauber	help
161291dc7c0SJan Glauber	  This is the s390 hardware accelerated implementation of the
162291dc7c0SJan Glauber	  SHA512 secure hash standard.
163291dc7c0SJan Glauber
164d393d9b8SJan Glauber	  It is available as of z10.
165291dc7c0SJan Glauber
1663c2eb6b7SJoerg Schmidbauerconfig CRYPTO_SHA3_256_S390
1673c2eb6b7SJoerg Schmidbauer	tristate "SHA3_224 and SHA3_256 digest algorithm"
1683c2eb6b7SJoerg Schmidbauer	depends on S390
1693c2eb6b7SJoerg Schmidbauer	select CRYPTO_HASH
1703c2eb6b7SJoerg Schmidbauer	help
1713c2eb6b7SJoerg Schmidbauer	  This is the s390 hardware accelerated implementation of the
1723c2eb6b7SJoerg Schmidbauer	  SHA3_256 secure hash standard.
1733c2eb6b7SJoerg Schmidbauer
1743c2eb6b7SJoerg Schmidbauer	  It is available as of z14.
1753c2eb6b7SJoerg Schmidbauer
1763c2eb6b7SJoerg Schmidbauerconfig CRYPTO_SHA3_512_S390
1773c2eb6b7SJoerg Schmidbauer	tristate "SHA3_384 and SHA3_512 digest algorithm"
1783c2eb6b7SJoerg Schmidbauer	depends on S390
1793c2eb6b7SJoerg Schmidbauer	select CRYPTO_HASH
1803c2eb6b7SJoerg Schmidbauer	help
1813c2eb6b7SJoerg Schmidbauer	  This is the s390 hardware accelerated implementation of the
1823c2eb6b7SJoerg Schmidbauer	  SHA3_512 secure hash standard.
1833c2eb6b7SJoerg Schmidbauer
1843c2eb6b7SJoerg Schmidbauer	  It is available as of z14.
1853c2eb6b7SJoerg Schmidbauer
1863f5615e0SJan Glauberconfig CRYPTO_DES_S390
1873f5615e0SJan Glauber	tristate "DES and Triple DES cipher algorithms"
1883f5615e0SJan Glauber	depends on S390
1893f5615e0SJan Glauber	select CRYPTO_ALGAPI
190b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
19104007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
1923f5615e0SJan Glauber	help
1930200f3ecSGerald Schaefer	  This is the s390 hardware accelerated implementation of the
1943f5615e0SJan Glauber	  DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
1953f5615e0SJan Glauber
1960200f3ecSGerald Schaefer	  As of z990 the ECB and CBC mode are hardware accelerated.
1970200f3ecSGerald Schaefer	  As of z196 the CTR mode is hardware accelerated.
1980200f3ecSGerald Schaefer
1993f5615e0SJan Glauberconfig CRYPTO_AES_S390
2003f5615e0SJan Glauber	tristate "AES cipher algorithms"
2013f5615e0SJan Glauber	depends on S390
2023f5615e0SJan Glauber	select CRYPTO_ALGAPI
203b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
2043f5615e0SJan Glauber	help
2053f5615e0SJan Glauber	  This is the s390 hardware accelerated implementation of the
20699d97222SGerald Schaefer	  AES cipher algorithms (FIPS-197).
2073f5615e0SJan Glauber
20899d97222SGerald Schaefer	  As of z9 the ECB and CBC modes are hardware accelerated
20999d97222SGerald Schaefer	  for 128 bit keys.
21099d97222SGerald Schaefer	  As of z10 the ECB and CBC modes are hardware accelerated
21199d97222SGerald Schaefer	  for all AES key sizes.
2120200f3ecSGerald Schaefer	  As of z196 the CTR mode is hardware accelerated for all AES
2130200f3ecSGerald Schaefer	  key sizes and XTS mode is hardware accelerated for 256 and
21499d97222SGerald Schaefer	  512 bit keys.
2153f5615e0SJan Glauber
216b087dfabSPatrick Steuerconfig CRYPTO_CHACHA_S390
217b087dfabSPatrick Steuer	tristate "ChaCha20 stream cipher"
218b087dfabSPatrick Steuer	depends on S390
219b087dfabSPatrick Steuer	select CRYPTO_ALGAPI
220b087dfabSPatrick Steuer	select CRYPTO_SKCIPHER
221b087dfabSPatrick Steuer	select CRYPTO_CHACHA20
222b087dfabSPatrick Steuer	help
223b087dfabSPatrick Steuer	  This is the s390 SIMD implementation of the ChaCha20 stream
224b087dfabSPatrick Steuer	  cipher (RFC 7539).
225b087dfabSPatrick Steuer
226b087dfabSPatrick Steuer	  It is available as of z13.
227b087dfabSPatrick Steuer
2283f5615e0SJan Glauberconfig S390_PRNG
2293f5615e0SJan Glauber	tristate "Pseudo random number generator device driver"
2303f5615e0SJan Glauber	depends on S390
2313f5615e0SJan Glauber	default "m"
2323f5615e0SJan Glauber	help
2333f5615e0SJan Glauber	  Select this option if you want to use the s390 pseudo random number
2343f5615e0SJan Glauber	  generator. The PRNG is part of the cryptographic processor functions
2353f5615e0SJan Glauber	  and uses triple-DES to generate secure random numbers like the
236d393d9b8SJan Glauber	  ANSI X9.17 standard. User-space programs access the
237d393d9b8SJan Glauber	  pseudo-random-number device through the char device /dev/prandom.
238d393d9b8SJan Glauber
239d393d9b8SJan Glauber	  It is available as of z9.
2403f5615e0SJan Glauber
241df1309ceSGerald Schaeferconfig CRYPTO_GHASH_S390
2428dfa20fcSEric Biggers	tristate "GHASH hash function"
243df1309ceSGerald Schaefer	depends on S390
244df1309ceSGerald Schaefer	select CRYPTO_HASH
245df1309ceSGerald Schaefer	help
2468dfa20fcSEric Biggers	  This is the s390 hardware accelerated implementation of GHASH,
2478dfa20fcSEric Biggers	  the hash function used in GCM (Galois/Counter mode).
248df1309ceSGerald Schaefer
249df1309ceSGerald Schaefer	  It is available as of z196.
250df1309ceSGerald Schaefer
251f848dbd3SHendrik Bruecknerconfig CRYPTO_CRC32_S390
252f848dbd3SHendrik Brueckner	tristate "CRC-32 algorithms"
253f848dbd3SHendrik Brueckner	depends on S390
254f848dbd3SHendrik Brueckner	select CRYPTO_HASH
255f848dbd3SHendrik Brueckner	select CRC32
256f848dbd3SHendrik Brueckner	help
257f848dbd3SHendrik Brueckner	  Select this option if you want to use hardware accelerated
258f848dbd3SHendrik Brueckner	  implementations of CRC algorithms.  With this option, you
259f848dbd3SHendrik Brueckner	  can optimize the computation of CRC-32 (IEEE 802.3 Ethernet)
260f848dbd3SHendrik Brueckner	  and CRC-32C (Castagnoli).
261f848dbd3SHendrik Brueckner
262f848dbd3SHendrik Brueckner	  It is available with IBM z13 or later.
263f848dbd3SHendrik Brueckner
2640a625fd2SDavid S. Millerconfig CRYPTO_DEV_NIAGARA2
2650a625fd2SDavid S. Miller	tristate "Niagara2 Stream Processing Unit driver"
26604007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
267b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
268596103cfSHerbert Xu	select CRYPTO_HASH
2698054b800SLABBE Corentin	select CRYPTO_MD5
2708054b800SLABBE Corentin	select CRYPTO_SHA1
2718054b800SLABBE Corentin	select CRYPTO_SHA256
2720a625fd2SDavid S. Miller	depends on SPARC64
2730a625fd2SDavid S. Miller	help
2740a625fd2SDavid S. Miller	  Each core of a Niagara2 processor contains a Stream
2750a625fd2SDavid S. Miller	  Processing Unit, which itself contains several cryptographic
2760a625fd2SDavid S. Miller	  sub-units.  One set provides the Modular Arithmetic Unit,
2770a625fd2SDavid S. Miller	  used for SSL offload.  The other set provides the Cipher
2780a625fd2SDavid S. Miller	  Group, which can perform encryption, decryption, hashing,
2790a625fd2SDavid S. Miller	  checksumming, and raw copies.
2800a625fd2SDavid S. Miller
28146c5338dSCorentin Labbeconfig CRYPTO_DEV_SL3516
282df941fddSGeert Uytterhoeven	tristate "Storlink SL3516 crypto offloader"
283e29dd5c8SGeert Uytterhoeven	depends on ARCH_GEMINI || COMPILE_TEST
284e29dd5c8SGeert Uytterhoeven	depends on HAS_IOMEM && PM
28546c5338dSCorentin Labbe	select CRYPTO_SKCIPHER
28646c5338dSCorentin Labbe	select CRYPTO_ENGINE
28746c5338dSCorentin Labbe	select CRYPTO_ECB
28846c5338dSCorentin Labbe	select CRYPTO_AES
28946c5338dSCorentin Labbe	select HW_RANDOM
29046c5338dSCorentin Labbe	help
29146c5338dSCorentin Labbe	  This option allows you to have support for SL3516 crypto offloader.
29246c5338dSCorentin Labbe
29346c5338dSCorentin Labbeconfig CRYPTO_DEV_SL3516_DEBUG
29446c5338dSCorentin Labbe	bool "Enable SL3516 stats"
29546c5338dSCorentin Labbe	depends on CRYPTO_DEV_SL3516
29646c5338dSCorentin Labbe	depends on DEBUG_FS
29746c5338dSCorentin Labbe	help
29846c5338dSCorentin Labbe	  Say y to enable SL3516 debug stats.
29946c5338dSCorentin Labbe	  This will create /sys/kernel/debug/sl3516/stats for displaying
30046c5338dSCorentin Labbe	  the number of requests per algorithm and other internal stats.
30146c5338dSCorentin Labbe
302f7d0561eSEvgeniy Polyakovconfig CRYPTO_DEV_HIFN_795X
303f7d0561eSEvgeniy Polyakov	tristate "Driver HIFN 795x crypto accelerator chips"
30404007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
305b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
306946fef4eSHerbert Xu	select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG
3072707b937SJan Glauber	depends on PCI
30875b76625SRichard Weinberger	depends on !ARCH_DMA_ADDR_T_64BIT
309f7d0561eSEvgeniy Polyakov	help
310f7d0561eSEvgeniy Polyakov	  This option allows you to have support for HIFN 795x crypto adapters.
311f7d0561eSEvgeniy Polyakov
312946fef4eSHerbert Xuconfig CRYPTO_DEV_HIFN_795X_RNG
313946fef4eSHerbert Xu	bool "HIFN 795x random number generator"
314946fef4eSHerbert Xu	depends on CRYPTO_DEV_HIFN_795X
315946fef4eSHerbert Xu	help
316946fef4eSHerbert Xu	  Select this option if you want to enable the random number generator
317946fef4eSHerbert Xu	  on the HIFN 795x crypto adapters.
318f7d0561eSEvgeniy Polyakov
3198636a1f9SMasahiro Yamadasource "drivers/crypto/caam/Kconfig"
3208e8ec596SKim Phillips
3219c4a7965SKim Phillipsconfig CRYPTO_DEV_TALITOS
3229c4a7965SKim Phillips	tristate "Talitos Freescale Security Engine (SEC)"
323596103cfSHerbert Xu	select CRYPTO_AEAD
3249c4a7965SKim Phillips	select CRYPTO_AUTHENC
325b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
326596103cfSHerbert Xu	select CRYPTO_HASH
327dbc2e87bSHerbert Xu	select CRYPTO_LIB_DES
3289c4a7965SKim Phillips	select HW_RANDOM
3299c4a7965SKim Phillips	depends on FSL_SOC
3309c4a7965SKim Phillips	help
3319c4a7965SKim Phillips	  Say 'Y' here to use the Freescale Security Engine (SEC)
3329c4a7965SKim Phillips	  to offload cryptographic algorithm computation.
3339c4a7965SKim Phillips
3349c4a7965SKim Phillips	  The Freescale SEC is present on PowerQUICC 'E' processors, such
3359c4a7965SKim Phillips	  as the MPC8349E and MPC8548E.
3369c4a7965SKim Phillips
3379c4a7965SKim Phillips	  To compile this driver as a module, choose M here: the module
3389c4a7965SKim Phillips	  will be called talitos.
3399c4a7965SKim Phillips
3405b841a65SLEROY Christopheconfig CRYPTO_DEV_TALITOS1
3415b841a65SLEROY Christophe	bool "SEC1 (SEC 1.0 and SEC Lite 1.2)"
3425b841a65SLEROY Christophe	depends on CRYPTO_DEV_TALITOS
3435b841a65SLEROY Christophe	depends on PPC_8xx || PPC_82xx
3445b841a65SLEROY Christophe	default y
3455b841a65SLEROY Christophe	help
3465b841a65SLEROY Christophe	  Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0
3475b841a65SLEROY Christophe	  found on MPC82xx or the Freescale Security Engine (SEC Lite)
3485b841a65SLEROY Christophe	  version 1.2 found on MPC8xx
3495b841a65SLEROY Christophe
3505b841a65SLEROY Christopheconfig CRYPTO_DEV_TALITOS2
3515b841a65SLEROY Christophe	bool "SEC2+ (SEC version 2.0 or upper)"
3525b841a65SLEROY Christophe	depends on CRYPTO_DEV_TALITOS
3535b841a65SLEROY Christophe	default y if !PPC_8xx
3545b841a65SLEROY Christophe	help
3555b841a65SLEROY Christophe	  Say 'Y' here to use the Freescale Security Engine (SEC)
3565b841a65SLEROY Christophe	  version 2 and following as found on MPC83xx, MPC85xx, etc ...
3575b841a65SLEROY Christophe
35881bef015SChristian Hohnstaedtconfig CRYPTO_DEV_IXP4XX
35981bef015SChristian Hohnstaedt	tristate "Driver for IXP4xx crypto hardware acceleration"
3609665c52bSKrzysztof Hałasa	depends on ARCH_IXP4XX && IXP4XX_QMGR && IXP4XX_NPE
361dfb098d6SCorentin Labbe	select CRYPTO_AES
362dfb098d6SCorentin Labbe	select CRYPTO_DES
363dfb098d6SCorentin Labbe	select CRYPTO_ECB
364dfb098d6SCorentin Labbe	select CRYPTO_CBC
365dfb098d6SCorentin Labbe	select CRYPTO_CTR
36604007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
367596103cfSHerbert Xu	select CRYPTO_AEAD
368090657e4SImre Kaloz	select CRYPTO_AUTHENC
369b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
37081bef015SChristian Hohnstaedt	help
37181bef015SChristian Hohnstaedt	  Driver for the IXP4xx NPE crypto engine.
37281bef015SChristian Hohnstaedt
373049359d6SJames Hsiaoconfig CRYPTO_DEV_PPC4XX
374049359d6SJames Hsiao	tristate "Driver AMCC PPC4xx crypto accelerator"
375049359d6SJames Hsiao	depends on PPC && 4xx
376049359d6SJames Hsiao	select CRYPTO_HASH
377a0aae821SChristian Lamparter	select CRYPTO_AEAD
378298b4c60SChristian Lamparter	select CRYPTO_AES
379da3e7a97SArd Biesheuvel	select CRYPTO_LIB_AES
380a0aae821SChristian Lamparter	select CRYPTO_CCM
38198e87e3dSChristian Lamparter	select CRYPTO_CTR
382a0aae821SChristian Lamparter	select CRYPTO_GCM
383b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
384049359d6SJames Hsiao	help
385049359d6SJames Hsiao	  This option allows you to have support for AMCC crypto acceleration.
386049359d6SJames Hsiao
3875343e674SChristian Lamparterconfig HW_RANDOM_PPC4XX
3885343e674SChristian Lamparter	bool "PowerPC 4xx generic true random number generator support"
38963b8ee4fSFlorian Fainelli	depends on CRYPTO_DEV_PPC4XX && HW_RANDOM=y
3905343e674SChristian Lamparter	default y
391a7f7f624SMasahiro Yamada	help
3925343e674SChristian Lamparter	 This option provides the kernel-side support for the TRNG hardware
3935343e674SChristian Lamparter	 found in the security function of some PowerPC 4xx SoCs.
3945343e674SChristian Lamparter
39574ed87e7STero Kristoconfig CRYPTO_DEV_OMAP
39674ed87e7STero Kristo	tristate "Support for OMAP crypto HW accelerators"
39774ed87e7STero Kristo	depends on ARCH_OMAP2PLUS
39874ed87e7STero Kristo	help
39974ed87e7STero Kristo	  OMAP processors have various crypto HW accelerators. Select this if
40074ed87e7STero Kristo	  you want to use the OMAP modules for any of the crypto algorithms.
40174ed87e7STero Kristo
40274ed87e7STero Kristoif CRYPTO_DEV_OMAP
40374ed87e7STero Kristo
4048628e7c8SDmitry Kasatkinconfig CRYPTO_DEV_OMAP_SHAM
405eaef7e3fSLokesh Vutla	tristate "Support for OMAP MD5/SHA1/SHA2 hw accelerator"
406eaef7e3fSLokesh Vutla	depends on ARCH_OMAP2PLUS
40738281194SArnd Bergmann	select CRYPTO_ENGINE
4088628e7c8SDmitry Kasatkin	select CRYPTO_SHA1
4098628e7c8SDmitry Kasatkin	select CRYPTO_MD5
410eaef7e3fSLokesh Vutla	select CRYPTO_SHA256
411eaef7e3fSLokesh Vutla	select CRYPTO_SHA512
412eaef7e3fSLokesh Vutla	select CRYPTO_HMAC
4138628e7c8SDmitry Kasatkin	help
414eaef7e3fSLokesh Vutla	  OMAP processors have MD5/SHA1/SHA2 hw accelerator. Select this if you
415eaef7e3fSLokesh Vutla	  want to use the OMAP module for MD5/SHA1/SHA2 algorithms.
4168628e7c8SDmitry Kasatkin
417537559a5SDmitry Kasatkinconfig CRYPTO_DEV_OMAP_AES
418537559a5SDmitry Kasatkin	tristate "Support for OMAP AES hw engine"
4191bbf6437SJoel Fernandes	depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP2PLUS
420537559a5SDmitry Kasatkin	select CRYPTO_AES
421b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
4220529900aSBaolin Wang	select CRYPTO_ENGINE
4239fcb191aSLokesh Vutla	select CRYPTO_CBC
4249fcb191aSLokesh Vutla	select CRYPTO_ECB
4259fcb191aSLokesh Vutla	select CRYPTO_CTR
426ad18cc9dSTero Kristo	select CRYPTO_AEAD
427537559a5SDmitry Kasatkin	help
428537559a5SDmitry Kasatkin	  OMAP processors have AES module accelerator. Select this if you
429537559a5SDmitry Kasatkin	  want to use the OMAP module for AES algorithms.
430537559a5SDmitry Kasatkin
431701d0f19SJoel Fernandesconfig CRYPTO_DEV_OMAP_DES
43297ee7ed3SPeter Meerwald	tristate "Support for OMAP DES/3DES hw engine"
433701d0f19SJoel Fernandes	depends on ARCH_OMAP2PLUS
43404007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
435b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
436f1b77aacSBaolin Wang	select CRYPTO_ENGINE
437701d0f19SJoel Fernandes	help
438701d0f19SJoel Fernandes	  OMAP processors have DES/3DES module accelerator. Select this if you
439701d0f19SJoel Fernandes	  want to use the OMAP module for DES and 3DES algorithms. Currently
44097ee7ed3SPeter Meerwald	  the ECB and CBC modes of operation are supported by the driver. Also
44197ee7ed3SPeter Meerwald	  accesses made on unaligned boundaries are supported.
442701d0f19SJoel Fernandes
44374ed87e7STero Kristoendif # CRYPTO_DEV_OMAP
44474ed87e7STero Kristo
4455de88752SJavier Martinconfig CRYPTO_DEV_SAHARA
4465de88752SJavier Martin	tristate "Support for SAHARA crypto accelerator"
44774d24d83SPaul Bolle	depends on ARCH_MXC && OF
448b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
4495de88752SJavier Martin	select CRYPTO_AES
4505de88752SJavier Martin	select CRYPTO_ECB
4515de88752SJavier Martin	help
4525de88752SJavier Martin	  This option enables support for the SAHARA HW crypto accelerator
4535de88752SJavier Martin	  found in some Freescale i.MX chips.
4545de88752SJavier Martin
455c46ea13fSKrzysztof Kozlowskiconfig CRYPTO_DEV_EXYNOS_RNG
456b279997fSKrzysztof Kozlowski	tristate "Exynos HW pseudo random number generator support"
457c46ea13fSKrzysztof Kozlowski	depends on ARCH_EXYNOS || COMPILE_TEST
458c46ea13fSKrzysztof Kozlowski	depends on HAS_IOMEM
459c46ea13fSKrzysztof Kozlowski	select CRYPTO_RNG
460a7f7f624SMasahiro Yamada	help
461c46ea13fSKrzysztof Kozlowski	  This driver provides kernel-side support through the
462c46ea13fSKrzysztof Kozlowski	  cryptographic API for the pseudo random number generator hardware
463c46ea13fSKrzysztof Kozlowski	  found on Exynos SoCs.
464c46ea13fSKrzysztof Kozlowski
465c46ea13fSKrzysztof Kozlowski	  To compile this driver as a module, choose M here: the
466c46ea13fSKrzysztof Kozlowski	  module will be called exynos-rng.
467c46ea13fSKrzysztof Kozlowski
468c46ea13fSKrzysztof Kozlowski	  If unsure, say Y.
469c46ea13fSKrzysztof Kozlowski
470a49e490cSVladimir Zapolskiyconfig CRYPTO_DEV_S5P
471e922e96fSNaveen Krishna Chatradhi	tristate "Support for Samsung S5PV210/Exynos crypto accelerator"
472dc1d9deeSKrzysztof Kozlowski	depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
473ee1b23d1SGeert Uytterhoeven	depends on HAS_IOMEM
474a49e490cSVladimir Zapolskiy	select CRYPTO_AES
475b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
476a49e490cSVladimir Zapolskiy	help
477a49e490cSVladimir Zapolskiy	  This option allows you to have support for S5P crypto acceleration.
478e922e96fSNaveen Krishna Chatradhi	  Select this to offload Samsung S5PV210 or S5PC110, Exynos from AES
479a49e490cSVladimir Zapolskiy	  algorithms execution.
480a49e490cSVladimir Zapolskiy
481c2afad6cSKamil Koniecznyconfig CRYPTO_DEV_EXYNOS_HASH
482c2afad6cSKamil Konieczny	bool "Support for Samsung Exynos HASH accelerator"
483c2afad6cSKamil Konieczny	depends on CRYPTO_DEV_S5P
484c2afad6cSKamil Konieczny	depends on !CRYPTO_DEV_EXYNOS_RNG && CRYPTO_DEV_EXYNOS_RNG!=m
485c2afad6cSKamil Konieczny	select CRYPTO_SHA1
486c2afad6cSKamil Konieczny	select CRYPTO_MD5
487c2afad6cSKamil Konieczny	select CRYPTO_SHA256
488c2afad6cSKamil Konieczny	help
489c2afad6cSKamil Konieczny	  Select this to offload Exynos from HASH MD5/SHA1/SHA256.
490c2afad6cSKamil Konieczny	  This will select software SHA1, MD5 and SHA256 as they are
491c2afad6cSKamil Konieczny	  needed for small and zero-size messages.
492c2afad6cSKamil Konieczny	  HASH algorithms will be disabled if EXYNOS_RNG
493c2afad6cSKamil Konieczny	  is enabled due to hw conflict.
494c2afad6cSKamil Konieczny
495aef7b31cSKent Yoderconfig CRYPTO_DEV_NX
4967011a122SDan Streetman	bool "Support for IBM PowerPC Nest (NX) cryptographic acceleration"
4977011a122SDan Streetman	depends on PPC64
498aef7b31cSKent Yoder	help
4997011a122SDan Streetman	  This enables support for the NX hardware cryptographic accelerator
5007011a122SDan Streetman	  coprocessor that is in IBM PowerPC P7+ or later processors.  This
5017011a122SDan Streetman	  does not actually enable any drivers, it only allows you to select
5027011a122SDan Streetman	  which acceleration type (encryption and/or compression) to enable.
503322cacceSSeth Jennings
504322cacceSSeth Jenningsif CRYPTO_DEV_NX
505322cacceSSeth Jennings	source "drivers/crypto/nx/Kconfig"
506322cacceSSeth Jenningsendif
507aef7b31cSKent Yoder
5082789c08fSAndreas Westinconfig CRYPTO_DEV_UX500
5092789c08fSAndreas Westin	tristate "Driver for ST-Ericsson UX500 crypto hardware acceleration"
5102789c08fSAndreas Westin	depends on ARCH_U8500
5112789c08fSAndreas Westin	help
5122789c08fSAndreas Westin	  Driver for ST-Ericsson UX500 crypto engine.
5132789c08fSAndreas Westin
5142789c08fSAndreas Westinif CRYPTO_DEV_UX500
5152789c08fSAndreas Westin	source "drivers/crypto/ux500/Kconfig"
5162789c08fSAndreas Westinendif # if CRYPTO_DEV_UX500
5172789c08fSAndreas Westin
51889a82ef8SCyrille Pitchenconfig CRYPTO_DEV_ATMEL_AUTHENC
519aee1f9f3SYueHaibing	bool "Support for Atmel IPSEC/SSL hw accelerator"
520ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
521aee1f9f3SYueHaibing	depends on CRYPTO_DEV_ATMEL_AES
52289a82ef8SCyrille Pitchen	help
52389a82ef8SCyrille Pitchen	  Some Atmel processors can combine the AES and SHA hw accelerators
52489a82ef8SCyrille Pitchen	  to enhance support of IPSEC/SSL.
52589a82ef8SCyrille Pitchen	  Select this if you want to use the Atmel modules for
52689a82ef8SCyrille Pitchen	  authenc(hmac(shaX),Y(cbc)) algorithms.
52789a82ef8SCyrille Pitchen
528bd3c7b5cSNicolas Royerconfig CRYPTO_DEV_ATMEL_AES
529bd3c7b5cSNicolas Royer	tristate "Support for Atmel AES hw accelerator"
530ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
531bd3c7b5cSNicolas Royer	select CRYPTO_AES
532d4419548SCyrille Pitchen	select CRYPTO_AEAD
533b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
534aee1f9f3SYueHaibing	select CRYPTO_AUTHENC if CRYPTO_DEV_ATMEL_AUTHENC
535aee1f9f3SYueHaibing	select CRYPTO_DEV_ATMEL_SHA if CRYPTO_DEV_ATMEL_AUTHENC
536bd3c7b5cSNicolas Royer	help
537bd3c7b5cSNicolas Royer	  Some Atmel processors have AES hw accelerator.
538bd3c7b5cSNicolas Royer	  Select this if you want to use the Atmel module for
539bd3c7b5cSNicolas Royer	  AES algorithms.
540bd3c7b5cSNicolas Royer
541bd3c7b5cSNicolas Royer	  To compile this driver as a module, choose M here: the module
542bd3c7b5cSNicolas Royer	  will be called atmel-aes.
543bd3c7b5cSNicolas Royer
54413802005SNicolas Royerconfig CRYPTO_DEV_ATMEL_TDES
54513802005SNicolas Royer	tristate "Support for Atmel DES/TDES hw accelerator"
546ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
54704007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
548b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
54913802005SNicolas Royer	help
55013802005SNicolas Royer	  Some Atmel processors have DES/TDES hw accelerator.
55113802005SNicolas Royer	  Select this if you want to use the Atmel module for
55213802005SNicolas Royer	  DES/TDES algorithms.
55313802005SNicolas Royer
55413802005SNicolas Royer	  To compile this driver as a module, choose M here: the module
55513802005SNicolas Royer	  will be called atmel-tdes.
55613802005SNicolas Royer
557ebc82efaSNicolas Royerconfig CRYPTO_DEV_ATMEL_SHA
558d4905b38SNicolas Royer	tristate "Support for Atmel SHA hw accelerator"
559ceb4afb3SArnd Bergmann	depends on ARCH_AT91 || COMPILE_TEST
560596103cfSHerbert Xu	select CRYPTO_HASH
561ebc82efaSNicolas Royer	help
562d4905b38SNicolas Royer	  Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512
563d4905b38SNicolas Royer	  hw accelerator.
564ebc82efaSNicolas Royer	  Select this if you want to use the Atmel module for
565d4905b38SNicolas Royer	  SHA1/SHA224/SHA256/SHA384/SHA512 algorithms.
566ebc82efaSNicolas Royer
567ebc82efaSNicolas Royer	  To compile this driver as a module, choose M here: the module
568ebc82efaSNicolas Royer	  will be called atmel-sha.
569ebc82efaSNicolas Royer
570c34a3201SArd Biesheuvelconfig CRYPTO_DEV_ATMEL_I2C
571c34a3201SArd Biesheuvel	tristate
572d33a23b0SArnd Bergmann	select BITREVERSE
573c34a3201SArd Biesheuvel
57411105693STudor-Dan Ambarusconfig CRYPTO_DEV_ATMEL_ECC
57511105693STudor-Dan Ambarus	tristate "Support for Microchip / Atmel ECC hw accelerator"
57611105693STudor-Dan Ambarus	depends on I2C
577c34a3201SArd Biesheuvel	select CRYPTO_DEV_ATMEL_I2C
57811105693STudor-Dan Ambarus	select CRYPTO_ECDH
57911105693STudor-Dan Ambarus	select CRC16
58011105693STudor-Dan Ambarus	help
58111105693STudor-Dan Ambarus	  Microhip / Atmel ECC hw accelerator.
58211105693STudor-Dan Ambarus	  Select this if you want to use the Microchip / Atmel module for
58311105693STudor-Dan Ambarus	  ECDH algorithm.
58411105693STudor-Dan Ambarus
58511105693STudor-Dan Ambarus	  To compile this driver as a module, choose M here: the module
58611105693STudor-Dan Ambarus	  will be called atmel-ecc.
58711105693STudor-Dan Ambarus
588da001fb6SArd Biesheuvelconfig CRYPTO_DEV_ATMEL_SHA204A
589da001fb6SArd Biesheuvel	tristate "Support for Microchip / Atmel SHA accelerator and RNG"
590da001fb6SArd Biesheuvel	depends on I2C
591da001fb6SArd Biesheuvel	select CRYPTO_DEV_ATMEL_I2C
592da001fb6SArd Biesheuvel	select HW_RANDOM
5934bb02dbdSYueHaibing	select CRC16
594da001fb6SArd Biesheuvel	help
595da001fb6SArd Biesheuvel	  Microhip / Atmel SHA accelerator and RNG.
596da001fb6SArd Biesheuvel	  Select this if you want to use the Microchip / Atmel SHA204A
597da001fb6SArd Biesheuvel	  module as a random number generator. (Other functions of the
598da001fb6SArd Biesheuvel	  chip are currently not exposed by this driver)
599da001fb6SArd Biesheuvel
600da001fb6SArd Biesheuvel	  To compile this driver as a module, choose M here: the module
601da001fb6SArd Biesheuvel	  will be called atmel-sha204a.
602da001fb6SArd Biesheuvel
603f1147660STom Lendackyconfig CRYPTO_DEV_CCP
604720419f0SBrijesh Singh	bool "Support for AMD Secure Processor"
6056c506343STom Lendacky	depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM
606f1147660STom Lendacky	help
607720419f0SBrijesh Singh	  The AMD Secure Processor provides support for the Cryptographic Coprocessor
608720419f0SBrijesh Singh	  (CCP) and the Platform Security Processor (PSP) devices.
609f1147660STom Lendacky
610f1147660STom Lendackyif CRYPTO_DEV_CCP
611f1147660STom Lendacky	source "drivers/crypto/ccp/Kconfig"
612f1147660STom Lendackyendif
613f1147660STom Lendacky
61415b59e7cSMarek Vasutconfig CRYPTO_DEV_MXS_DCP
61515b59e7cSMarek Vasut	tristate "Support for Freescale MXS DCP"
616a2712e6cSFabio Estevam	depends on (ARCH_MXS || ARCH_MXC)
617dc97fa02SArnd Bergmann	select STMP_DEVICE
61815b59e7cSMarek Vasut	select CRYPTO_CBC
61915b59e7cSMarek Vasut	select CRYPTO_ECB
62015b59e7cSMarek Vasut	select CRYPTO_AES
621b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
622596103cfSHerbert Xu	select CRYPTO_HASH
62315b59e7cSMarek Vasut	help
62415b59e7cSMarek Vasut	  The Freescale i.MX23/i.MX28 has SHA1/SHA256 and AES128 CBC/ECB
62515b59e7cSMarek Vasut	  co-processor on the die.
62615b59e7cSMarek Vasut
62715b59e7cSMarek Vasut	  To compile this driver as a module, choose M here: the module
62815b59e7cSMarek Vasut	  will be called mxs-dcp.
62915b59e7cSMarek Vasut
630cea4001aSTadeusz Struksource "drivers/crypto/qat/Kconfig"
63162ad8b5cSGeorge Cheriansource "drivers/crypto/cavium/cpt/Kconfig"
63214fa93cdSSrikanth Jampalasource "drivers/crypto/cavium/nitrox/Kconfig"
633655ff1a1SSrujanaChallasource "drivers/crypto/marvell/Kconfig"
634c672752dSStanimir Varbanov
635640035a2SMahipal Challaconfig CRYPTO_DEV_CAVIUM_ZIP
636640035a2SMahipal Challa	tristate "Cavium ZIP driver"
637640035a2SMahipal Challa	depends on PCI && 64BIT && (ARM64 || COMPILE_TEST)
638a7f7f624SMasahiro Yamada	help
639640035a2SMahipal Challa	  Select this option if you want to enable compression/decompression
640640035a2SMahipal Challa	  acceleration on Cavium's ARM based SoCs
641640035a2SMahipal Challa
642c672752dSStanimir Varbanovconfig CRYPTO_DEV_QCE
643c672752dSStanimir Varbanov	tristate "Qualcomm crypto engine accelerator"
644ee1b23d1SGeert Uytterhoeven	depends on ARCH_QCOM || COMPILE_TEST
645ee1b23d1SGeert Uytterhoeven	depends on HAS_IOMEM
64659e056cdSEneas U de Queiroz	help
64759e056cdSEneas U de Queiroz	  This driver supports Qualcomm crypto engine accelerator
64859e056cdSEneas U de Queiroz	  hardware. To compile this driver as a module, choose M here. The
64959e056cdSEneas U de Queiroz	  module will be called qcrypto.
65059e056cdSEneas U de Queiroz
65159e056cdSEneas U de Queirozconfig CRYPTO_DEV_QCE_SKCIPHER
65259e056cdSEneas U de Queiroz	bool
65359e056cdSEneas U de Queiroz	depends on CRYPTO_DEV_QCE
654c672752dSStanimir Varbanov	select CRYPTO_AES
65504007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
656c672752dSStanimir Varbanov	select CRYPTO_ECB
657c672752dSStanimir Varbanov	select CRYPTO_CBC
658c672752dSStanimir Varbanov	select CRYPTO_XTS
659c672752dSStanimir Varbanov	select CRYPTO_CTR
660b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
66159e056cdSEneas U de Queiroz
66259e056cdSEneas U de Queirozconfig CRYPTO_DEV_QCE_SHA
66359e056cdSEneas U de Queiroz	bool
66459e056cdSEneas U de Queiroz	depends on CRYPTO_DEV_QCE
6658ac1b9ccSSivaprakash Murugesan	select CRYPTO_SHA1
6668ac1b9ccSSivaprakash Murugesan	select CRYPTO_SHA256
66759e056cdSEneas U de Queiroz
6689363efb4SThara Gopinathconfig CRYPTO_DEV_QCE_AEAD
6699363efb4SThara Gopinath	bool
6709363efb4SThara Gopinath	depends on CRYPTO_DEV_QCE
6719363efb4SThara Gopinath	select CRYPTO_AUTHENC
6729363efb4SThara Gopinath	select CRYPTO_LIB_DES
6739363efb4SThara Gopinath
67459e056cdSEneas U de Queirozchoice
67559e056cdSEneas U de Queiroz	prompt "Algorithms enabled for QCE acceleration"
67659e056cdSEneas U de Queiroz	default CRYPTO_DEV_QCE_ENABLE_ALL
67759e056cdSEneas U de Queiroz	depends on CRYPTO_DEV_QCE
678c672752dSStanimir Varbanov	help
6792e0e386aSColin Ian King	  This option allows to choose whether to build support for all algorithms
68059e056cdSEneas U de Queiroz	  (default), hashes-only, or skciphers-only.
68159e056cdSEneas U de Queiroz
68259e056cdSEneas U de Queiroz	  The QCE engine does not appear to scale as well as the CPU to handle
68359e056cdSEneas U de Queiroz	  multiple crypto requests.  While the ipq40xx chips have 4-core CPUs, the
68459e056cdSEneas U de Queiroz	  QCE handles only 2 requests in parallel.
68559e056cdSEneas U de Queiroz
68659e056cdSEneas U de Queiroz	  Ipsec throughput seems to improve when disabling either family of
68759e056cdSEneas U de Queiroz	  algorithms, sharing the load with the CPU.  Enabling skciphers-only
68859e056cdSEneas U de Queiroz	  appears to work best.
68959e056cdSEneas U de Queiroz
69059e056cdSEneas U de Queiroz	config CRYPTO_DEV_QCE_ENABLE_ALL
69159e056cdSEneas U de Queiroz		bool "All supported algorithms"
69259e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SKCIPHER
69359e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SHA
6949363efb4SThara Gopinath		select CRYPTO_DEV_QCE_AEAD
69559e056cdSEneas U de Queiroz		help
69659e056cdSEneas U de Queiroz		  Enable all supported algorithms:
69759e056cdSEneas U de Queiroz			- AES (CBC, CTR, ECB, XTS)
69859e056cdSEneas U de Queiroz			- 3DES (CBC, ECB)
69959e056cdSEneas U de Queiroz			- DES (CBC, ECB)
70059e056cdSEneas U de Queiroz			- SHA1, HMAC-SHA1
70159e056cdSEneas U de Queiroz			- SHA256, HMAC-SHA256
70259e056cdSEneas U de Queiroz
70359e056cdSEneas U de Queiroz	config CRYPTO_DEV_QCE_ENABLE_SKCIPHER
70459e056cdSEneas U de Queiroz		bool "Symmetric-key ciphers only"
70559e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SKCIPHER
70659e056cdSEneas U de Queiroz		help
70759e056cdSEneas U de Queiroz		  Enable symmetric-key ciphers only:
70859e056cdSEneas U de Queiroz			- AES (CBC, CTR, ECB, XTS)
70959e056cdSEneas U de Queiroz			- 3DES (ECB, CBC)
71059e056cdSEneas U de Queiroz			- DES (ECB, CBC)
71159e056cdSEneas U de Queiroz
71259e056cdSEneas U de Queiroz	config CRYPTO_DEV_QCE_ENABLE_SHA
71359e056cdSEneas U de Queiroz		bool "Hash/HMAC only"
71459e056cdSEneas U de Queiroz		select CRYPTO_DEV_QCE_SHA
71559e056cdSEneas U de Queiroz		help
71659e056cdSEneas U de Queiroz		  Enable hashes/HMAC algorithms only:
71759e056cdSEneas U de Queiroz			- SHA1, HMAC-SHA1
71859e056cdSEneas U de Queiroz			- SHA256, HMAC-SHA256
71959e056cdSEneas U de Queiroz
7209363efb4SThara Gopinath	config CRYPTO_DEV_QCE_ENABLE_AEAD
7219363efb4SThara Gopinath		bool "AEAD algorithms only"
7229363efb4SThara Gopinath		select CRYPTO_DEV_QCE_AEAD
7239363efb4SThara Gopinath		help
7249363efb4SThara Gopinath		  Enable AEAD algorithms only:
7259363efb4SThara Gopinath			- authenc()
7269363efb4SThara Gopinath			- ccm(aes)
7279363efb4SThara Gopinath			- rfc4309(ccm(aes))
72859e056cdSEneas U de Queirozendchoice
729c672752dSStanimir Varbanov
730ce163ba0SEneas U de Queirozconfig CRYPTO_DEV_QCE_SW_MAX_LEN
731ce163ba0SEneas U de Queiroz	int "Default maximum request size to use software for AES"
732ce163ba0SEneas U de Queiroz	depends on CRYPTO_DEV_QCE && CRYPTO_DEV_QCE_SKCIPHER
733ce163ba0SEneas U de Queiroz	default 512
734ce163ba0SEneas U de Queiroz	help
735ce163ba0SEneas U de Queiroz	  This sets the default maximum request size to perform AES requests
736ce163ba0SEneas U de Queiroz	  using software instead of the crypto engine.  It can be changed by
737ce163ba0SEneas U de Queiroz	  setting the aes_sw_max_len parameter.
738ce163ba0SEneas U de Queiroz
739ce163ba0SEneas U de Queiroz	  Small blocks are processed faster in software than hardware.
740ce163ba0SEneas U de Queiroz	  Considering the 256-bit ciphers, software is 2-3 times faster than
741ce163ba0SEneas U de Queiroz	  qce at 256-bytes, 30% faster at 512, and about even at 768-bytes.
742ce163ba0SEneas U de Queiroz	  With 128-bit keys, the break-even point would be around 1024-bytes.
743ce163ba0SEneas U de Queiroz
744ce163ba0SEneas U de Queiroz	  The default is set a little lower, to 512 bytes, to balance the
745ce163ba0SEneas U de Queiroz	  cost in CPU usage.  The minimum recommended setting is 16-bytes
746ce163ba0SEneas U de Queiroz	  (1 AES block), since AES-GCM will fail if you set it lower.
747ce163ba0SEneas U de Queiroz	  Setting this to zero will send all requests to the hardware.
748ce163ba0SEneas U de Queiroz
749ce163ba0SEneas U de Queiroz	  Note that 192-bit keys are not supported by the hardware and are
750ce163ba0SEneas U de Queiroz	  always processed by the software fallback, and all DES requests
751ce163ba0SEneas U de Queiroz	  are done by the hardware.
752ce163ba0SEneas U de Queiroz
753ceec5f5bSVinod Koulconfig CRYPTO_DEV_QCOM_RNG
754ceec5f5bSVinod Koul	tristate "Qualcomm Random Number Generator Driver"
755ceec5f5bSVinod Koul	depends on ARCH_QCOM || COMPILE_TEST
756ceec5f5bSVinod Koul	select CRYPTO_RNG
757ceec5f5bSVinod Koul	help
758ceec5f5bSVinod Koul	  This driver provides support for the Random Number
759ceec5f5bSVinod Koul	  Generator hardware found on Qualcomm SoCs.
760ceec5f5bSVinod Koul
761ceec5f5bSVinod Koul	  To compile this driver as a module, choose M here. The
762ceec5f5bSVinod Koul	  module will be called qcom-rng. If unsure, say N.
763ceec5f5bSVinod Koul
764d2e3ae6fSLeonidas S. Barbosaconfig CRYPTO_DEV_VMX
765d2e3ae6fSLeonidas S. Barbosa	bool "Support for VMX cryptographic acceleration instructions"
766f1ab4287SMichael Ellerman	depends on PPC64 && VSX
767d2e3ae6fSLeonidas S. Barbosa	help
768d2e3ae6fSLeonidas S. Barbosa	  Support for VMX cryptographic acceleration instructions.
769d2e3ae6fSLeonidas S. Barbosa
770d2e3ae6fSLeonidas S. Barbosasource "drivers/crypto/vmx/Kconfig"
771d2e3ae6fSLeonidas S. Barbosa
772d358f1abSJames Hartleyconfig CRYPTO_DEV_IMGTEC_HASH
773d358f1abSJames Hartley	tristate "Imagination Technologies hardware hash accelerator"
7748c98ebd7SGeert Uytterhoeven	depends on MIPS || COMPILE_TEST
775d358f1abSJames Hartley	select CRYPTO_MD5
776d358f1abSJames Hartley	select CRYPTO_SHA1
777d358f1abSJames Hartley	select CRYPTO_SHA256
778d358f1abSJames Hartley	select CRYPTO_HASH
779d358f1abSJames Hartley	help
780d358f1abSJames Hartley	  This driver interfaces with the Imagination Technologies
781d358f1abSJames Hartley	  hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
782d358f1abSJames Hartley	  hashing algorithms.
783d358f1abSJames Hartley
784433cd2c6SZain Wangconfig CRYPTO_DEV_ROCKCHIP
785433cd2c6SZain Wang	tristate "Rockchip's Cryptographic Engine driver"
786433cd2c6SZain Wang	depends on OF && ARCH_ROCKCHIP
787433cd2c6SZain Wang	select CRYPTO_AES
78804007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
789bfd927ffSZain Wang	select CRYPTO_MD5
790bfd927ffSZain Wang	select CRYPTO_SHA1
791bfd927ffSZain Wang	select CRYPTO_SHA256
792bfd927ffSZain Wang	select CRYPTO_HASH
793b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
794433cd2c6SZain Wang
795433cd2c6SZain Wang	help
796433cd2c6SZain Wang	  This driver interfaces with the hardware crypto accelerator.
797433cd2c6SZain Wang	  Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
798433cd2c6SZain Wang
7994d96f7d4SKalyani Akulaconfig CRYPTO_DEV_ZYNQMP_AES
8004d96f7d4SKalyani Akula	tristate "Support for Xilinx ZynqMP AES hw accelerator"
8014d96f7d4SKalyani Akula	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
8024d96f7d4SKalyani Akula	select CRYPTO_AES
8034d96f7d4SKalyani Akula	select CRYPTO_ENGINE
8044d96f7d4SKalyani Akula	select CRYPTO_AEAD
8054d96f7d4SKalyani Akula	help
8064d96f7d4SKalyani Akula	  Xilinx ZynqMP has AES-GCM engine used for symmetric key
8074d96f7d4SKalyani Akula	  encryption and decryption. This driver interfaces with AES hw
8084d96f7d4SKalyani Akula	  accelerator. Select this if you want to use the ZynqMP module
8094d96f7d4SKalyani Akula	  for AES algorithms.
8104d96f7d4SKalyani Akula
8117ecc3e34SHarshaconfig CRYPTO_DEV_ZYNQMP_SHA3
812*0e03b8fdSHerbert Xu	tristate "Support for Xilinx ZynqMP SHA3 hardware accelerator"
813*0e03b8fdSHerbert Xu	depends on ZYNQMP_FIRMWARE || COMPILE_TEST
8147ecc3e34SHarsha	select CRYPTO_SHA3
8157ecc3e34SHarsha	help
8167ecc3e34SHarsha	  Xilinx ZynqMP has SHA3 engine used for secure hash calculation.
8177ecc3e34SHarsha	  This driver interfaces with SHA3 hardware engine.
8187ecc3e34SHarsha	  Select this if you want to use the ZynqMP module
8197ecc3e34SHarsha	  for SHA3 hash computation.
8207ecc3e34SHarsha
82102038fd6SHariprasad Shenaisource "drivers/crypto/chelsio/Kconfig"
82202038fd6SHariprasad Shenai
823dbaf0624SGongleisource "drivers/crypto/virtio/Kconfig"
824dbaf0624SGonglei
8259d12ba86SRob Riceconfig CRYPTO_DEV_BCM_SPU
8269d12ba86SRob Rice	tristate "Broadcom symmetric crypto/hash acceleration support"
8279d12ba86SRob Rice	depends on ARCH_BCM_IPROC
828efc856edSraveendra padasalagi	depends on MAILBOX
8299d12ba86SRob Rice	default m
830ab57b335SEric Biggers	select CRYPTO_AUTHENC
83104007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
8329d12ba86SRob Rice	select CRYPTO_MD5
8339d12ba86SRob Rice	select CRYPTO_SHA1
8349d12ba86SRob Rice	select CRYPTO_SHA256
8359d12ba86SRob Rice	select CRYPTO_SHA512
8369d12ba86SRob Rice	help
8379d12ba86SRob Rice	  This driver provides support for Broadcom crypto acceleration using the
838a9c01cd6SArd Biesheuvel	  Secure Processing Unit (SPU). The SPU driver registers skcipher,
8399d12ba86SRob Rice	  ahash, and aead algorithms with the kernel cryptographic API.
8409d12ba86SRob Rice
841b51dbe90SFabien DESSENNEsource "drivers/crypto/stm32/Kconfig"
842b51dbe90SFabien DESSENNE
8431b44c5a6SAntoine Ténartconfig CRYPTO_DEV_SAFEXCEL
8441b44c5a6SAntoine Ténart	tristate "Inside Secure's SafeXcel cryptographic engine driver"
8456dc0e310SBrendan Higgins	depends on (OF || PCI || COMPILE_TEST) && HAS_IOMEM
846363a90c2SArd Biesheuvel	select CRYPTO_LIB_AES
847f6beaea3SAntoine Tenart	select CRYPTO_AUTHENC
848b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
84904007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
8501b44c5a6SAntoine Ténart	select CRYPTO_HASH
8511b44c5a6SAntoine Ténart	select CRYPTO_HMAC
852293f89cfSOfer Heifetz	select CRYPTO_MD5
8531b44c5a6SAntoine Ténart	select CRYPTO_SHA1
8541b44c5a6SAntoine Ténart	select CRYPTO_SHA256
8551b44c5a6SAntoine Ténart	select CRYPTO_SHA512
856fc0f82b1SPascal van Leeuwen	select CRYPTO_CHACHA20POLY1305
8571d448f27SPascal van Leeuwen	select CRYPTO_SHA3
8581b44c5a6SAntoine Ténart	help
8590f6e5c82SPascal van Leeuwen	  This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic
8600f6e5c82SPascal van Leeuwen	  engines designed by Inside Secure. It currently accelerates DES, 3DES and
8610f6e5c82SPascal van Leeuwen	  AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256,
8620f6e5c82SPascal van Leeuwen	  SHA384 and SHA512 hash algorithms for both basic hash and HMAC.
8630f6e5c82SPascal van Leeuwen	  Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations.
8641b44c5a6SAntoine Ténart
865a21eb94fSLars Perssonconfig CRYPTO_DEV_ARTPEC6
866a21eb94fSLars Persson	tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."
867a21eb94fSLars Persson	depends on ARM && (ARCH_ARTPEC || COMPILE_TEST)
868a21eb94fSLars Persson	depends on OF
869a21eb94fSLars Persson	select CRYPTO_AEAD
870a21eb94fSLars Persson	select CRYPTO_AES
871a21eb94fSLars Persson	select CRYPTO_ALGAPI
872b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
873a21eb94fSLars Persson	select CRYPTO_CTR
874a21eb94fSLars Persson	select CRYPTO_HASH
875a21eb94fSLars Persson	select CRYPTO_SHA1
876a21eb94fSLars Persson	select CRYPTO_SHA256
877a21eb94fSLars Persson	select CRYPTO_SHA512
878a21eb94fSLars Persson	help
879a21eb94fSLars Persson	  Enables the driver for the on-chip crypto accelerator
880a21eb94fSLars Persson	  of Axis ARTPEC SoCs.
881a21eb94fSLars Persson
882a21eb94fSLars Persson	  To compile this driver as a module, choose M here.
883a21eb94fSLars Persson
8844c3f9727SGilad Ben-Yossefconfig CRYPTO_DEV_CCREE
8854c3f9727SGilad Ben-Yossef	tristate "Support for ARM TrustZone CryptoCell family of security processors"
8864c3f9727SGilad Ben-Yossef	depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA
8874c3f9727SGilad Ben-Yossef	default n
8884c3f9727SGilad Ben-Yossef	select CRYPTO_HASH
889b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
89004007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
8914c3f9727SGilad Ben-Yossef	select CRYPTO_AEAD
8924c3f9727SGilad Ben-Yossef	select CRYPTO_AUTHENC
8934c3f9727SGilad Ben-Yossef	select CRYPTO_SHA1
8944c3f9727SGilad Ben-Yossef	select CRYPTO_MD5
8954c3f9727SGilad Ben-Yossef	select CRYPTO_SHA256
8964c3f9727SGilad Ben-Yossef	select CRYPTO_SHA512
8974c3f9727SGilad Ben-Yossef	select CRYPTO_HMAC
8984c3f9727SGilad Ben-Yossef	select CRYPTO_AES
8994c3f9727SGilad Ben-Yossef	select CRYPTO_CBC
9004c3f9727SGilad Ben-Yossef	select CRYPTO_ECB
9014c3f9727SGilad Ben-Yossef	select CRYPTO_CTR
9024c3f9727SGilad Ben-Yossef	select CRYPTO_XTS
9039b8d51f8SGilad Ben-Yossef	select CRYPTO_SM4
904927574e0SYael Chemla	select CRYPTO_SM3
9054c3f9727SGilad Ben-Yossef	help
90627b3b22dSGilad Ben-Yossef	  Say 'Y' to enable a driver for the REE interface of the Arm
90727b3b22dSGilad Ben-Yossef	  TrustZone CryptoCell family of processors. Currently the
9081c876a90SGilad Ben-Yossef	  CryptoCell 713, 703, 712, 710 and 630 are supported.
9094c3f9727SGilad Ben-Yossef	  Choose this if you wish to use hardware acceleration of
9104c3f9727SGilad Ben-Yossef	  cryptographic operations on the system REE.
9114c3f9727SGilad Ben-Yossef	  If unsure say Y.
9124c3f9727SGilad Ben-Yossef
913915e4e84SJonathan Cameronsource "drivers/crypto/hisilicon/Kconfig"
914915e4e84SJonathan Cameron
91548fe583fSCorentin Labbesource "drivers/crypto/amlogic/Kconfig"
91648fe583fSCorentin Labbe
9177694b6caSKeerthyconfig CRYPTO_DEV_SA2UL
9187694b6caSKeerthy	tristate "Support for TI security accelerator"
9197694b6caSKeerthy	depends on ARCH_K3 || COMPILE_TEST
9207694b6caSKeerthy	select ARM64_CRYPTO
9217694b6caSKeerthy	select CRYPTO_AES
9227694b6caSKeerthy	select CRYPTO_AES_ARM64
9237694b6caSKeerthy	select CRYPTO_ALGAPI
92461f033baSHerbert Xu	select CRYPTO_AUTHENC
925bfe8fe93SRandy Dunlap	select CRYPTO_SHA1
926bfe8fe93SRandy Dunlap	select CRYPTO_SHA256
927bfe8fe93SRandy Dunlap	select CRYPTO_SHA512
9287694b6caSKeerthy	select HW_RANDOM
9297694b6caSKeerthy	select SG_SPLIT
9307694b6caSKeerthy	help
9317694b6caSKeerthy	  K3 devices include a security accelerator engine that may be
9327694b6caSKeerthy	  used for crypto offload.  Select this if you want to use hardware
9337694b6caSKeerthy	  acceleration for cryptographic algorithms on these devices.
9347694b6caSKeerthy
93588574332SMike Healysource "drivers/crypto/keembay/Kconfig"
93688574332SMike Healy
937b511431dSJan Engelhardtendif # CRYPTO_HW
938