summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe.montjoie@gmail.com>2017-08-22 10:08:08 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-09-22 17:43:08 +0800
commitef780324592dd639e4bfbc5b9bf8934b234b7c99 (patch)
treea09292152649fc85e9f4f02df8e0ce2e0dc7d1f4 /include/crypto
parente47270665b5fcdf8a9ae628e603119e998ca3715 (diff)
downloadop-kernel-dev-ef780324592dd639e4bfbc5b9bf8934b234b7c99.zip
op-kernel-dev-ef780324592dd639e4bfbc5b9bf8934b234b7c99.tar.gz
crypto: gcm - add GCM IV size constant
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>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/gcm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/crypto/gcm.h b/include/crypto/gcm.h
new file mode 100644
index 0000000..c50e057
--- /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
OpenPOWER on IntegriCloud