1915e4e84SJonathan Cameron# SPDX-License-Identifier: GPL-2.0 2915e4e84SJonathan Cameron 3915e4e84SJonathan Cameronconfig CRYPTO_DEV_HISI_SEC 4915e4e84SJonathan Cameron tristate "Support for Hisilicon SEC crypto block cipher accelerator" 5b95bba5dSEric Biggers select CRYPTO_SKCIPHER 6915e4e84SJonathan Cameron select CRYPTO_ALGAPI 71bbbbcfdSMao Wenan select CRYPTO_LIB_DES 8915e4e84SJonathan Cameron select SG_SPLIT 9915e4e84SJonathan Cameron depends on ARM64 || COMPILE_TEST 10915e4e84SJonathan Cameron depends on HAS_IOMEM 11915e4e84SJonathan Cameron help 12915e4e84SJonathan Cameron Support for Hisilicon SEC Engine in Hip06 and Hip07 13915e4e84SJonathan Cameron 14915e4e84SJonathan Cameron To compile this as a module, choose M here: the module 15915e4e84SJonathan Cameron will be called hisi_sec. 16263c9959SZhou Wang 17416d8220SZaibo Xuconfig CRYPTO_DEV_HISI_SEC2 18416d8220SZaibo Xu tristate "Support for HiSilicon SEC2 crypto block cipher accelerator" 198e8c778dSEric Biggers select CRYPTO_SKCIPHER 20416d8220SZaibo Xu select CRYPTO_ALGAPI 21416d8220SZaibo Xu select CRYPTO_LIB_DES 22416d8220SZaibo Xu select CRYPTO_DEV_HISI_QM 232f072d75SZaibo Xu select CRYPTO_AEAD 242f072d75SZaibo Xu select CRYPTO_AUTHENC 252f072d75SZaibo Xu select CRYPTO_HMAC 262f072d75SZaibo Xu select CRYPTO_SHA1 272f072d75SZaibo Xu select CRYPTO_SHA256 282f072d75SZaibo Xu select CRYPTO_SHA512 29416d8220SZaibo Xu depends on PCI && PCI_MSI 30b5f13031SYueHaibing depends on UACCE || UACCE=n 31416d8220SZaibo Xu depends on ARM64 || (COMPILE_TEST && 64BIT) 32c73d1871SStephen Rothwell depends on ACPI 33416d8220SZaibo Xu help 34416d8220SZaibo Xu Support for HiSilicon SEC Engine of version 2 in crypto subsystem. 35416d8220SZaibo Xu It provides AES, SM4, and 3DES algorithms with ECB 362f072d75SZaibo Xu CBC, and XTS cipher mode, and AEAD algorithms. 37416d8220SZaibo Xu 38416d8220SZaibo Xu To compile this as a module, choose M here: the module 39416d8220SZaibo Xu will be called hisi_sec2. 40416d8220SZaibo Xu 41263c9959SZhou Wangconfig CRYPTO_DEV_HISI_QM 42263c9959SZhou Wang tristate 43a7174f97SArnd Bergmann depends on ARM64 || COMPILE_TEST 44a7174f97SArnd Bergmann depends on PCI && PCI_MSI 4547c16b44SHongbo Yao depends on UACCE || UACCE=n 46f88480e3SShukun Tan depends on ACPI 47263c9959SZhou Wang help 48263c9959SZhou Wang HiSilicon accelerator engines use a common queue management 49263c9959SZhou Wang interface. Specific engine driver may use this module. 50dfed0098SZhou Wang 5162c455caSZhou Wangconfig CRYPTO_DEV_HISI_ZIP 5262c455caSZhou Wang tristate "Support for HiSilicon ZIP accelerator" 53a7174f97SArnd Bergmann depends on PCI && PCI_MSI 54a7174f97SArnd Bergmann depends on ARM64 || (COMPILE_TEST && 64BIT) 55a7174f97SArnd Bergmann depends on !CPU_BIG_ENDIAN || COMPILE_TEST 5647c16b44SHongbo Yao depends on UACCE || UACCE=n 57c73d1871SStephen Rothwell depends on ACPI 5862c455caSZhou Wang select CRYPTO_DEV_HISI_QM 5962c455caSZhou Wang help 6062c455caSZhou Wang Support for HiSilicon ZIP Driver 61c8b4b477SZaibo Xu 62c8b4b477SZaibo Xuconfig CRYPTO_DEV_HISI_HPRE 63c8b4b477SZaibo Xu tristate "Support for HISI HPRE accelerator" 64c8b4b477SZaibo Xu depends on PCI && PCI_MSI 65b5f13031SYueHaibing depends on UACCE || UACCE=n 66c8b4b477SZaibo Xu depends on ARM64 || (COMPILE_TEST && 64BIT) 67c73d1871SStephen Rothwell depends on ACPI 68c8b4b477SZaibo Xu select CRYPTO_DEV_HISI_QM 69c8b4b477SZaibo Xu select CRYPTO_DH 70c8b4b477SZaibo Xu select CRYPTO_RSA 71c8b4b477SZaibo Xu help 72c8b4b477SZaibo Xu Support for HiSilicon HPRE(High Performance RSA Engine) 73c8b4b477SZaibo Xu accelerator, which can accelerate RSA and DH algorithms. 74