xref: /openbmc/linux/drivers/crypto/hisilicon/Kconfig (revision 15e3ae36)
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 UACCE || UACCE=n
31	depends on ARM64 || (COMPILE_TEST && 64BIT)
32	help
33	  Support for HiSilicon SEC Engine of version 2 in crypto subsystem.
34	  It provides AES, SM4, and 3DES algorithms with ECB
35	  CBC, and XTS cipher mode, and AEAD algorithms.
36
37	  To compile this as a module, choose M here: the module
38          will be called hisi_sec2.
39
40config CRYPTO_DEV_HISI_QM
41	tristate
42	depends on ARM64 || COMPILE_TEST
43	depends on PCI && PCI_MSI
44	depends on UACCE || UACCE=n
45	help
46	  HiSilicon accelerator engines use a common queue management
47	  interface. Specific engine driver may use this module.
48
49config CRYPTO_DEV_HISI_ZIP
50	tristate "Support for HiSilicon ZIP accelerator"
51	depends on PCI && PCI_MSI
52	depends on ARM64 || (COMPILE_TEST && 64BIT)
53	depends on !CPU_BIG_ENDIAN || COMPILE_TEST
54	depends on UACCE || UACCE=n
55	select CRYPTO_DEV_HISI_QM
56	help
57	  Support for HiSilicon ZIP Driver
58
59config CRYPTO_DEV_HISI_HPRE
60	tristate "Support for HISI HPRE accelerator"
61	depends on PCI && PCI_MSI
62	depends on UACCE || UACCE=n
63	depends on ARM64 || (COMPILE_TEST && 64BIT)
64	select CRYPTO_DEV_HISI_QM
65	select CRYPTO_DH
66	select CRYPTO_RSA
67	help
68	  Support for HiSilicon HPRE(High Performance RSA Engine)
69	  accelerator, which can accelerate RSA and DH algorithms.
70