xref: /openbmc/linux/drivers/crypto/hisilicon/Kconfig (revision 4ec575b7)
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	help
44	  HiSilicon accelerator engines use a common queue management
45	  interface. Specific engine driver may use this module.
46
47config CRYPTO_DEV_HISI_ZIP
48	tristate "Support for HiSilicon ZIP accelerator"
49	depends on PCI && PCI_MSI
50	depends on ARM64 || (COMPILE_TEST && 64BIT)
51	depends on !CPU_BIG_ENDIAN || COMPILE_TEST
52	select CRYPTO_DEV_HISI_QM
53	help
54	  Support for HiSilicon ZIP Driver
55
56config CRYPTO_DEV_HISI_HPRE
57	tristate "Support for HISI HPRE accelerator"
58	depends on PCI && PCI_MSI
59	depends on ARM64 || (COMPILE_TEST && 64BIT)
60	select CRYPTO_DEV_HISI_QM
61	select CRYPTO_DH
62	select CRYPTO_RSA
63	help
64	  Support for HiSilicon HPRE(High Performance RSA Engine)
65	  accelerator, which can accelerate RSA and DH algorithms.
66