xref: /linux/drivers/crypto/hisilicon/Kconfig (revision 6f7e6393d1ce636bb7ec77a7fe7b77458fddf701)
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	select CRYPTO_DEFLATE
61	select CRYPTO_LZ4
62	help
63	  Support for HiSilicon ZIP Driver
64
65config CRYPTO_DEV_HISI_HPRE
66	tristate "Support for HISI HPRE accelerator"
67	depends on PCI_MSI
68	depends on UACCE || UACCE=n
69	depends on ARM64 || (COMPILE_TEST && 64BIT)
70	depends on ACPI
71	select CRYPTO_DEV_HISI_QM
72	select CRYPTO_DH
73	select CRYPTO_RSA
74	select CRYPTO_ECDH
75	help
76	  Support for HiSilicon HPRE(High Performance RSA Engine)
77	  accelerator, which can accelerate RSA and DH algorithms.
78
79config CRYPTO_DEV_HISI_TRNG
80	tristate "Support for HISI TRNG Driver"
81	depends on ARM64 && ACPI
82	select HW_RANDOM
83	select CRYPTO_RNG
84	help
85	  Support for HiSilicon TRNG Driver.
86