Skip to content

Commit 7694b6c

Browse files
Keerthyjherbertx
authored andcommitted
crypto: sa2ul - Add crypto driver
Adds a basic crypto driver and currently supports AES/3DES in cbc mode for both encryption and decryption. Signed-off-by: Keerthy <[email protected]> [[email protected]: major re-work to fix various bugs in the driver and to cleanup the code] Signed-off-by: Tero Kristo <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 2ce9a72 commit 7694b6c

File tree

4 files changed

+1783
-0
lines changed

4 files changed

+1783
-0
lines changed

drivers/crypto/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,4 +866,18 @@ source "drivers/crypto/hisilicon/Kconfig"
866866

867867
source "drivers/crypto/amlogic/Kconfig"
868868

869+
config CRYPTO_DEV_SA2UL
870+
tristate "Support for TI security accelerator"
871+
depends on ARCH_K3 || COMPILE_TEST
872+
select ARM64_CRYPTO
873+
select CRYPTO_AES
874+
select CRYPTO_AES_ARM64
875+
select CRYPTO_ALGAPI
876+
select HW_RANDOM
877+
select SG_SPLIT
878+
help
879+
K3 devices include a security accelerator engine that may be
880+
used for crypto offload. Select this if you want to use hardware
881+
acceleration for cryptographic algorithms on these devices.
882+
869883
endif # CRYPTO_HW

drivers/crypto/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ obj-$(CONFIG_CRYPTO_DEV_QCE) += qce/
3838
obj-$(CONFIG_CRYPTO_DEV_QCOM_RNG) += qcom-rng.o
3939
obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP) += rockchip/
4040
obj-$(CONFIG_CRYPTO_DEV_S5P) += s5p-sss.o
41+
obj-$(CONFIG_CRYPTO_DEV_SA2UL) += sa2ul.o
4142
obj-$(CONFIG_CRYPTO_DEV_SAHARA) += sahara.o
4243
obj-$(CONFIG_ARCH_STM32) += stm32/
4344
obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos.o

0 commit comments

Comments
 (0)