Commit 46d93748 authored by Corentin LABBE's avatar Corentin LABBE Committed by Herbert Xu

crypto: aesni - 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 e0ab7e9c
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include <crypto/cryptd.h> #include <crypto/cryptd.h>
#include <crypto/ctr.h> #include <crypto/ctr.h>
#include <crypto/b128ops.h> #include <crypto/b128ops.h>
#include <crypto/gcm.h>
#include <crypto/xts.h> #include <crypto/xts.h>
#include <asm/cpu_device_id.h> #include <asm/cpu_device_id.h>
#include <asm/fpu/api.h> #include <asm/fpu/api.h>
...@@ -1132,7 +1133,7 @@ static struct aead_alg aesni_aead_algs[] = { { ...@@ -1132,7 +1133,7 @@ static struct aead_alg aesni_aead_algs[] = { {
.setauthsize = common_rfc4106_set_authsize, .setauthsize = common_rfc4106_set_authsize,
.encrypt = helper_rfc4106_encrypt, .encrypt = helper_rfc4106_encrypt,
.decrypt = helper_rfc4106_decrypt, .decrypt = helper_rfc4106_decrypt,
.ivsize = 8, .ivsize = GCM_RFC4106_IV_SIZE,
.maxauthsize = 16, .maxauthsize = 16,
.base = { .base = {
.cra_name = "__gcm-aes-aesni", .cra_name = "__gcm-aes-aesni",
...@@ -1150,7 +1151,7 @@ static struct aead_alg aesni_aead_algs[] = { { ...@@ -1150,7 +1151,7 @@ static struct aead_alg aesni_aead_algs[] = { {
.setauthsize = rfc4106_set_authsize, .setauthsize = rfc4106_set_authsize,
.encrypt = rfc4106_encrypt, .encrypt = rfc4106_encrypt,
.decrypt = rfc4106_decrypt, .decrypt = rfc4106_decrypt,
.ivsize = 8, .ivsize = GCM_RFC4106_IV_SIZE,
.maxauthsize = 16, .maxauthsize = 16,
.base = { .base = {
.cra_name = "rfc4106(gcm(aes))", .cra_name = "rfc4106(gcm(aes))",
...@@ -1166,7 +1167,7 @@ static struct aead_alg aesni_aead_algs[] = { { ...@@ -1166,7 +1167,7 @@ static struct aead_alg aesni_aead_algs[] = { {
.setauthsize = generic_gcmaes_set_authsize, .setauthsize = generic_gcmaes_set_authsize,
.encrypt = generic_gcmaes_encrypt, .encrypt = generic_gcmaes_encrypt,
.decrypt = generic_gcmaes_decrypt, .decrypt = generic_gcmaes_decrypt,
.ivsize = 12, .ivsize = GCM_AES_IV_SIZE,
.maxauthsize = 16, .maxauthsize = 16,
.base = { .base = {
.cra_name = "gcm(aes)", .cra_name = "gcm(aes)",
......
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