crypto: aspeed - Add ACRY RSA driver

ACRY Engine is designed to accelerate the throughput of
ECDSA/RSA signature and verification.

This patch aims to add ACRY RSA engine driver for hardware
acceleration.

Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Neal Liu
2023-01-04 09:34:33 +08:00
committed by Herbert Xu
parent d07bd950b9
commit 2f1cf4e50c
3 changed files with 841 additions and 0 deletions

View File

@@ -46,3 +46,14 @@ config CRYPTO_DEV_ASPEED_HACE_CRYPTO
crypto driver.
Supports AES/DES symmetric-key encryption and decryption
with ECB/CBC/CFB/OFB/CTR options.
config CRYPTO_DEV_ASPEED_ACRY
bool "Enable Aspeed ACRY RSA Engine"
depends on CRYPTO_DEV_ASPEED
select CRYPTO_ENGINE
select CRYPTO_RSA
help
Select here to enable Aspeed ECC/RSA Engine (ACRY)
RSA driver.
Supports 256 bits to 4096 bits RSA encryption/decryption
and signature/verification.

View File

@@ -5,3 +5,5 @@ obj-$(CONFIG_CRYPTO_DEV_ASPEED) += aspeed_crypto.o
aspeed_crypto-objs := aspeed-hace.o \
$(hace-hash-y) \
$(hace-crypto-y)
obj-$(CONFIG_CRYPTO_DEV_ASPEED_ACRY) += aspeed-acry.o

File diff suppressed because it is too large Load Diff