Commit 07b83f43 authored by Corentin LABBE's avatar Corentin LABBE Committed by Herbert Xu

crypto: mediatek - Use GCM IV size constant

This patch replace GCM IV size value by their constant name.
Signed-off-by: default avatarCorentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a59851d2
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
*/ */
#include <crypto/aes.h> #include <crypto/aes.h>
#include <crypto/gcm.h>
#include "mtk-platform.h" #include "mtk-platform.h"
#define AES_QUEUE_SIZE 512 #define AES_QUEUE_SIZE 512
...@@ -1103,7 +1104,7 @@ static struct aead_alg aes_gcm_alg = { ...@@ -1103,7 +1104,7 @@ static struct aead_alg aes_gcm_alg = {
.decrypt = mtk_aes_gcm_decrypt, .decrypt = mtk_aes_gcm_decrypt,
.init = mtk_aes_gcm_init, .init = mtk_aes_gcm_init,
.exit = mtk_aes_gcm_exit, .exit = mtk_aes_gcm_exit,
.ivsize = 12, .ivsize = GCM_AES_IV_SIZE,
.maxauthsize = AES_BLOCK_SIZE, .maxauthsize = AES_BLOCK_SIZE,
.base = { .base = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment