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 18334a149a0SHarald 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 191cbbc6755SHarald Freudenbergerconfig CRYPTO_PHMAC_S390 192cbbc6755SHarald Freudenberger tristate "PHMAC cipher algorithms" 193cbbc6755SHarald Freudenberger depends on S390 194cbbc6755SHarald Freudenberger depends on PKEY 195cbbc6755SHarald Freudenberger select CRYPTO_HASH 196cbbc6755SHarald Freudenberger select CRYPTO_ENGINE 197cbbc6755SHarald Freudenberger help 198cbbc6755SHarald Freudenberger This is the s390 hardware accelerated implementation of the 199cbbc6755SHarald Freudenberger protected key HMAC support for SHA224, SHA256, SHA384 and SHA512. 200cbbc6755SHarald Freudenberger 201cbbc6755SHarald Freudenberger Select this option if you want to use the phmac digests 202cbbc6755SHarald Freudenberger for example to use dm-integrity with secure/protected keys. 203cbbc6755SHarald Freudenberger 2043f5615e0SJan Glauberconfig S390_PRNG 2053f5615e0SJan Glauber tristate "Pseudo random number generator device driver" 2063f5615e0SJan Glauber depends on S390 2073f5615e0SJan Glauber default "m" 2083f5615e0SJan Glauber help 2093f5615e0SJan Glauber Select this option if you want to use the s390 pseudo random number 2103f5615e0SJan Glauber generator. The PRNG is part of the cryptographic processor functions 2113f5615e0SJan Glauber and uses triple-DES to generate secure random numbers like the 212d393d9b8SJan Glauber ANSI X9.17 standard. User-space programs access the 213d393d9b8SJan Glauber pseudo-random-number device through the char device /dev/prandom. 214d393d9b8SJan Glauber 215d393d9b8SJan Glauber It is available as of z9. 2163f5615e0SJan Glauber 21746c5338dSCorentin Labbeconfig CRYPTO_DEV_SL3516 218df941fddSGeert Uytterhoeven tristate "Storlink SL3516 crypto offloader" 219e29dd5c8SGeert Uytterhoeven depends on ARCH_GEMINI || COMPILE_TEST 220e29dd5c8SGeert Uytterhoeven 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 22546c5338dSCorentin Labbe select HW_RANDOM 22646c5338dSCorentin Labbe help 22746c5338dSCorentin Labbe This option allows you to have support for SL3516 crypto offloader. 22846c5338dSCorentin Labbe 22946c5338dSCorentin Labbeconfig CRYPTO_DEV_SL3516_DEBUG 23046c5338dSCorentin Labbe bool "Enable SL3516 stats" 23146c5338dSCorentin Labbe depends on CRYPTO_DEV_SL3516 23246c5338dSCorentin Labbe depends on DEBUG_FS 23346c5338dSCorentin Labbe help 23446c5338dSCorentin Labbe Say y to enable SL3516 debug stats. 23546c5338dSCorentin Labbe This will create /sys/kernel/debug/sl3516/stats for displaying 23646c5338dSCorentin Labbe the number of requests per algorithm and other internal stats. 23746c5338dSCorentin Labbe 238f7d0561eSEvgeniy Polyakovconfig CRYPTO_DEV_HIFN_795X 239f7d0561eSEvgeniy Polyakov tristate "Driver HIFN 795x crypto accelerator chips" 24004007b0eSArd Biesheuvel select CRYPTO_LIB_DES 241b95bba5dSEric Biggers select CRYPTO_SKCIPHER 242946fef4eSHerbert Xu select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG 2432707b937SJan Glauber depends on PCI 24475b76625SRichard Weinberger depends on !ARCH_DMA_ADDR_T_64BIT 245f7d0561eSEvgeniy Polyakov help 246f7d0561eSEvgeniy Polyakov This option allows you to have support for HIFN 795x crypto adapters. 247f7d0561eSEvgeniy Polyakov 248946fef4eSHerbert Xuconfig CRYPTO_DEV_HIFN_795X_RNG 249946fef4eSHerbert Xu bool "HIFN 795x random number generator" 250946fef4eSHerbert Xu depends on CRYPTO_DEV_HIFN_795X 251946fef4eSHerbert Xu help 252946fef4eSHerbert Xu Select this option if you want to enable the random number generator 253946fef4eSHerbert Xu on the HIFN 795x crypto adapters. 254f7d0561eSEvgeniy Polyakov 2558636a1f9SMasahiro Yamadasource "drivers/crypto/caam/Kconfig" 2568e8ec596SKim Phillips 2579c4a7965SKim Phillipsconfig CRYPTO_DEV_TALITOS 2589c4a7965SKim Phillips tristate "Talitos Freescale Security Engine (SEC)" 259596103cfSHerbert Xu select CRYPTO_AEAD 2609c4a7965SKim Phillips select CRYPTO_AUTHENC 261b95bba5dSEric Biggers select CRYPTO_SKCIPHER 262596103cfSHerbert Xu select CRYPTO_HASH 263dbc2e87bSHerbert Xu select CRYPTO_LIB_DES 2649c4a7965SKim Phillips select HW_RANDOM 2659c4a7965SKim Phillips depends on FSL_SOC 2669c4a7965SKim Phillips help 2679c4a7965SKim Phillips Say 'Y' here to use the Freescale Security Engine (SEC) 2689c4a7965SKim Phillips to offload cryptographic algorithm computation. 2699c4a7965SKim Phillips 2709c4a7965SKim Phillips The Freescale SEC is present on PowerQUICC 'E' processors, such 2719c4a7965SKim Phillips as the MPC8349E and MPC8548E. 2729c4a7965SKim Phillips 2739c4a7965SKim Phillips To compile this driver as a module, choose M here: the module 2749c4a7965SKim Phillips will be called talitos. 2759c4a7965SKim Phillips 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 2815b841a65SLEROY Christophe help 2825b841a65SLEROY Christophe Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0 2835b841a65SLEROY Christophe found on MPC82xx or the Freescale Security Engine (SEC Lite) 2845b841a65SLEROY Christophe version 1.2 found on MPC8xx 2855b841a65SLEROY Christophe 2865b841a65SLEROY Christopheconfig CRYPTO_DEV_TALITOS2 2875b841a65SLEROY Christophe bool "SEC2+ (SEC version 2.0 or upper)" 2885b841a65SLEROY Christophe depends on CRYPTO_DEV_TALITOS 2895b841a65SLEROY Christophe default y if !PPC_8xx 2905b841a65SLEROY Christophe help 2915b841a65SLEROY Christophe Say 'Y' here to use the Freescale Security Engine (SEC) 2925b841a65SLEROY Christophe version 2 and following as found on MPC83xx, MPC85xx, etc ... 2935b841a65SLEROY Christophe 294049359d6SJames Hsiaoconfig CRYPTO_DEV_PPC4XX 295049359d6SJames Hsiao tristate "Driver AMCC PPC4xx crypto accelerator" 296049359d6SJames Hsiao depends on PPC && 4xx 297049359d6SJames Hsiao select CRYPTO_HASH 298a0aae821SChristian Lamparter select CRYPTO_AEAD 299298b4c60SChristian Lamparter select CRYPTO_AES 300da3e7a97SArd Biesheuvel select CRYPTO_LIB_AES 301a0aae821SChristian Lamparter select CRYPTO_CCM 30298e87e3dSChristian Lamparter select CRYPTO_CTR 303a0aae821SChristian Lamparter select CRYPTO_GCM 304b95bba5dSEric Biggers select CRYPTO_SKCIPHER 305049359d6SJames Hsiao help 306049359d6SJames Hsiao This option allows you to have support for AMCC crypto acceleration. 307049359d6SJames Hsiao 3085343e674SChristian Lamparterconfig HW_RANDOM_PPC4XX 3095343e674SChristian Lamparter bool "PowerPC 4xx generic true random number generator support" 31063b8ee4fSFlorian Fainelli depends on CRYPTO_DEV_PPC4XX && HW_RANDOM=y 3115343e674SChristian Lamparter default y 312a7f7f624SMasahiro Yamada help 3135343e674SChristian Lamparter This option provides the kernel-side support for the TRNG hardware 3145343e674SChristian Lamparter found in the security function of some PowerPC 4xx SoCs. 3155343e674SChristian Lamparter 31674ed87e7STero Kristoconfig CRYPTO_DEV_OMAP 31774ed87e7STero Kristo tristate "Support for OMAP crypto HW accelerators" 31874ed87e7STero Kristo depends on ARCH_OMAP2PLUS 31974ed87e7STero Kristo help 32074ed87e7STero Kristo OMAP processors have various crypto HW accelerators. Select this if 32174ed87e7STero Kristo you want to use the OMAP modules for any of the crypto algorithms. 32274ed87e7STero Kristo 32374ed87e7STero Kristoif CRYPTO_DEV_OMAP 32474ed87e7STero Kristo 3258628e7c8SDmitry Kasatkinconfig CRYPTO_DEV_OMAP_SHAM 326eaef7e3fSLokesh Vutla tristate "Support for OMAP MD5/SHA1/SHA2 hw accelerator" 327eaef7e3fSLokesh Vutla depends on ARCH_OMAP2PLUS 32838281194SArnd Bergmann select CRYPTO_ENGINE 3298628e7c8SDmitry Kasatkin select CRYPTO_SHA1 3308628e7c8SDmitry Kasatkin select CRYPTO_MD5 331eaef7e3fSLokesh Vutla select CRYPTO_SHA256 332eaef7e3fSLokesh Vutla select CRYPTO_SHA512 333eaef7e3fSLokesh Vutla select CRYPTO_HMAC 3348628e7c8SDmitry Kasatkin help 335eaef7e3fSLokesh Vutla OMAP processors have MD5/SHA1/SHA2 hw accelerator. Select this if you 336eaef7e3fSLokesh Vutla want to use the OMAP module for MD5/SHA1/SHA2 algorithms. 3378628e7c8SDmitry Kasatkin 338537559a5SDmitry Kasatkinconfig CRYPTO_DEV_OMAP_AES 339537559a5SDmitry Kasatkin tristate "Support for OMAP AES hw engine" 3401bbf6437SJoel Fernandes depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP2PLUS 341537559a5SDmitry Kasatkin select CRYPTO_AES 342b95bba5dSEric Biggers select CRYPTO_SKCIPHER 3430529900aSBaolin Wang select CRYPTO_ENGINE 3449fcb191aSLokesh Vutla select CRYPTO_CBC 3459fcb191aSLokesh Vutla select CRYPTO_ECB 3469fcb191aSLokesh Vutla select CRYPTO_CTR 347ad18cc9dSTero Kristo select CRYPTO_AEAD 348537559a5SDmitry Kasatkin help 349537559a5SDmitry Kasatkin OMAP processors have AES module accelerator. Select this if you 350537559a5SDmitry Kasatkin want to use the OMAP module for AES algorithms. 351537559a5SDmitry Kasatkin 352701d0f19SJoel Fernandesconfig CRYPTO_DEV_OMAP_DES 35397ee7ed3SPeter Meerwald tristate "Support for OMAP DES/3DES hw engine" 354701d0f19SJoel Fernandes depends on ARCH_OMAP2PLUS 35504007b0eSArd Biesheuvel select CRYPTO_LIB_DES 356b95bba5dSEric Biggers select CRYPTO_SKCIPHER 357f1b77aacSBaolin Wang select CRYPTO_ENGINE 358701d0f19SJoel Fernandes help 359701d0f19SJoel Fernandes OMAP processors have DES/3DES module accelerator. Select this if you 360701d0f19SJoel Fernandes want to use the OMAP module for DES and 3DES algorithms. Currently 36197ee7ed3SPeter Meerwald the ECB and CBC modes of operation are supported by the driver. Also 36297ee7ed3SPeter Meerwald accesses made on unaligned boundaries are supported. 363701d0f19SJoel Fernandes 36474ed87e7STero Kristoendif # CRYPTO_DEV_OMAP 36574ed87e7STero Kristo 3665de88752SJavier Martinconfig CRYPTO_DEV_SAHARA 3675de88752SJavier Martin tristate "Support for SAHARA crypto accelerator" 36874d24d83SPaul Bolle depends on ARCH_MXC && OF 369b95bba5dSEric Biggers select CRYPTO_SKCIPHER 3705de88752SJavier Martin select CRYPTO_AES 3715de88752SJavier Martin select CRYPTO_ECB 37244ff4ea1SOvidiu Panait select CRYPTO_ENGINE 3735de88752SJavier Martin help 3745de88752SJavier Martin This option enables support for the SAHARA HW crypto accelerator 3755de88752SJavier Martin found in some Freescale i.MX chips. 3765de88752SJavier Martin 377c46ea13fSKrzysztof Kozlowskiconfig CRYPTO_DEV_EXYNOS_RNG 378b279997fSKrzysztof Kozlowski tristate "Exynos HW pseudo random number generator support" 379c46ea13fSKrzysztof Kozlowski depends on ARCH_EXYNOS || COMPILE_TEST 380c46ea13fSKrzysztof Kozlowski depends on HAS_IOMEM 381c46ea13fSKrzysztof Kozlowski select CRYPTO_RNG 382a7f7f624SMasahiro Yamada help 383c46ea13fSKrzysztof Kozlowski This driver provides kernel-side support through the 384c46ea13fSKrzysztof Kozlowski cryptographic API for the pseudo random number generator hardware 385c46ea13fSKrzysztof Kozlowski found on Exynos SoCs. 386c46ea13fSKrzysztof Kozlowski 387c46ea13fSKrzysztof Kozlowski To compile this driver as a module, choose M here: the 388c46ea13fSKrzysztof Kozlowski module will be called exynos-rng. 389c46ea13fSKrzysztof Kozlowski 390c46ea13fSKrzysztof Kozlowski If unsure, say Y. 391c46ea13fSKrzysztof Kozlowski 392a49e490cSVladimir Zapolskiyconfig CRYPTO_DEV_S5P 393e922e96fSNaveen Krishna Chatradhi tristate "Support for Samsung S5PV210/Exynos crypto accelerator" 394dc1d9deeSKrzysztof Kozlowski depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST 395ee1b23d1SGeert Uytterhoeven depends on HAS_IOMEM 396a49e490cSVladimir Zapolskiy select CRYPTO_AES 397b95bba5dSEric Biggers select CRYPTO_SKCIPHER 398a49e490cSVladimir Zapolskiy help 399a49e490cSVladimir Zapolskiy This option allows you to have support for S5P crypto acceleration. 400e922e96fSNaveen Krishna Chatradhi Select this to offload Samsung S5PV210 or S5PC110, Exynos from AES 401a49e490cSVladimir Zapolskiy algorithms execution. 402a49e490cSVladimir Zapolskiy 403c2afad6cSKamil Koniecznyconfig CRYPTO_DEV_EXYNOS_HASH 404c2afad6cSKamil Konieczny bool "Support for Samsung Exynos HASH accelerator" 405c2afad6cSKamil Konieczny depends on CRYPTO_DEV_S5P 406c2afad6cSKamil Konieczny depends on !CRYPTO_DEV_EXYNOS_RNG && CRYPTO_DEV_EXYNOS_RNG!=m 407c2afad6cSKamil Konieczny select CRYPTO_SHA1 408c2afad6cSKamil Konieczny select CRYPTO_MD5 409c2afad6cSKamil Konieczny select CRYPTO_SHA256 410c2afad6cSKamil Konieczny help 411c2afad6cSKamil Konieczny Select this to offload Exynos from HASH MD5/SHA1/SHA256. 412c2afad6cSKamil Konieczny This will select software SHA1, MD5 and SHA256 as they are 413c2afad6cSKamil Konieczny needed for small and zero-size messages. 414c2afad6cSKamil Konieczny HASH algorithms will be disabled if EXYNOS_RNG 415c2afad6cSKamil Konieczny is enabled due to hw conflict. 416c2afad6cSKamil Konieczny 417aef7b31cSKent Yoderconfig CRYPTO_DEV_NX 4187011a122SDan Streetman bool "Support for IBM PowerPC Nest (NX) cryptographic acceleration" 4197011a122SDan Streetman depends on PPC64 420aef7b31cSKent Yoder help 4217011a122SDan Streetman This enables support for the NX hardware cryptographic accelerator 4227011a122SDan Streetman coprocessor that is in IBM PowerPC P7+ or later processors. This 4237011a122SDan Streetman does not actually enable any drivers, it only allows you to select 4247011a122SDan Streetman which acceleration type (encryption and/or compression) to enable. 425322cacceSSeth Jennings 426322cacceSSeth Jenningsif CRYPTO_DEV_NX 427322cacceSSeth Jennings source "drivers/crypto/nx/Kconfig" 428322cacceSSeth Jenningsendif 429aef7b31cSKent Yoder 43089a82ef8SCyrille Pitchenconfig CRYPTO_DEV_ATMEL_AUTHENC 431aee1f9f3SYueHaibing bool "Support for Atmel IPSEC/SSL hw accelerator" 432ceb4afb3SArnd Bergmann depends on ARCH_AT91 || COMPILE_TEST 433aee1f9f3SYueHaibing depends on CRYPTO_DEV_ATMEL_AES 43489a82ef8SCyrille Pitchen help 43589a82ef8SCyrille Pitchen Some Atmel processors can combine the AES and SHA hw accelerators 43689a82ef8SCyrille Pitchen to enhance support of IPSEC/SSL. 43789a82ef8SCyrille Pitchen Select this if you want to use the Atmel modules for 43889a82ef8SCyrille Pitchen authenc(hmac(shaX),Y(cbc)) algorithms. 43989a82ef8SCyrille Pitchen 440bd3c7b5cSNicolas Royerconfig CRYPTO_DEV_ATMEL_AES 441bd3c7b5cSNicolas Royer tristate "Support for Atmel AES hw accelerator" 44238b22cdeSRobert Marko depends on ARCH_MICROCHIP || COMPILE_TEST 443bd3c7b5cSNicolas Royer select CRYPTO_AES 444d4419548SCyrille Pitchen select CRYPTO_AEAD 445b95bba5dSEric Biggers select CRYPTO_SKCIPHER 446aee1f9f3SYueHaibing select CRYPTO_AUTHENC if CRYPTO_DEV_ATMEL_AUTHENC 447aee1f9f3SYueHaibing select CRYPTO_DEV_ATMEL_SHA if CRYPTO_DEV_ATMEL_AUTHENC 448bd3c7b5cSNicolas Royer help 449bd3c7b5cSNicolas Royer Some Atmel processors have AES hw accelerator. 450bd3c7b5cSNicolas Royer Select this if you want to use the Atmel module for 451bd3c7b5cSNicolas Royer AES algorithms. 452bd3c7b5cSNicolas Royer 453bd3c7b5cSNicolas Royer To compile this driver as a module, choose M here: the module 454bd3c7b5cSNicolas Royer will be called atmel-aes. 455bd3c7b5cSNicolas Royer 45613802005SNicolas Royerconfig CRYPTO_DEV_ATMEL_TDES 45713802005SNicolas Royer tristate "Support for Atmel DES/TDES hw accelerator" 458ceb4afb3SArnd Bergmann depends on ARCH_AT91 || COMPILE_TEST 45904007b0eSArd Biesheuvel select CRYPTO_LIB_DES 460b95bba5dSEric Biggers select CRYPTO_SKCIPHER 46113802005SNicolas Royer help 46213802005SNicolas Royer Some Atmel processors have DES/TDES hw accelerator. 46313802005SNicolas Royer Select this if you want to use the Atmel module for 46413802005SNicolas Royer DES/TDES algorithms. 46513802005SNicolas Royer 46613802005SNicolas Royer To compile this driver as a module, choose M here: the module 46713802005SNicolas Royer will be called atmel-tdes. 46813802005SNicolas Royer 469ebc82efaSNicolas Royerconfig CRYPTO_DEV_ATMEL_SHA 470d4905b38SNicolas Royer tristate "Support for Atmel SHA hw accelerator" 471ceb4afb3SArnd Bergmann depends on ARCH_AT91 || COMPILE_TEST 472596103cfSHerbert Xu select CRYPTO_HASH 473ebc82efaSNicolas Royer help 474d4905b38SNicolas Royer Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512 475d4905b38SNicolas Royer hw accelerator. 476ebc82efaSNicolas Royer Select this if you want to use the Atmel module for 477d4905b38SNicolas Royer SHA1/SHA224/SHA256/SHA384/SHA512 algorithms. 478ebc82efaSNicolas Royer 479ebc82efaSNicolas Royer To compile this driver as a module, choose M here: the module 480ebc82efaSNicolas Royer will be called atmel-sha. 481ebc82efaSNicolas Royer 482c34a3201SArd Biesheuvelconfig CRYPTO_DEV_ATMEL_I2C 483c34a3201SArd Biesheuvel tristate 484d33a23b0SArnd Bergmann select BITREVERSE 485c34a3201SArd Biesheuvel 48611105693STudor-Dan Ambarusconfig CRYPTO_DEV_ATMEL_ECC 48711105693STudor-Dan Ambarus tristate "Support for Microchip / Atmel ECC hw accelerator" 48811105693STudor-Dan Ambarus depends on I2C 489c34a3201SArd Biesheuvel select CRYPTO_DEV_ATMEL_I2C 49011105693STudor-Dan Ambarus select CRYPTO_ECDH 49111105693STudor-Dan Ambarus select CRC16 49211105693STudor-Dan Ambarus help 49311105693STudor-Dan Ambarus Microhip / Atmel ECC hw accelerator. 49411105693STudor-Dan Ambarus Select this if you want to use the Microchip / Atmel module for 49511105693STudor-Dan Ambarus ECDH algorithm. 49611105693STudor-Dan Ambarus 49711105693STudor-Dan Ambarus To compile this driver as a module, choose M here: the module 49811105693STudor-Dan Ambarus will be called atmel-ecc. 49911105693STudor-Dan Ambarus 500da001fb6SArd Biesheuvelconfig CRYPTO_DEV_ATMEL_SHA204A 501da001fb6SArd Biesheuvel tristate "Support for Microchip / Atmel SHA accelerator and RNG" 502da001fb6SArd Biesheuvel depends on I2C 503da001fb6SArd Biesheuvel select CRYPTO_DEV_ATMEL_I2C 504da001fb6SArd Biesheuvel select HW_RANDOM 5054bb02dbdSYueHaibing select CRC16 506da001fb6SArd Biesheuvel help 507da001fb6SArd Biesheuvel Microhip / Atmel SHA accelerator and RNG. 508da001fb6SArd Biesheuvel Select this if you want to use the Microchip / Atmel SHA204A 509da001fb6SArd Biesheuvel module as a random number generator. (Other functions of the 510da001fb6SArd Biesheuvel chip are currently not exposed by this driver) 511da001fb6SArd Biesheuvel 512da001fb6SArd Biesheuvel To compile this driver as a module, choose M here: the module 513da001fb6SArd Biesheuvel will be called atmel-sha204a. 514da001fb6SArd Biesheuvel 515f1147660STom Lendackyconfig CRYPTO_DEV_CCP 516720419f0SBrijesh Singh bool "Support for AMD Secure Processor" 5176c506343STom Lendacky depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM 518f1147660STom Lendacky help 519720419f0SBrijesh Singh The AMD Secure Processor provides support for the Cryptographic Coprocessor 520720419f0SBrijesh Singh (CCP) and the Platform Security Processor (PSP) devices. 521f1147660STom Lendacky 522f1147660STom Lendackyif CRYPTO_DEV_CCP 523f1147660STom Lendacky source "drivers/crypto/ccp/Kconfig" 524f1147660STom Lendackyendif 525f1147660STom Lendacky 52615b59e7cSMarek Vasutconfig CRYPTO_DEV_MXS_DCP 52715b59e7cSMarek Vasut tristate "Support for Freescale MXS DCP" 528a2712e6cSFabio Estevam depends on (ARCH_MXS || ARCH_MXC) 529dc97fa02SArnd Bergmann select STMP_DEVICE 53015b59e7cSMarek Vasut select CRYPTO_CBC 53115b59e7cSMarek Vasut select CRYPTO_ECB 53215b59e7cSMarek Vasut select CRYPTO_AES 533b95bba5dSEric Biggers select CRYPTO_SKCIPHER 534596103cfSHerbert Xu select CRYPTO_HASH 53515b59e7cSMarek Vasut help 53615b59e7cSMarek Vasut The Freescale i.MX23/i.MX28 has SHA1/SHA256 and AES128 CBC/ECB 53715b59e7cSMarek Vasut co-processor on the die. 53815b59e7cSMarek Vasut 53915b59e7cSMarek Vasut To compile this driver as a module, choose M here: the module 54015b59e7cSMarek Vasut will be called mxs-dcp. 54115b59e7cSMarek Vasut 54262ad8b5cSGeorge Cheriansource "drivers/crypto/cavium/cpt/Kconfig" 54314fa93cdSSrikanth Jampalasource "drivers/crypto/cavium/nitrox/Kconfig" 544655ff1a1SSrujanaChallasource "drivers/crypto/marvell/Kconfig" 545fbf31dd5STom Zanussisource "drivers/crypto/intel/Kconfig" 546c672752dSStanimir Varbanov 547c672752dSStanimir Varbanovconfig CRYPTO_DEV_QCE 548c672752dSStanimir Varbanov tristate "Qualcomm crypto engine accelerator" 549ee1b23d1SGeert Uytterhoeven depends on ARCH_QCOM || COMPILE_TEST 550ee1b23d1SGeert Uytterhoeven depends on HAS_IOMEM 55159e056cdSEneas U de Queiroz help 55259e056cdSEneas U de Queiroz 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 55759e056cdSEneas U de Queiroz bool 55859e056cdSEneas U de Queiroz depends on CRYPTO_DEV_QCE 559c672752dSStanimir Varbanov select CRYPTO_AES 56004007b0eSArd Biesheuvel select CRYPTO_LIB_DES 561c672752dSStanimir Varbanov select CRYPTO_ECB 562c672752dSStanimir Varbanov select CRYPTO_CBC 563c672752dSStanimir Varbanov select CRYPTO_XTS 564c672752dSStanimir Varbanov select CRYPTO_CTR 565b95bba5dSEric Biggers 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 5708ac1b9ccSSivaprakash Murugesan select CRYPTO_SHA1 5718ac1b9ccSSivaprakash Murugesan select CRYPTO_SHA256 57259e056cdSEneas U de Queiroz 5739363efb4SThara Gopinathconfig CRYPTO_DEV_QCE_AEAD 5749363efb4SThara Gopinath bool 5759363efb4SThara Gopinath depends on CRYPTO_DEV_QCE 5769363efb4SThara Gopinath select CRYPTO_AUTHENC 5779363efb4SThara Gopinath select CRYPTO_LIB_DES 5789363efb4SThara Gopinath 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 583c672752dSStanimir Varbanov help 5842e0e386aSColin Ian King This option allows to choose whether to build support for all algorithms 58559e056cdSEneas U de Queiroz (default), hashes-only, or skciphers-only. 58659e056cdSEneas U de Queiroz 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 5999363efb4SThara Gopinath 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 61259e056cdSEneas U de Queiroz Enable symmetric-key ciphers only: 61359e056cdSEneas U de Queiroz - AES (CBC, CTR, ECB, XTS) 61459e056cdSEneas U de Queiroz - 3DES (ECB, CBC) 61559e056cdSEneas U de Queiroz - DES (ECB, CBC) 61659e056cdSEneas U de Queiroz 61759e056cdSEneas U de Queiroz config CRYPTO_DEV_QCE_ENABLE_SHA 61859e056cdSEneas U de Queiroz bool "Hash/HMAC only" 61959e056cdSEneas U de Queiroz select CRYPTO_DEV_QCE_SHA 62059e056cdSEneas U de Queiroz help 62159e056cdSEneas U de Queiroz Enable hashes/HMAC algorithms only: 62259e056cdSEneas U de Queiroz - SHA1, HMAC-SHA1 62359e056cdSEneas U de Queiroz - SHA256, HMAC-SHA256 62459e056cdSEneas U de Queiroz 6259363efb4SThara Gopinath config CRYPTO_DEV_QCE_ENABLE_AEAD 6269363efb4SThara Gopinath bool "AEAD algorithms only" 6279363efb4SThara Gopinath select CRYPTO_DEV_QCE_AEAD 6289363efb4SThara Gopinath help 6299363efb4SThara Gopinath Enable AEAD algorithms only: 6309363efb4SThara Gopinath - authenc() 6319363efb4SThara Gopinath - ccm(aes) 6329363efb4SThara Gopinath - rfc4309(ccm(aes)) 63359e056cdSEneas U de Queirozendchoice 634c672752dSStanimir Varbanov 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. 645ce163ba0SEneas U de Queiroz Considering the 256-bit ciphers, software is 2-3 times faster than 646ce163ba0SEneas U de Queiroz qce at 256-bytes, 30% faster at 512, and about even at 768-bytes. 647ce163ba0SEneas U de Queiroz With 128-bit keys, the break-even point would be around 1024-bytes. 648ce163ba0SEneas U de Queiroz 649ce163ba0SEneas U de Queiroz The default is set a little lower, to 512 bytes, to balance the 650ce163ba0SEneas U de Queiroz cost in CPU usage. The minimum recommended setting is 16-bytes 651ce163ba0SEneas U de Queiroz (1 AES block), since AES-GCM will fail if you set it lower. 652ce163ba0SEneas U de Queiroz Setting this to zero will send all requests to the hardware. 653ce163ba0SEneas U de Queiroz 654ce163ba0SEneas U de Queiroz Note that 192-bit keys are not supported by the hardware and are 655ce163ba0SEneas U de Queiroz always processed by the software fallback, and all DES requests 656ce163ba0SEneas U de Queiroz are done by the hardware. 657ce163ba0SEneas U de Queiroz 658ceec5f5bSVinod Koulconfig CRYPTO_DEV_QCOM_RNG 659ceec5f5bSVinod Koul tristate "Qualcomm Random Number Generator Driver" 660ceec5f5bSVinod Koul depends on ARCH_QCOM || COMPILE_TEST 661a2786e8bSAndré Apitzsch depends on HW_RANDOM 662ceec5f5bSVinod Koul select CRYPTO_RNG 663ceec5f5bSVinod Koul help 664ceec5f5bSVinod Koul This driver provides support for the Random Number 665ceec5f5bSVinod Koul Generator hardware found on Qualcomm SoCs. 666ceec5f5bSVinod Koul 667ceec5f5bSVinod Koul To compile this driver as a module, choose M here. The 668ceec5f5bSVinod Koul module will be called qcom-rng. If unsure, say N. 669ceec5f5bSVinod Koul 67010930333SDanny Tsen#config CRYPTO_DEV_VMX 67110930333SDanny Tsen# bool "Support for VMX cryptographic acceleration instructions" 67210930333SDanny Tsen# depends on PPC64 && VSX 67310930333SDanny Tsen# help 67410930333SDanny Tsen# Support for VMX cryptographic acceleration instructions. 67510930333SDanny Tsen# 67610930333SDanny Tsen#source "drivers/crypto/vmx/Kconfig" 677d2e3ae6fSLeonidas S. Barbosa 678d358f1abSJames Hartleyconfig CRYPTO_DEV_IMGTEC_HASH 679d358f1abSJames Hartley tristate "Imagination Technologies hardware hash accelerator" 6808c98ebd7SGeert Uytterhoeven depends on MIPS || COMPILE_TEST 681d358f1abSJames Hartley select CRYPTO_MD5 682d358f1abSJames Hartley select CRYPTO_SHA1 683d358f1abSJames Hartley select CRYPTO_SHA256 684d358f1abSJames Hartley select CRYPTO_HASH 685d358f1abSJames Hartley help 686d358f1abSJames Hartley This driver interfaces with the Imagination Technologies 687d358f1abSJames Hartley hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256 688d358f1abSJames Hartley hashing algorithms. 689d358f1abSJames Hartley 690433cd2c6SZain Wangconfig CRYPTO_DEV_ROCKCHIP 691433cd2c6SZain Wang tristate "Rockchip's Cryptographic Engine driver" 692433cd2c6SZain Wang depends on OF && ARCH_ROCKCHIP 69368ef8af0SCorentin Labbe depends on PM 69468ef8af0SCorentin Labbe select CRYPTO_ECB 69568ef8af0SCorentin Labbe select CRYPTO_CBC 69668ef8af0SCorentin Labbe select CRYPTO_DES 697433cd2c6SZain Wang select CRYPTO_AES 69857d67c6eSCorentin Labbe select CRYPTO_ENGINE 69904007b0eSArd Biesheuvel select CRYPTO_LIB_DES 700bfd927ffSZain Wang select CRYPTO_MD5 701bfd927ffSZain Wang select CRYPTO_SHA1 702bfd927ffSZain Wang select CRYPTO_SHA256 703bfd927ffSZain Wang select CRYPTO_HASH 704b95bba5dSEric Biggers select CRYPTO_SKCIPHER 705433cd2c6SZain Wang 706433cd2c6SZain Wang help 707433cd2c6SZain Wang This driver interfaces with the hardware crypto accelerator. 708433cd2c6SZain Wang Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode. 709433cd2c6SZain Wang 71048d904d4SCorentin Labbeconfig CRYPTO_DEV_ROCKCHIP_DEBUG 71148d904d4SCorentin Labbe bool "Enable Rockchip crypto stats" 71248d904d4SCorentin Labbe depends on CRYPTO_DEV_ROCKCHIP 71348d904d4SCorentin Labbe depends on DEBUG_FS 71448d904d4SCorentin Labbe help 71548d904d4SCorentin Labbe Say y to enable Rockchip crypto debug stats. 71648d904d4SCorentin Labbe This will create /sys/kernel/debug/rk3288_crypto/stats for displaying 71748d904d4SCorentin Labbe the number of requests per algorithm and other internal stats. 71848d904d4SCorentin Labbe 7190880bb3bSAkhil Rconfig CRYPTO_DEV_TEGRA 7200880bb3bSAkhil R tristate "Enable Tegra Security Engine" 7210880bb3bSAkhil R depends on TEGRA_HOST1X 7220880bb3bSAkhil R select CRYPTO_ENGINE 7230880bb3bSAkhil R 7240880bb3bSAkhil R help 7250880bb3bSAkhil R Select this to enable Tegra Security Engine which accelerates various 7260880bb3bSAkhil R AES encryption/decryption and HASH algorithms. 72748d904d4SCorentin Labbe 728*8979744aSHarsh Jainconfig CRYPTO_DEV_XILINX_TRNG 729*8979744aSHarsh Jain tristate "Support for Xilinx True Random Generator" 730*8979744aSHarsh Jain depends on ZYNQMP_FIRMWARE || COMPILE_TEST 731*8979744aSHarsh Jain select CRYPTO_RNG 732*8979744aSHarsh Jain select HW_RANDOM 733*8979744aSHarsh Jain help 734*8979744aSHarsh Jain Xilinx Versal SoC driver provides kernel-side support for True Random Number 735*8979744aSHarsh Jain Generator and Pseudo random Number in CTR_DRBG mode as defined in NIST SP800-90A. 736*8979744aSHarsh Jain 737*8979744aSHarsh Jain To compile this driver as a module, choose M here: the module 738*8979744aSHarsh Jain will be called xilinx-trng. 739*8979744aSHarsh Jain 7404d96f7d4SKalyani Akulaconfig CRYPTO_DEV_ZYNQMP_AES 7414d96f7d4SKalyani Akula tristate "Support for Xilinx ZynqMP AES hw accelerator" 7424d96f7d4SKalyani Akula depends on ZYNQMP_FIRMWARE || COMPILE_TEST 7434d96f7d4SKalyani Akula select CRYPTO_AES 7444d96f7d4SKalyani Akula select CRYPTO_ENGINE 7454d96f7d4SKalyani Akula select CRYPTO_AEAD 7464d96f7d4SKalyani Akula help 7474d96f7d4SKalyani Akula Xilinx ZynqMP has AES-GCM engine used for symmetric key 7484d96f7d4SKalyani Akula encryption and decryption. This driver interfaces with AES hw 7494d96f7d4SKalyani Akula accelerator. Select this if you want to use the ZynqMP module 7504d96f7d4SKalyani Akula for AES algorithms. 7514d96f7d4SKalyani Akula 7527ecc3e34SHarshaconfig CRYPTO_DEV_ZYNQMP_SHA3 7530e03b8fdSHerbert Xu tristate "Support for Xilinx ZynqMP SHA3 hardware accelerator" 7540e03b8fdSHerbert Xu depends on ZYNQMP_FIRMWARE || COMPILE_TEST 7557ecc3e34SHarsha select CRYPTO_SHA3 7567ecc3e34SHarsha help 7577ecc3e34SHarsha Xilinx ZynqMP has SHA3 engine used for secure hash calculation. 7587ecc3e34SHarsha This driver interfaces with SHA3 hardware engine. 7597ecc3e34SHarsha Select this if you want to use the ZynqMP module 7607ecc3e34SHarsha for SHA3 hash computation. 7617ecc3e34SHarsha 76202038fd6SHariprasad Shenaisource "drivers/crypto/chelsio/Kconfig" 76302038fd6SHariprasad Shenai 764dbaf0624SGongleisource "drivers/crypto/virtio/Kconfig" 765dbaf0624SGonglei 7669d12ba86SRob Riceconfig CRYPTO_DEV_BCM_SPU 7679d12ba86SRob Rice tristate "Broadcom symmetric crypto/hash acceleration support" 7689d12ba86SRob Rice depends on ARCH_BCM_IPROC 769efc856edSraveendra padasalagi depends on MAILBOX 7709d12ba86SRob Rice default m 771ab57b335SEric Biggers select CRYPTO_AUTHENC 77204007b0eSArd Biesheuvel select CRYPTO_LIB_DES 7739d12ba86SRob Rice select CRYPTO_MD5 7749d12ba86SRob Rice select CRYPTO_SHA1 7759d12ba86SRob Rice select CRYPTO_SHA256 7769d12ba86SRob Rice select CRYPTO_SHA512 7779d12ba86SRob Rice help 7789d12ba86SRob Rice This driver provides support for Broadcom crypto acceleration using the 779a9c01cd6SArd Biesheuvel Secure Processing Unit (SPU). The SPU driver registers skcipher, 7809d12ba86SRob Rice ahash, and aead algorithms with the kernel cryptographic API. 7819d12ba86SRob Rice 782b51dbe90SFabien DESSENNEsource "drivers/crypto/stm32/Kconfig" 783b51dbe90SFabien DESSENNE 7841b44c5a6SAntoine Ténartconfig CRYPTO_DEV_SAFEXCEL 7851b44c5a6SAntoine Ténart tristate "Inside Secure's SafeXcel cryptographic engine driver" 7866dc0e310SBrendan Higgins depends on (OF || PCI || COMPILE_TEST) && HAS_IOMEM 787363a90c2SArd Biesheuvel select CRYPTO_LIB_AES 788f6beaea3SAntoine Tenart select CRYPTO_AUTHENC 789b95bba5dSEric Biggers select CRYPTO_SKCIPHER 79004007b0eSArd Biesheuvel select CRYPTO_LIB_DES 7911b44c5a6SAntoine Ténart select CRYPTO_HASH 7921b44c5a6SAntoine Ténart select CRYPTO_HMAC 793293f89cfSOfer Heifetz select CRYPTO_MD5 7941b44c5a6SAntoine Ténart select CRYPTO_SHA1 7951b44c5a6SAntoine Ténart select CRYPTO_SHA256 7961b44c5a6SAntoine Ténart select CRYPTO_SHA512 797fc0f82b1SPascal van Leeuwen select CRYPTO_CHACHA20POLY1305 7981d448f27SPascal van Leeuwen select CRYPTO_SHA3 7991b44c5a6SAntoine Ténart help 8000f6e5c82SPascal van Leeuwen This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic 8010f6e5c82SPascal van Leeuwen engines designed by Inside Secure. It currently accelerates DES, 3DES and 8020f6e5c82SPascal van Leeuwen AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256, 8030f6e5c82SPascal van Leeuwen SHA384 and SHA512 hash algorithms for both basic hash and HMAC. 8040f6e5c82SPascal van Leeuwen Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations. 8051b44c5a6SAntoine Ténart 806a21eb94fSLars Perssonconfig CRYPTO_DEV_ARTPEC6 807a21eb94fSLars Persson tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration." 808a21eb94fSLars Persson depends on ARM && (ARCH_ARTPEC || COMPILE_TEST) 809a21eb94fSLars Persson depends on OF 810a21eb94fSLars Persson select CRYPTO_AEAD 811a21eb94fSLars Persson select CRYPTO_AES 812a21eb94fSLars Persson select CRYPTO_ALGAPI 813b95bba5dSEric Biggers select CRYPTO_SKCIPHER 814a21eb94fSLars Persson select CRYPTO_CTR 815a21eb94fSLars Persson select CRYPTO_HASH 816a21eb94fSLars Persson select CRYPTO_SHA1 817a21eb94fSLars Persson select CRYPTO_SHA256 818a21eb94fSLars Persson select CRYPTO_SHA512 819a21eb94fSLars Persson help 820a21eb94fSLars Persson Enables the driver for the on-chip crypto accelerator 821a21eb94fSLars Persson of Axis ARTPEC SoCs. 822a21eb94fSLars Persson 823a21eb94fSLars Persson To compile this driver as a module, choose M here. 824a21eb94fSLars Persson 8254c3f9727SGilad Ben-Yossefconfig CRYPTO_DEV_CCREE 8264c3f9727SGilad Ben-Yossef tristate "Support for ARM TrustZone CryptoCell family of security processors" 8274c3f9727SGilad Ben-Yossef depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA 828ed490503SHerbert Xu depends on HAS_IOMEM 8294c3f9727SGilad Ben-Yossef select CRYPTO_HASH 830b95bba5dSEric Biggers select CRYPTO_SKCIPHER 83104007b0eSArd Biesheuvel select CRYPTO_LIB_DES 8324c3f9727SGilad Ben-Yossef select CRYPTO_AEAD 8334c3f9727SGilad Ben-Yossef select CRYPTO_AUTHENC 8344c3f9727SGilad Ben-Yossef select CRYPTO_SHA1 8354c3f9727SGilad Ben-Yossef select CRYPTO_MD5 8364c3f9727SGilad Ben-Yossef select CRYPTO_SHA256 8374c3f9727SGilad Ben-Yossef select CRYPTO_SHA512 8384c3f9727SGilad Ben-Yossef select CRYPTO_HMAC 8394c3f9727SGilad Ben-Yossef select CRYPTO_AES 8404c3f9727SGilad Ben-Yossef select CRYPTO_CBC 8414c3f9727SGilad Ben-Yossef select CRYPTO_ECB 8424c3f9727SGilad Ben-Yossef select CRYPTO_CTR 8434c3f9727SGilad Ben-Yossef select CRYPTO_XTS 8442ae6feb1STianjia Zhang select CRYPTO_SM4_GENERIC 8452ae6feb1STianjia Zhang select CRYPTO_SM3_GENERIC 8464c3f9727SGilad Ben-Yossef help 84727b3b22dSGilad Ben-Yossef Say 'Y' to enable a driver for the REE interface of the Arm 84827b3b22dSGilad Ben-Yossef TrustZone CryptoCell family of processors. Currently the 8491c876a90SGilad Ben-Yossef CryptoCell 713, 703, 712, 710 and 630 are supported. 8504c3f9727SGilad Ben-Yossef Choose this if you wish to use hardware acceleration of 8514c3f9727SGilad Ben-Yossef cryptographic operations on the system REE. 8524c3f9727SGilad Ben-Yossef If unsure say Y. 8534c3f9727SGilad Ben-Yossef 854915e4e84SJonathan Cameronsource "drivers/crypto/hisilicon/Kconfig" 855766b2d72SQunqin Zhaosource "drivers/crypto/loongson/Kconfig" 856915e4e84SJonathan Cameron 85748fe583fSCorentin Labbesource "drivers/crypto/amlogic/Kconfig" 85848fe583fSCorentin Labbe 8597694b6caSKeerthyconfig CRYPTO_DEV_SA2UL 8607694b6caSKeerthy tristate "Support for TI security accelerator" 8617694b6caSKeerthy depends on ARCH_K3 || COMPILE_TEST 8627694b6caSKeerthy select CRYPTO_AES 8637694b6caSKeerthy select CRYPTO_ALGAPI 86461f033baSHerbert Xu select CRYPTO_AUTHENC 8658832023eSSuman Anna select CRYPTO_DES 866bfe8fe93SRandy Dunlap select CRYPTO_SHA1 867bfe8fe93SRandy Dunlap select CRYPTO_SHA256 868bfe8fe93SRandy Dunlap select CRYPTO_SHA512 8697694b6caSKeerthy select HW_RANDOM 8707694b6caSKeerthy select SG_SPLIT 8717694b6caSKeerthy help 8727694b6caSKeerthy K3 devices include a security accelerator engine that may be 8737694b6caSKeerthy used for crypto offload. Select this if you want to use hardware 8747694b6caSKeerthy acceleration for cryptographic algorithms on these devices. 8757694b6caSKeerthy 876108713a7SNeal Liusource "drivers/crypto/aspeed/Kconfig" 87742ef0e94SJia Jie Hosource "drivers/crypto/starfive/Kconfig" 8789739f5f9SChristian Marangisource "drivers/crypto/inside-secure/eip93/Kconfig" 87952f641bcST Prathamsource "drivers/crypto/ti/Kconfig" 88088574332SMike Healy 881b511431dSJan Engelhardtendif # CRYPTO_HW 882