crypto: driver for tegra AES hardware
Subsystems (2)
PATCH v3 1/1 crypto: driver for tegra AES hardware
From: Varun Wadekar <[email protected]>
driver supports ecb/cbc/ofb/ansi_x9.31rng modes,
128, 192 and 256-bit key sizes
---
v3: Fixed comments from Stephen Warren. Please ignore the previous patch.
drivers/crypto/Kconfig | 11 + drivers/crypto/Makefile | 1 + drivers/crypto/tegra-aes.c | 1101 ++++++++++++++++++++++++++++++++++++++++++++ drivers/crypto/tegra-aes.h | 103 ++++ 4 files changed, 1216 insertions(+), 0 deletions(-) create mode 100644 drivers/crypto/tegra-aes.c create mode 100644 drivers/crypto/tegra-aes.h
drivers/crypto/Kconfig +11 -0
@@ -293,4 +293,15 @@ config CRYPTO_DEV_S5P Select this to offload Samsung S5PV210 or S5PC110 from AES algorithms execution. +config CRYPTO_DEV_TEGRA_AES + tristate "Support for TEGRA AES hw engine" + depends on ARCH_TEGRA + select CRYPTO_AES + help + TEGRA processors have AES module accelerator. Select this if you + want to use the TEGRA module for AES algorithms. + + To compile this driver as a module, choose M here: the module + will be called tegra-aes. + endif # CRYPTO_HW
drivers/crypto/Makefile +1 -0
@@ -13,3 +13,4 @@ obj-$(CONFIG_CRYPTO_DEV_OMAP_SHAM) += omap-sham.o obj-$(CONFIG_CRYPTO_DEV_OMAP_AES) += omap-aes.o obj-$(CONFIG_CRYPTO_DEV_PICOXCELL) += picoxcell_crypto.o obj-$(CONFIG_CRYPTO_DEV_S5P) += s5p-sss.o +obj-$(CONFIG_CRYPTO_DEV_TEGRA_AES) += tegra-aes.o
drivers/crypto/tegra-aes.c new file +1101 -0
1,101 lines not on this page · raw message
drivers/crypto/tegra-aes.h new file +103 -0
103 lines not on this page · raw message
Signature · 1 line
1.7.1
[email protected] wrote at Saturday, November 12, 2011 3:43 AM:
Quoted 2 lines
driver supports ecb/cbc/ofb/ansi_x9.31rng modes,
128, 192 and 256-bit key sizes
This will fail to build as a module unless your other patch "arm: tegra:
export tegra_chip_uid" is also merged. You should mention this fact when posting the patch, below the --- line.
I'll let Olof and the crypto maintainers comment on the solution they'd prefer for this, but perhaps it's: have one of the Tegra maintainers ack that other patch, then have the crypto maintainer merge both patches in order into the crypto tree.
Signature · 1 line
nvpublic
Quoted 4 lines · Stephen Warren
[email protected] wrote at Saturday, November 12, 2011 3:43 AM:
Quoted 2 lines
driver supports ecb/cbc/ofb/ansi_x9.31rng modes,
128, 192 and 256-bit key sizes
Quoted 8 lines
This will fail to build as a module unless your other patch "arm: tegra:
exporttegra_chip_uid" is also merged. You should mention this fact when posting the patch, below the --- line.I'll let Olof and the crypto maintainers comment on the solution they'd prefer for this, but perhaps it's: have one of the Tegra maintainers ack that other patch, then have the crypto maintainer merge both patches in order into the crypto tree.
Yeah, I'll ack it once I'm OK with it.
There will be other fuse.c changes for 3.3 but the conflict resolution should be trivial if needed at all.
-Olof