mirror of
https://github.com/armbian/linux-cix.git
synced 2026-01-06 12:30:45 -08:00
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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
828
drivers/crypto/aspeed/aspeed-acry.c
Normal file
828
drivers/crypto/aspeed/aspeed-acry.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user