Kconfig 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menuconfig CRYPTO_HW
  3. bool "Hardware crypto devices"
  4. default y
  5. ---help---
  6. Say Y here to get to see options for hardware crypto devices and
  7. processors. This option alone does not add any kernel code.
  8. If you say N, all options in this submenu will be skipped and disabled.
  9. if CRYPTO_HW
  10. config CRYPTO_DEV_PADLOCK
  11. tristate "Support for VIA PadLock ACE"
  12. depends on X86 && !UML
  13. help
  14. Some VIA processors come with an integrated crypto engine
  15. (so called VIA PadLock ACE, Advanced Cryptography Engine)
  16. that provides instructions for very fast cryptographic
  17. operations with supported algorithms.
  18. The instructions are used only when the CPU supports them.
  19. Otherwise software encryption is used.
  20. config CRYPTO_DEV_PADLOCK_AES
  21. tristate "PadLock driver for AES algorithm"
  22. depends on CRYPTO_DEV_PADLOCK
  23. select CRYPTO_BLKCIPHER
  24. select CRYPTO_LIB_AES
  25. help
  26. Use VIA PadLock for AES algorithm.
  27. Available in VIA C3 and newer CPUs.
  28. If unsure say M. The compiled module will be
  29. called padlock-aes.
  30. config CRYPTO_DEV_PADLOCK_SHA
  31. tristate "PadLock driver for SHA1 and SHA256 algorithms"
  32. depends on CRYPTO_DEV_PADLOCK
  33. select CRYPTO_HASH
  34. select CRYPTO_SHA1
  35. select CRYPTO_SHA256
  36. help
  37. Use VIA PadLock for SHA1/SHA256 algorithms.
  38. Available in VIA C7 and newer processors.
  39. If unsure say M. The compiled module will be
  40. called padlock-sha.
  41. config CRYPTO_DEV_GEODE
  42. tristate "Support for the Geode LX AES engine"
  43. depends on X86_32 && PCI
  44. select CRYPTO_ALGAPI
  45. select CRYPTO_BLKCIPHER
  46. help
  47. Say 'Y' here to use the AMD Geode LX processor on-board AES
  48. engine for the CryptoAPI AES algorithm.
  49. To compile this driver as a module, choose M here: the module
  50. will be called geode-aes.
  51. config ZCRYPT
  52. tristate "Support for s390 cryptographic adapters"
  53. depends on S390
  54. select HW_RANDOM
  55. help
  56. Select this option if you want to enable support for
  57. s390 cryptographic adapters like:
  58. + PCI-X Cryptographic Coprocessor (PCIXCC)
  59. + Crypto Express 2,3,4 or 5 Coprocessor (CEXxC)
  60. + Crypto Express 2,3,4 or 5 Accelerator (CEXxA)
  61. + Crypto Express 4 or 5 EP11 Coprocessor (CEXxP)
  62. config ZCRYPT_MULTIDEVNODES
  63. bool "Support for multiple zcrypt device nodes"
  64. default y
  65. depends on S390
  66. depends on ZCRYPT
  67. help
  68. With this option enabled the zcrypt device driver can
  69. provide multiple devices nodes in /dev. Each device
  70. node can get customized to limit access and narrow
  71. down the use of the available crypto hardware.
  72. config PKEY
  73. tristate "Kernel API for protected key handling"
  74. depends on S390
  75. depends on ZCRYPT
  76. help
  77. With this option enabled the pkey kernel module provides an API
  78. for creation and handling of protected keys. Other parts of the
  79. kernel or userspace applications may use these functions.
  80. Select this option if you want to enable the kernel and userspace
  81. API for proteced key handling.
  82. Please note that creation of protected keys from secure keys
  83. requires to have at least one CEX card in coprocessor mode
  84. available at runtime.
  85. config CRYPTO_PAES_S390
  86. tristate "PAES cipher algorithms"
  87. depends on S390
  88. depends on ZCRYPT
  89. depends on PKEY
  90. select CRYPTO_ALGAPI
  91. select CRYPTO_BLKCIPHER
  92. help
  93. This is the s390 hardware accelerated implementation of the
  94. AES cipher algorithms for use with protected key.
  95. Select this option if you want to use the paes cipher
  96. for example to use protected key encrypted devices.
  97. config CRYPTO_SHA1_S390
  98. tristate "SHA1 digest algorithm"
  99. depends on S390
  100. select CRYPTO_HASH
  101. help
  102. This is the s390 hardware accelerated implementation of the
  103. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
  104. It is available as of z990.
  105. config CRYPTO_SHA256_S390
  106. tristate "SHA256 digest algorithm"
  107. depends on S390
  108. select CRYPTO_HASH
  109. help
  110. This is the s390 hardware accelerated implementation of the
  111. SHA256 secure hash standard (DFIPS 180-2).
  112. It is available as of z9.
  113. config CRYPTO_SHA512_S390
  114. tristate "SHA384 and SHA512 digest algorithm"
  115. depends on S390
  116. select CRYPTO_HASH
  117. help
  118. This is the s390 hardware accelerated implementation of the
  119. SHA512 secure hash standard.
  120. It is available as of z10.
  121. config CRYPTO_SHA3_256_S390
  122. tristate "SHA3_224 and SHA3_256 digest algorithm"
  123. depends on S390
  124. select CRYPTO_HASH
  125. help
  126. This is the s390 hardware accelerated implementation of the
  127. SHA3_256 secure hash standard.
  128. It is available as of z14.
  129. config CRYPTO_SHA3_512_S390
  130. tristate "SHA3_384 and SHA3_512 digest algorithm"
  131. depends on S390
  132. select CRYPTO_HASH
  133. help
  134. This is the s390 hardware accelerated implementation of the
  135. SHA3_512 secure hash standard.
  136. It is available as of z14.
  137. config CRYPTO_DES_S390
  138. tristate "DES and Triple DES cipher algorithms"
  139. depends on S390
  140. select CRYPTO_ALGAPI
  141. select CRYPTO_BLKCIPHER
  142. select CRYPTO_LIB_DES
  143. help
  144. This is the s390 hardware accelerated implementation of the
  145. DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
  146. As of z990 the ECB and CBC mode are hardware accelerated.
  147. As of z196 the CTR mode is hardware accelerated.
  148. config CRYPTO_AES_S390
  149. tristate "AES cipher algorithms"
  150. depends on S390
  151. select CRYPTO_ALGAPI
  152. select CRYPTO_BLKCIPHER
  153. help
  154. This is the s390 hardware accelerated implementation of the
  155. AES cipher algorithms (FIPS-197).
  156. As of z9 the ECB and CBC modes are hardware accelerated
  157. for 128 bit keys.
  158. As of z10 the ECB and CBC modes are hardware accelerated
  159. for all AES key sizes.
  160. As of z196 the CTR mode is hardware accelerated for all AES
  161. key sizes and XTS mode is hardware accelerated for 256 and
  162. 512 bit keys.
  163. config S390_PRNG
  164. tristate "Pseudo random number generator device driver"
  165. depends on S390
  166. default "m"
  167. help
  168. Select this option if you want to use the s390 pseudo random number
  169. generator. The PRNG is part of the cryptographic processor functions
  170. and uses triple-DES to generate secure random numbers like the
  171. ANSI X9.17 standard. User-space programs access the
  172. pseudo-random-number device through the char device /dev/prandom.
  173. It is available as of z9.
  174. config CRYPTO_GHASH_S390
  175. tristate "GHASH hash function"
  176. depends on S390
  177. select CRYPTO_HASH
  178. help
  179. This is the s390 hardware accelerated implementation of GHASH,
  180. the hash function used in GCM (Galois/Counter mode).
  181. It is available as of z196.
  182. config CRYPTO_CRC32_S390
  183. tristate "CRC-32 algorithms"
  184. depends on S390
  185. select CRYPTO_HASH
  186. select CRC32
  187. help
  188. Select this option if you want to use hardware accelerated
  189. implementations of CRC algorithms. With this option, you
  190. can optimize the computation of CRC-32 (IEEE 802.3 Ethernet)
  191. and CRC-32C (Castagnoli).
  192. It is available with IBM z13 or later.
  193. config CRYPTO_DEV_MARVELL_CESA
  194. tristate "Marvell's Cryptographic Engine driver"
  195. depends on PLAT_ORION || ARCH_MVEBU
  196. select CRYPTO_LIB_AES
  197. select CRYPTO_LIB_DES
  198. select CRYPTO_BLKCIPHER
  199. select CRYPTO_HASH
  200. select SRAM
  201. help
  202. This driver allows you to utilize the Cryptographic Engines and
  203. Security Accelerator (CESA) which can be found on MVEBU and ORION
  204. platforms.
  205. This driver supports CPU offload through DMA transfers.
  206. config CRYPTO_DEV_NIAGARA2
  207. tristate "Niagara2 Stream Processing Unit driver"
  208. select CRYPTO_LIB_DES
  209. select CRYPTO_BLKCIPHER
  210. select CRYPTO_HASH
  211. select CRYPTO_MD5
  212. select CRYPTO_SHA1
  213. select CRYPTO_SHA256
  214. depends on SPARC64
  215. help
  216. Each core of a Niagara2 processor contains a Stream
  217. Processing Unit, which itself contains several cryptographic
  218. sub-units. One set provides the Modular Arithmetic Unit,
  219. used for SSL offload. The other set provides the Cipher
  220. Group, which can perform encryption, decryption, hashing,
  221. checksumming, and raw copies.
  222. config CRYPTO_DEV_HIFN_795X
  223. tristate "Driver HIFN 795x crypto accelerator chips"
  224. select CRYPTO_LIB_DES
  225. select CRYPTO_BLKCIPHER
  226. select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG
  227. depends on PCI
  228. depends on !ARCH_DMA_ADDR_T_64BIT
  229. help
  230. This option allows you to have support for HIFN 795x crypto adapters.
  231. config CRYPTO_DEV_HIFN_795X_RNG
  232. bool "HIFN 795x random number generator"
  233. depends on CRYPTO_DEV_HIFN_795X
  234. help
  235. Select this option if you want to enable the random number generator
  236. on the HIFN 795x crypto adapters.
  237. source "drivers/crypto/caam/Kconfig"
  238. config CRYPTO_DEV_TALITOS
  239. tristate "Talitos Freescale Security Engine (SEC)"
  240. select CRYPTO_AEAD
  241. select CRYPTO_AUTHENC
  242. select CRYPTO_BLKCIPHER
  243. select CRYPTO_HASH
  244. select CRYPTO_LIB_DES
  245. select HW_RANDOM
  246. depends on FSL_SOC
  247. help
  248. Say 'Y' here to use the Freescale Security Engine (SEC)
  249. to offload cryptographic algorithm computation.
  250. The Freescale SEC is present on PowerQUICC 'E' processors, such
  251. as the MPC8349E and MPC8548E.
  252. To compile this driver as a module, choose M here: the module
  253. will be called talitos.
  254. config CRYPTO_DEV_TALITOS1
  255. bool "SEC1 (SEC 1.0 and SEC Lite 1.2)"
  256. depends on CRYPTO_DEV_TALITOS
  257. depends on PPC_8xx || PPC_82xx
  258. default y
  259. help
  260. Say 'Y' here to use the Freescale Security Engine (SEC) version 1.0
  261. found on MPC82xx or the Freescale Security Engine (SEC Lite)
  262. version 1.2 found on MPC8xx
  263. config CRYPTO_DEV_TALITOS2
  264. bool "SEC2+ (SEC version 2.0 or upper)"
  265. depends on CRYPTO_DEV_TALITOS
  266. default y if !PPC_8xx
  267. help
  268. Say 'Y' here to use the Freescale Security Engine (SEC)
  269. version 2 and following as found on MPC83xx, MPC85xx, etc ...
  270. config CRYPTO_DEV_IXP4XX
  271. tristate "Driver for IXP4xx crypto hardware acceleration"
  272. depends on ARCH_IXP4XX && IXP4XX_QMGR && IXP4XX_NPE
  273. select CRYPTO_LIB_DES
  274. select CRYPTO_AEAD
  275. select CRYPTO_AUTHENC
  276. select CRYPTO_BLKCIPHER
  277. help
  278. Driver for the IXP4xx NPE crypto engine.
  279. config CRYPTO_DEV_PPC4XX
  280. tristate "Driver AMCC PPC4xx crypto accelerator"
  281. depends on PPC && 4xx
  282. select CRYPTO_HASH
  283. select CRYPTO_AEAD
  284. select CRYPTO_AES
  285. select CRYPTO_LIB_AES
  286. select CRYPTO_CCM
  287. select CRYPTO_CTR
  288. select CRYPTO_GCM
  289. select CRYPTO_BLKCIPHER
  290. help
  291. This option allows you to have support for AMCC crypto acceleration.
  292. config HW_RANDOM_PPC4XX
  293. bool "PowerPC 4xx generic true random number generator support"
  294. depends on CRYPTO_DEV_PPC4XX && HW_RANDOM
  295. default y
  296. ---help---
  297. This option provides the kernel-side support for the TRNG hardware
  298. found in the security function of some PowerPC 4xx SoCs.
  299. config CRYPTO_DEV_OMAP
  300. tristate "Support for OMAP crypto HW accelerators"
  301. depends on ARCH_OMAP2PLUS
  302. help
  303. OMAP processors have various crypto HW accelerators. Select this if
  304. you want to use the OMAP modules for any of the crypto algorithms.
  305. if CRYPTO_DEV_OMAP
  306. config CRYPTO_DEV_OMAP_SHAM
  307. tristate "Support for OMAP MD5/SHA1/SHA2 hw accelerator"
  308. depends on ARCH_OMAP2PLUS
  309. select CRYPTO_SHA1
  310. select CRYPTO_MD5
  311. select CRYPTO_SHA256
  312. select CRYPTO_SHA512
  313. select CRYPTO_HMAC
  314. help
  315. OMAP processors have MD5/SHA1/SHA2 hw accelerator. Select this if you
  316. want to use the OMAP module for MD5/SHA1/SHA2 algorithms.
  317. config CRYPTO_DEV_OMAP_AES
  318. tristate "Support for OMAP AES hw engine"
  319. depends on ARCH_OMAP2 || ARCH_OMAP3 || ARCH_OMAP2PLUS
  320. select CRYPTO_AES
  321. select CRYPTO_BLKCIPHER
  322. select CRYPTO_ENGINE
  323. select CRYPTO_CBC
  324. select CRYPTO_ECB
  325. select CRYPTO_CTR
  326. select CRYPTO_AEAD
  327. help
  328. OMAP processors have AES module accelerator. Select this if you
  329. want to use the OMAP module for AES algorithms.
  330. config CRYPTO_DEV_OMAP_DES
  331. tristate "Support for OMAP DES/3DES hw engine"
  332. depends on ARCH_OMAP2PLUS
  333. select CRYPTO_LIB_DES
  334. select CRYPTO_BLKCIPHER
  335. select CRYPTO_ENGINE
  336. help
  337. OMAP processors have DES/3DES module accelerator. Select this if you
  338. want to use the OMAP module for DES and 3DES algorithms. Currently
  339. the ECB and CBC modes of operation are supported by the driver. Also
  340. accesses made on unaligned boundaries are supported.
  341. endif # CRYPTO_DEV_OMAP
  342. config CRYPTO_DEV_PICOXCELL
  343. tristate "Support for picoXcell IPSEC and Layer2 crypto engines"
  344. depends on (ARCH_PICOXCELL || COMPILE_TEST) && HAVE_CLK
  345. select CRYPTO_AEAD
  346. select CRYPTO_AES
  347. select CRYPTO_AUTHENC
  348. select CRYPTO_BLKCIPHER
  349. select CRYPTO_LIB_DES
  350. select CRYPTO_CBC
  351. select CRYPTO_ECB
  352. select CRYPTO_SEQIV
  353. help
  354. This option enables support for the hardware offload engines in the
  355. Picochip picoXcell SoC devices. Select this for IPSEC ESP offload
  356. and for 3gpp Layer 2 ciphering support.
  357. Saying m here will build a module named picoxcell_crypto.
  358. config CRYPTO_DEV_SAHARA
  359. tristate "Support for SAHARA crypto accelerator"
  360. depends on ARCH_MXC && OF
  361. select CRYPTO_BLKCIPHER
  362. select CRYPTO_AES
  363. select CRYPTO_ECB
  364. help
  365. This option enables support for the SAHARA HW crypto accelerator
  366. found in some Freescale i.MX chips.
  367. config CRYPTO_DEV_EXYNOS_RNG
  368. tristate "EXYNOS HW pseudo random number generator support"
  369. depends on ARCH_EXYNOS || COMPILE_TEST
  370. depends on HAS_IOMEM
  371. select CRYPTO_RNG
  372. ---help---
  373. This driver provides kernel-side support through the
  374. cryptographic API for the pseudo random number generator hardware
  375. found on Exynos SoCs.
  376. To compile this driver as a module, choose M here: the
  377. module will be called exynos-rng.
  378. If unsure, say Y.
  379. config CRYPTO_DEV_S5P
  380. tristate "Support for Samsung S5PV210/Exynos crypto accelerator"
  381. depends on ARCH_S5PV210 || ARCH_EXYNOS || COMPILE_TEST
  382. depends on HAS_IOMEM
  383. select CRYPTO_AES
  384. select CRYPTO_BLKCIPHER
  385. help
  386. This option allows you to have support for S5P crypto acceleration.
  387. Select this to offload Samsung S5PV210 or S5PC110, Exynos from AES
  388. algorithms execution.
  389. config CRYPTO_DEV_EXYNOS_HASH
  390. bool "Support for Samsung Exynos HASH accelerator"
  391. depends on CRYPTO_DEV_S5P
  392. depends on !CRYPTO_DEV_EXYNOS_RNG && CRYPTO_DEV_EXYNOS_RNG!=m
  393. select CRYPTO_SHA1
  394. select CRYPTO_MD5
  395. select CRYPTO_SHA256
  396. help
  397. Select this to offload Exynos from HASH MD5/SHA1/SHA256.
  398. This will select software SHA1, MD5 and SHA256 as they are
  399. needed for small and zero-size messages.
  400. HASH algorithms will be disabled if EXYNOS_RNG
  401. is enabled due to hw conflict.
  402. config CRYPTO_DEV_NX
  403. bool "Support for IBM PowerPC Nest (NX) cryptographic acceleration"
  404. depends on PPC64
  405. help
  406. This enables support for the NX hardware cryptographic accelerator
  407. coprocessor that is in IBM PowerPC P7+ or later processors. This
  408. does not actually enable any drivers, it only allows you to select
  409. which acceleration type (encryption and/or compression) to enable.
  410. if CRYPTO_DEV_NX
  411. source "drivers/crypto/nx/Kconfig"
  412. endif
  413. config CRYPTO_DEV_UX500
  414. tristate "Driver for ST-Ericsson UX500 crypto hardware acceleration"
  415. depends on ARCH_U8500
  416. help
  417. Driver for ST-Ericsson UX500 crypto engine.
  418. if CRYPTO_DEV_UX500
  419. source "drivers/crypto/ux500/Kconfig"
  420. endif # if CRYPTO_DEV_UX500
  421. config CRYPTO_DEV_ATMEL_AUTHENC
  422. bool "Support for Atmel IPSEC/SSL hw accelerator"
  423. depends on ARCH_AT91 || COMPILE_TEST
  424. depends on CRYPTO_DEV_ATMEL_AES
  425. help
  426. Some Atmel processors can combine the AES and SHA hw accelerators
  427. to enhance support of IPSEC/SSL.
  428. Select this if you want to use the Atmel modules for
  429. authenc(hmac(shaX),Y(cbc)) algorithms.
  430. config CRYPTO_DEV_ATMEL_AES
  431. tristate "Support for Atmel AES hw accelerator"
  432. depends on ARCH_AT91 || COMPILE_TEST
  433. select CRYPTO_AES
  434. select CRYPTO_AEAD
  435. select CRYPTO_BLKCIPHER
  436. select CRYPTO_AUTHENC if CRYPTO_DEV_ATMEL_AUTHENC
  437. select CRYPTO_DEV_ATMEL_SHA if CRYPTO_DEV_ATMEL_AUTHENC
  438. help
  439. Some Atmel processors have AES hw accelerator.
  440. Select this if you want to use the Atmel module for
  441. AES algorithms.
  442. To compile this driver as a module, choose M here: the module
  443. will be called atmel-aes.
  444. config CRYPTO_DEV_ATMEL_TDES
  445. tristate "Support for Atmel DES/TDES hw accelerator"
  446. depends on ARCH_AT91 || COMPILE_TEST
  447. select CRYPTO_LIB_DES
  448. select CRYPTO_BLKCIPHER
  449. help
  450. Some Atmel processors have DES/TDES hw accelerator.
  451. Select this if you want to use the Atmel module for
  452. DES/TDES algorithms.
  453. To compile this driver as a module, choose M here: the module
  454. will be called atmel-tdes.
  455. config CRYPTO_DEV_ATMEL_SHA
  456. tristate "Support for Atmel SHA hw accelerator"
  457. depends on ARCH_AT91 || COMPILE_TEST
  458. select CRYPTO_HASH
  459. help
  460. Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512
  461. hw accelerator.
  462. Select this if you want to use the Atmel module for
  463. SHA1/SHA224/SHA256/SHA384/SHA512 algorithms.
  464. To compile this driver as a module, choose M here: the module
  465. will be called atmel-sha.
  466. config CRYPTO_DEV_ATMEL_I2C
  467. tristate
  468. select BITREVERSE
  469. config CRYPTO_DEV_ATMEL_ECC
  470. tristate "Support for Microchip / Atmel ECC hw accelerator"
  471. depends on I2C
  472. select CRYPTO_DEV_ATMEL_I2C
  473. select CRYPTO_ECDH
  474. select CRC16
  475. help
  476. Microhip / Atmel ECC hw accelerator.
  477. Select this if you want to use the Microchip / Atmel module for
  478. ECDH algorithm.
  479. To compile this driver as a module, choose M here: the module
  480. will be called atmel-ecc.
  481. config CRYPTO_DEV_ATMEL_SHA204A
  482. tristate "Support for Microchip / Atmel SHA accelerator and RNG"
  483. depends on I2C
  484. select CRYPTO_DEV_ATMEL_I2C
  485. select HW_RANDOM
  486. select CRC16
  487. help
  488. Microhip / Atmel SHA accelerator and RNG.
  489. Select this if you want to use the Microchip / Atmel SHA204A
  490. module as a random number generator. (Other functions of the
  491. chip are currently not exposed by this driver)
  492. To compile this driver as a module, choose M here: the module
  493. will be called atmel-sha204a.
  494. config CRYPTO_DEV_CCP
  495. bool "Support for AMD Secure Processor"
  496. depends on ((X86 && PCI) || (ARM64 && (OF_ADDRESS || ACPI))) && HAS_IOMEM
  497. help
  498. The AMD Secure Processor provides support for the Cryptographic Coprocessor
  499. (CCP) and the Platform Security Processor (PSP) devices.
  500. if CRYPTO_DEV_CCP
  501. source "drivers/crypto/ccp/Kconfig"
  502. endif
  503. config CRYPTO_DEV_MXS_DCP
  504. tristate "Support for Freescale MXS DCP"
  505. depends on (ARCH_MXS || ARCH_MXC)
  506. select STMP_DEVICE
  507. select CRYPTO_CBC
  508. select CRYPTO_ECB
  509. select CRYPTO_AES
  510. select CRYPTO_BLKCIPHER
  511. select CRYPTO_HASH
  512. help
  513. The Freescale i.MX23/i.MX28 has SHA1/SHA256 and AES128 CBC/ECB
  514. co-processor on the die.
  515. To compile this driver as a module, choose M here: the module
  516. will be called mxs-dcp.
  517. source "drivers/crypto/qat/Kconfig"
  518. source "drivers/crypto/cavium/cpt/Kconfig"
  519. source "drivers/crypto/cavium/nitrox/Kconfig"
  520. config CRYPTO_DEV_CAVIUM_ZIP
  521. tristate "Cavium ZIP driver"
  522. depends on PCI && 64BIT && (ARM64 || COMPILE_TEST)
  523. ---help---
  524. Select this option if you want to enable compression/decompression
  525. acceleration on Cavium's ARM based SoCs
  526. config CRYPTO_DEV_QCE
  527. tristate "Qualcomm crypto engine accelerator"
  528. depends on ARCH_QCOM || COMPILE_TEST
  529. depends on HAS_IOMEM
  530. select CRYPTO_AES
  531. select CRYPTO_LIB_DES
  532. select CRYPTO_ECB
  533. select CRYPTO_CBC
  534. select CRYPTO_XTS
  535. select CRYPTO_CTR
  536. select CRYPTO_BLKCIPHER
  537. help
  538. This driver supports Qualcomm crypto engine accelerator
  539. hardware. To compile this driver as a module, choose M here. The
  540. module will be called qcrypto.
  541. config CRYPTO_DEV_QCOM_RNG
  542. tristate "Qualcomm Random Number Generator Driver"
  543. depends on ARCH_QCOM || COMPILE_TEST
  544. select CRYPTO_RNG
  545. help
  546. This driver provides support for the Random Number
  547. Generator hardware found on Qualcomm SoCs.
  548. To compile this driver as a module, choose M here. The
  549. module will be called qcom-rng. If unsure, say N.
  550. config CRYPTO_DEV_VMX
  551. bool "Support for VMX cryptographic acceleration instructions"
  552. depends on PPC64 && VSX
  553. help
  554. Support for VMX cryptographic acceleration instructions.
  555. source "drivers/crypto/vmx/Kconfig"
  556. config CRYPTO_DEV_IMGTEC_HASH
  557. tristate "Imagination Technologies hardware hash accelerator"
  558. depends on MIPS || COMPILE_TEST
  559. select CRYPTO_MD5
  560. select CRYPTO_SHA1
  561. select CRYPTO_SHA256
  562. select CRYPTO_HASH
  563. help
  564. This driver interfaces with the Imagination Technologies
  565. hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
  566. hashing algorithms.
  567. config CRYPTO_DEV_SUN4I_SS
  568. tristate "Support for Allwinner Security System cryptographic accelerator"
  569. depends on ARCH_SUNXI && !64BIT
  570. select CRYPTO_MD5
  571. select CRYPTO_SHA1
  572. select CRYPTO_AES
  573. select CRYPTO_LIB_DES
  574. select CRYPTO_BLKCIPHER
  575. help
  576. Some Allwinner SoC have a crypto accelerator named
  577. Security System. Select this if you want to use it.
  578. The Security System handle AES/DES/3DES ciphers in CBC mode
  579. and SHA1 and MD5 hash algorithms.
  580. To compile this driver as a module, choose M here: the module
  581. will be called sun4i-ss.
  582. config CRYPTO_DEV_SUN4I_SS_PRNG
  583. bool "Support for Allwinner Security System PRNG"
  584. depends on CRYPTO_DEV_SUN4I_SS
  585. select CRYPTO_RNG
  586. help
  587. Select this option if you want to provide kernel-side support for
  588. the Pseudo-Random Number Generator found in the Security System.
  589. config CRYPTO_DEV_ROCKCHIP
  590. tristate "Rockchip's Cryptographic Engine driver"
  591. depends on OF && ARCH_ROCKCHIP
  592. select CRYPTO_AES
  593. select CRYPTO_LIB_DES
  594. select CRYPTO_MD5
  595. select CRYPTO_SHA1
  596. select CRYPTO_SHA256
  597. select CRYPTO_HASH
  598. select CRYPTO_BLKCIPHER
  599. help
  600. This driver interfaces with the hardware crypto accelerator.
  601. Supporting cbc/ecb chainmode, and aes/des/des3_ede cipher mode.
  602. config CRYPTO_DEV_MEDIATEK
  603. tristate "MediaTek's EIP97 Cryptographic Engine driver"
  604. depends on (ARM && ARCH_MEDIATEK) || COMPILE_TEST
  605. select CRYPTO_AES
  606. select CRYPTO_AEAD
  607. select CRYPTO_BLKCIPHER
  608. select CRYPTO_CTR
  609. select CRYPTO_SHA1
  610. select CRYPTO_SHA256
  611. select CRYPTO_SHA512
  612. select CRYPTO_HMAC
  613. help
  614. This driver allows you to utilize the hardware crypto accelerator
  615. EIP97 which can be found on the MT7623 MT2701, MT8521p, etc ....
  616. Select this if you want to use it for AES/SHA1/SHA2 algorithms.
  617. source "drivers/crypto/chelsio/Kconfig"
  618. source "drivers/crypto/virtio/Kconfig"
  619. config CRYPTO_DEV_BCM_SPU
  620. tristate "Broadcom symmetric crypto/hash acceleration support"
  621. depends on ARCH_BCM_IPROC
  622. depends on MAILBOX
  623. default m
  624. select CRYPTO_AUTHENC
  625. select CRYPTO_LIB_DES
  626. select CRYPTO_MD5
  627. select CRYPTO_SHA1
  628. select CRYPTO_SHA256
  629. select CRYPTO_SHA512
  630. help
  631. This driver provides support for Broadcom crypto acceleration using the
  632. Secure Processing Unit (SPU). The SPU driver registers ablkcipher,
  633. ahash, and aead algorithms with the kernel cryptographic API.
  634. source "drivers/crypto/stm32/Kconfig"
  635. config CRYPTO_DEV_SAFEXCEL
  636. tristate "Inside Secure's SafeXcel cryptographic engine driver"
  637. depends on (OF || PCI || COMPILE_TEST) && HAS_IOMEM
  638. select CRYPTO_LIB_AES
  639. select CRYPTO_AUTHENC
  640. select CRYPTO_BLKCIPHER
  641. select CRYPTO_LIB_DES
  642. select CRYPTO_HASH
  643. select CRYPTO_HMAC
  644. select CRYPTO_MD5
  645. select CRYPTO_SHA1
  646. select CRYPTO_SHA256
  647. select CRYPTO_SHA512
  648. help
  649. This driver interfaces with the SafeXcel EIP-97 and EIP-197 cryptographic
  650. engines designed by Inside Secure. It currently accelerates DES, 3DES and
  651. AES block ciphers in ECB and CBC mode, as well as SHA1, SHA224, SHA256,
  652. SHA384 and SHA512 hash algorithms for both basic hash and HMAC.
  653. Additionally, it accelerates combined AES-CBC/HMAC-SHA AEAD operations.
  654. config CRYPTO_DEV_ARTPEC6
  655. tristate "Support for Axis ARTPEC-6/7 hardware crypto acceleration."
  656. depends on ARM && (ARCH_ARTPEC || COMPILE_TEST)
  657. depends on OF
  658. select CRYPTO_AEAD
  659. select CRYPTO_AES
  660. select CRYPTO_ALGAPI
  661. select CRYPTO_BLKCIPHER
  662. select CRYPTO_CTR
  663. select CRYPTO_HASH
  664. select CRYPTO_SHA1
  665. select CRYPTO_SHA256
  666. select CRYPTO_SHA512
  667. help
  668. Enables the driver for the on-chip crypto accelerator
  669. of Axis ARTPEC SoCs.
  670. To compile this driver as a module, choose M here.
  671. config CRYPTO_DEV_CCREE
  672. tristate "Support for ARM TrustZone CryptoCell family of security processors"
  673. depends on CRYPTO && CRYPTO_HW && OF && HAS_DMA
  674. default n
  675. select CRYPTO_HASH
  676. select CRYPTO_BLKCIPHER
  677. select CRYPTO_LIB_DES
  678. select CRYPTO_AEAD
  679. select CRYPTO_AUTHENC
  680. select CRYPTO_SHA1
  681. select CRYPTO_MD5
  682. select CRYPTO_SHA256
  683. select CRYPTO_SHA512
  684. select CRYPTO_HMAC
  685. select CRYPTO_AES
  686. select CRYPTO_CBC
  687. select CRYPTO_ECB
  688. select CRYPTO_CTR
  689. select CRYPTO_XTS
  690. select CRYPTO_SM4
  691. select CRYPTO_SM3
  692. help
  693. Say 'Y' to enable a driver for the REE interface of the Arm
  694. TrustZone CryptoCell family of processors. Currently the
  695. CryptoCell 713, 703, 712, 710 and 630 are supported.
  696. Choose this if you wish to use hardware acceleration of
  697. cryptographic operations on the system REE.
  698. If unsure say Y.
  699. source "drivers/crypto/hisilicon/Kconfig"
  700. endif # CRYPTO_HW