From: Corentin LABBE Date: Tue, 22 Aug 2017 08:08:08 +0000 (+0200) Subject: crypto: gcm - add GCM IV size constant X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cffaf2b6b179227b31f8e21d7f65b68630fc6606;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git crypto: gcm - add GCM IV size constant commit ef780324592dd639e4bfbc5b9bf8934b234b7c99 upstream. Many GCM users use directly GCM IV size instead of using some constant. This patch add all IV size constant used by GCM. Signed-off-by: Corentin Labbe Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/crypto/gcm.h b/include/crypto/gcm.h new file mode 100644 index 000000000000..c50e057ea17e --- /dev/null +++ b/include/crypto/gcm.h @@ -0,0 +1,8 @@ +#ifndef _CRYPTO_GCM_H +#define _CRYPTO_GCM_H + +#define GCM_AES_IV_SIZE 12 +#define GCM_RFC4106_IV_SIZE 8 +#define GCM_RFC4543_IV_SIZE 8 + +#endif