Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: mediatek - Use GCM IV size constant

This patch replace GCM IV size value by their constant name.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Corentin LABBE and committed by
Herbert Xu
07b83f43 a59851d2

+2 -1
+2 -1
drivers/crypto/mediatek/mtk-aes.c
··· 13 13 */ 14 14 15 15 #include <crypto/aes.h> 16 + #include <crypto/gcm.h> 16 17 #include "mtk-platform.h" 17 18 18 19 #define AES_QUEUE_SIZE 512 ··· 1104 1103 .decrypt = mtk_aes_gcm_decrypt, 1105 1104 .init = mtk_aes_gcm_init, 1106 1105 .exit = mtk_aes_gcm_exit, 1107 - .ivsize = 12, 1106 + .ivsize = GCM_AES_IV_SIZE, 1108 1107 .maxauthsize = AES_BLOCK_SIZE, 1109 1108 1110 1109 .base = {