Skip to content

Commit 6298e94

Browse files
montjoieherbertx
authored andcommitted
crypto: sunxi-ss - Add Allwinner Security System crypto accelerator
Add support for the Security System included in Allwinner SoC A20. The Security System is a hardware cryptographic accelerator that support: - MD5 and SHA1 hash algorithms - AES block cipher in CBC/ECB mode with 128/196/256bits keys. - DES and 3DES block cipher in CBC/ECB mode Signed-off-by: LABBE Corentin <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent e757d5c commit 6298e94

File tree

7 files changed

+1656
-0
lines changed

7 files changed

+1656
-0
lines changed

drivers/crypto/Kconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,4 +480,21 @@ config CRYPTO_DEV_IMGTEC_HASH
480480
hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256
481481
hashing algorithms.
482482

483+
config CRYPTO_DEV_SUN4I_SS
484+
tristate "Support for Allwinner Security System cryptographic accelerator"
485+
depends on ARCH_SUNXI
486+
select CRYPTO_MD5
487+
select CRYPTO_SHA1
488+
select CRYPTO_AES
489+
select CRYPTO_DES
490+
select CRYPTO_BLKCIPHER
491+
help
492+
Some Allwinner SoC have a crypto accelerator named
493+
Security System. Select this if you want to use it.
494+
The Security System handle AES/DES/3DES ciphers in CBC mode
495+
and SHA1 and MD5 hash algorithms.
496+
497+
To compile this driver as a module, choose M here: the module
498+
will be called sun4i-ss.
499+
483500
endif # CRYPTO_HW

drivers/crypto/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ obj-$(CONFIG_CRYPTO_DEV_UX500) += ux500/
2828
obj-$(CONFIG_CRYPTO_DEV_QAT) += qat/
2929
obj-$(CONFIG_CRYPTO_DEV_QCE) += qce/
3030
obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/
31+
obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sunxi-ss/

drivers/crypto/sunxi-ss/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sun4i-ss.o
2+
sun4i-ss-y += sun4i-ss-core.o sun4i-ss-hash.o sun4i-ss-cipher.o

0 commit comments

Comments
 (0)