Kconfig 1.9 KB
Newer Older
1 2 3 4
# SPDX-License-Identifier: GPL-2.0

config CRYPTO_DEV_HISI_SEC
	tristate "Support for Hisilicon SEC crypto block cipher accelerator"
5
	select CRYPTO_SKCIPHER
6
	select CRYPTO_ALGAPI
7
	select CRYPTO_LIB_DES
8 9 10 11 12 13 14 15
	select SG_SPLIT
	depends on ARM64 || COMPILE_TEST
	depends on HAS_IOMEM
	help
	  Support for Hisilicon SEC Engine in Hip06 and Hip07

	  To compile this as a module, choose M here: the module
	  will be called hisi_sec.
16

17 18
config CRYPTO_DEV_HISI_SEC2
	tristate "Support for HiSilicon SEC2 crypto block cipher accelerator"
19
	select CRYPTO_SKCIPHER
20 21 22
	select CRYPTO_ALGAPI
	select CRYPTO_LIB_DES
	select CRYPTO_DEV_HISI_QM
23 24 25 26 27 28
	select CRYPTO_AEAD
	select CRYPTO_AUTHENC
	select CRYPTO_HMAC
	select CRYPTO_SHA1
	select CRYPTO_SHA256
	select CRYPTO_SHA512
29 30 31 32 33
	depends on PCI && PCI_MSI
	depends on ARM64 || (COMPILE_TEST && 64BIT)
	help
	  Support for HiSilicon SEC Engine of version 2 in crypto subsystem.
	  It provides AES, SM4, and 3DES algorithms with ECB
34
	  CBC, and XTS cipher mode, and AEAD algorithms.
35 36 37 38

	  To compile this as a module, choose M here: the module
          will be called hisi_sec2.

39 40
config CRYPTO_DEV_HISI_QM
	tristate
41 42
	depends on ARM64 || COMPILE_TEST
	depends on PCI && PCI_MSI
43 44 45
	help
	  HiSilicon accelerator engines use a common queue management
	  interface. Specific engine driver may use this module.
46

47 48
config CRYPTO_DEV_HISI_ZIP
	tristate "Support for HiSilicon ZIP accelerator"
49 50 51
	depends on PCI && PCI_MSI
	depends on ARM64 || (COMPILE_TEST && 64BIT)
	depends on !CPU_BIG_ENDIAN || COMPILE_TEST
52 53 54
	select CRYPTO_DEV_HISI_QM
	help
	  Support for HiSilicon ZIP Driver
55 56 57 58 59 60 61 62 63 64 65

config CRYPTO_DEV_HISI_HPRE
	tristate "Support for HISI HPRE accelerator"
	depends on PCI && PCI_MSI
	depends on ARM64 || (COMPILE_TEST && 64BIT)
	select CRYPTO_DEV_HISI_QM
	select CRYPTO_DH
	select CRYPTO_RSA
	help
	  Support for HiSilicon HPRE(High Performance RSA Engine)
	  accelerator, which can accelerate RSA and DH algorithms.