crypto: Add Niagara2 crypto driver.
David Miller
maintainerPATCH 6/6 crypto: Add Niagara2 crypto driver.
Current deficiencies:
1) No HMAC hash support yet.
2) Although the algs are registered as ASYNC they always run synchronously.
Signed-off-by David S. Miller <[email protected]>
--- drivers/crypto/Kconfig | 12 + drivers/crypto/Makefile | 2 + drivers/crypto/n2_asm.S | 95 +++ drivers/crypto/n2_core.c | 2083 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/crypto/n2_core.h | 231 +++++ 5 files changed, 2423 insertions(+), 0 deletions(-) create mode 100644 drivers/crypto/n2_asm.S create mode 100644 drivers/crypto/n2_core.c create mode 100644 drivers/crypto/n2_core.h
drivers/crypto/Kconfig +12 -0
@@ -170,6 +170,18 @@ config CRYPTO_DEV_MV_CESA Currently the driver supports AES in ECB and CBC mode without DMA. +config CRYPTO_DEV_NIAGARA2 + tristate "Niagara2 Stream Processing Unit driver" + select CRYPTO_ALGAPI + depends on SPARC64 + help + Each core of a Niagara2 processor contains a Stream + Processing Unit, which itself contains several cryptographic + sub-units. One set provides the Modular Arithmetic Unit, + used for SSL offload. The other set provides the Cipher + Group, which can perform encryption, decryption, hashing, + checksumming, and raw copies. + config CRYPTO_DEV_HIFN_795X tristate "Driver HIFN 795x crypto accelerator chips" select CRYPTO_DES
drivers/crypto/Makefile +2 -0
@@ -1,6 +1,8 @@ obj-$(CONFIG_CRYPTO_DEV_PADLOCK_AES) += padlock-aes.o obj-$(CONFIG_CRYPTO_DEV_PADLOCK_SHA) += padlock-sha.o obj-$(CONFIG_CRYPTO_DEV_GEODE) += geode-aes.o +obj-$(CONFIG_CRYPTO_DEV_NIAGARA2) += n2_crypto.o +n2_crypto-objs := n2_core.o n2_asm.o obj-$(CONFIG_CRYPTO_DEV_HIFN_795X) += hifn_795x.o obj-$(CONFIG_CRYPTO_DEV_MV_CESA) += mv_cesa.o obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos.o
drivers/crypto/n2_asm.S new file +95 -0
95 lines not on this page · raw message
drivers/crypto/n2_core.c new file +2083 -0
2,083 lines not on this page · raw message
drivers/crypto/n2_core.h new file +231 -0
231 lines not on this page · raw message
Signature · 1 line
1.7.0.4