Skip to content

Commit ad18cc9

Browse files
Tero Kristoherbertx
authored andcommitted
crypto: omap-aes - Add support for GCM mode
OMAP AES hw supports AES-GCM mode. This patch adds support for GCM and RFC4106 GCM mode in omap-aes driver. The GCM implementation is mostly written into its own source file, which gets built into the same driver binary as the existing AES support. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> [t-kristo@ti.com: forward port to latest upstream kernel, conversion to use omap-crypto lib and some additional fixes] Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent d695bfd commit ad18cc9

5 files changed

Lines changed: 612 additions & 13 deletions

File tree

‎drivers/crypto/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ config CRYPTO_DEV_OMAP_AES
344344
select CRYPTO_CBC
345345
select CRYPTO_ECB
346346
select CRYPTO_CTR
347+
select CRYPTO_AEAD
347348
help
348349
OMAP processors have AES module accelerator. Select this if you
349350
want to use the OMAP module for AES algorithms.

‎drivers/crypto/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ obj-$(CONFIG_CRYPTO_DEV_NIAGARA2) += n2_crypto.o
2121
n2_crypto-y := n2_core.o n2_asm.o
2222
obj-$(CONFIG_CRYPTO_DEV_NX) += nx/
2323
obj-$(CONFIG_CRYPTO_DEV_OMAP) += omap-crypto.o
24-
obj-$(CONFIG_CRYPTO_DEV_OMAP_AES) += omap-aes.o
24+
obj-$(CONFIG_CRYPTO_DEV_OMAP_AES) += omap-aes-driver.o
25+
omap-aes-driver-objs := omap-aes.o omap-aes-gcm.o
2526
obj-$(CONFIG_CRYPTO_DEV_OMAP_DES) += omap-des.o
2627
obj-$(CONFIG_CRYPTO_DEV_OMAP_SHAM) += omap-sham.o
2728
obj-$(CONFIG_CRYPTO_DEV_PADLOCK_AES) += padlock-aes.o

0 commit comments

Comments
 (0)