From 81df13f494ea8492469a918e3e1836e97ad538a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Wed, 12 Feb 2014 16:35:51 +0100
Subject: [PATCH] New constants, EAX_DIGEST_SIZE and GCM_DIGEST_SIZE.

---
 ChangeLog | 5 +++++
 eax.h     | 1 +
 gcm.h     | 2 +-
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 25c161b5..82f49a2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-02-12  Niels Möller  <nisse@lysator.liu.se>
+
+	* eax.h (EAX_DIGEST_SIZE): New constant.
+	* gcm.h (GCM_DIGEST_SIZE): Likewise.
+
 2014-02-10  Niels Möller  <nisse@lysator.liu.se>
 
 	* chacha-set-nonce.c (chacha_set_nonce): Renamed file and
diff --git a/eax.h b/eax.h
index 988071dd..23f62bee 100644
--- a/eax.h
+++ b/eax.h
@@ -51,6 +51,7 @@ extern "C" {
    this in naming? */
 
 #define EAX_BLOCK_SIZE 16
+#define EAX_DIGEST_SIZE 16
 
 /* Values independent of message and nonce */
 struct eax_key
diff --git a/gcm.h b/gcm.h
index bee45318..9c956ced 100644
--- a/gcm.h
+++ b/gcm.h
@@ -75,7 +75,7 @@ extern "C" {
 
 #define GCM_BLOCK_SIZE 16
 #define GCM_IV_SIZE (GCM_BLOCK_SIZE - 4)
-
+#define GCM_DIGEST_SIZE 16
 #define GCM_TABLE_BITS 8
 
 /* Hashing subkey */
-- 
GitLab