aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/bcm/cipher.h
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe.montjoie@gmail.com>2017-08-22 10:08:13 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-09-22 17:43:12 +0800
commita59851d2f220e6653f8878bc312ad61f108fd3c9 (patch)
treed7b191c1ebc95e5050cab50c5fbaa3eb25afc478 /drivers/crypto/bcm/cipher.h
parentcrypto: atmel - Use GCM IV size constant (diff)
downloadlinux-dev-a59851d2f220e6653f8878bc312ad61f108fd3c9.tar.xz
linux-dev-a59851d2f220e6653f8878bc312ad61f108fd3c9.zip
crypto: bcm - 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>
Diffstat (limited to '')
-rw-r--r--drivers/crypto/bcm/cipher.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/bcm/cipher.h b/drivers/crypto/bcm/cipher.h
index 57a55eb2a255..763c425c41ca 100644
--- a/drivers/crypto/bcm/cipher.h
+++ b/drivers/crypto/bcm/cipher.h
@@ -23,6 +23,7 @@
#include <crypto/aes.h>
#include <crypto/internal/hash.h>
#include <crypto/aead.h>
+#include <crypto/gcm.h>
#include <crypto/sha.h>
#include <crypto/sha3.h>
@@ -39,8 +40,6 @@
#define ARC4_STATE_SIZE 4
#define CCM_AES_IV_SIZE 16
-#define GCM_AES_IV_SIZE 12
-#define GCM_ESP_IV_SIZE 8
#define CCM_ESP_IV_SIZE 8
#define RFC4543_ICV_SIZE 16