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