crypto: omap-aes-gcm - use the AES library to encrypt the tag
authorArd Biesheuvel <ardb@kernel.org>
Tue, 5 Nov 2019 14:01:05 +0000 (16:01 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:36:59 +0000 (16:36 +0800)
commitf0956d42c14abfeda9d0be7f06999363cab3e99a
treeacd550bb2ffb114085a390f2bb0f566d6e769fab
parentb877ad1a135c802d4529a72aa82faf46ef5db097
crypto: omap-aes-gcm - use the AES library to encrypt the tag

The OMAP AES-GCM implementation uses a fallback ecb(aes) skcipher to
produce the keystream to encrypt the output tag. Let's use the new
AES library instead - this is much simpler, and shouldn't affect
performance given that it only involves a single block.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes-gcm.c
drivers/crypto/omap-aes.c
drivers/crypto/omap-aes.h