]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
crypto: gcm - add GCM IV size constant
authorCorentin LABBE <clabbe.montjoie@gmail.com>
Tue, 22 Aug 2017 08:08:08 +0000 (10:08 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Sep 2017 09:43:08 +0000 (17:43 +0800)
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 <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/gcm.h [new file with mode: 0644]

diff --git a/include/crypto/gcm.h b/include/crypto/gcm.h
new file mode 100644 (file)
index 0000000..c50e057
--- /dev/null
@@ -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