xref: /openbmc/linux/drivers/crypto/hisilicon/Kconfig (revision 76426e23)
1# SPDX-License-Identifier: GPL-2.0
2
3config CRYPTO_DEV_HISI_SEC
4	tristate "Support for Hisilicon SEC crypto block cipher accelerator"
5	select CRYPTO_SKCIPHER
6	select CRYPTO_ALGAPI
7	select CRYPTO_LIB_DES
8	select SG_SPLIT
9	depends on ARM64 || COMPILE_TEST
10	depends on HAS_IOMEM
11	help
12	  Support for Hisilicon SEC Engine in Hip06 and Hip07
13
14	  To compile this as a module, choose M here: the module
15	  will be called hisi_sec.
16
17config CRYPTO_DEV_HISI_SEC2
18	tristate "Support for HiSilicon SEC2 crypto block cipher accelerator"
19	select CRYPTO_SKCIPHER
20	select CRYPTO_ALGAPI
21	select CRYPTO_LIB_DES
22	select CRYPTO_DEV_HISI_QM
23	select CRYPTO_AEAD
24	select CRYPTO_AUTHENC
25	select CRYPTO_HMAC
26	select CRYPTO_SHA1
27	select CRYPTO_SHA256
28	select CRYPTO_SHA512
29	depends on PCI && PCI_MSI
30	depends on ARM64 || (COMPILE_TEST && 64BIT)
31	help
32	  Support for HiSilicon SEC Engine of version 2 in crypto subsystem.
33	  It provides AES, SM4, and 3DES algorithms with ECB
34	  CBC, and XTS cipher mode, and AEAD algorithms.
35
36	  To compile this as a module, choose M here: the module
37          will be called hisi_sec2.
38
39config CRYPTO_DEV_HISI_QM
40	tristate
41	depends on ARM64 || COMPILE_TEST
42	depends on PCI && PCI_MSI
43	depends on UACCE || UACCE=n
44	help
45	  HiSilicon accelerator engines use a common queue management
46	  interface. Specific engine driver may use this module.
47
48config CRYPTO_DEV_HISI_ZIP
49	tristate "Support for HiSilicon ZIP accelerator"
50	depends on PCI && PCI_MSI
51	depends on ARM64 || (COMPILE_TEST && 64BIT)
52	depends on !CPU_BIG_ENDIAN || COMPILE_TEST
53	depends on UACCE || UACCE=n
54	select CRYPTO_DEV_HISI_QM
55	help
56	  Support for HiSilicon ZIP Driver
57
58config CRYPTO_DEV_HISI_HPRE
59	tristate "Support for HISI HPRE accelerator"
60	depends on PCI && PCI_MSI
61	depends on ARM64 || (COMPILE_TEST && 64BIT)
62	select CRYPTO_DEV_HISI_QM
63	select CRYPTO_DH
64	select CRYPTO_RSA
65	help
66	  Support for HiSilicon HPRE(High Performance RSA Engine)
67	  accelerator, which can accelerate RSA and DH algorithms.
68