summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe.montjoie@gmail.com>2017-08-22 10:08:14 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-09-22 17:43:12 +0800
commit07b83f437d9129adda47d78bdadd7813a008d092 (patch)
tree283f87c75408e5b05f7f935a7ce56ead40fde30d
parenta59851d2f220e6653f8878bc312ad61f108fd3c9 (diff)
downloadlinux-07b83f437d9129adda47d78bdadd7813a008d092.tar.gz
linux-07b83f437d9129adda47d78bdadd7813a008d092.tar.bz2
linux-07b83f437d9129adda47d78bdadd7813a008d092.zip
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>
-rw-r--r--drivers/crypto/mediatek/mtk-aes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/mediatek/mtk-aes.c b/drivers/crypto/mediatek/mtk-aes.c
index 72e4549ed36b..32aa587783c3 100644
--- a/drivers/crypto/mediatek/mtk-aes.c
+++ b/drivers/crypto/mediatek/mtk-aes.c
@@ -13,6 +13,7 @@
*/
#include <crypto/aes.h>
+#include <crypto/gcm.h>
#include "mtk-platform.h"
#define AES_QUEUE_SIZE 512
@@ -1103,7 +1104,7 @@ static struct aead_alg aes_gcm_alg = {
.decrypt = mtk_aes_gcm_decrypt,
.init = mtk_aes_gcm_init,
.exit = mtk_aes_gcm_exit,
- .ivsize = 12,
+ .ivsize = GCM_AES_IV_SIZE,
.maxauthsize = AES_BLOCK_SIZE,
.base = {