From fa4f422b89e4898f5a514f8934f7abfe353f30d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Thu, 18 Apr 2013 10:58:27 +0200
Subject: [PATCH] New UMAC{32,64,96,128}_DIGEST_SIZE constants.

---
 ChangeLog | 5 +++++
 umac.h    | 6 +++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index ca9322bd..f9165a01 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-18  Niels Möller  <nisse@lysator.liu.se>
+
+	* umac.h (UMAC32_DIGEST_SIZE, UMAC64_DIGEST_SIZE)
+	(UMAC96_DIGEST_SIZE, UMAC128_DIGEST_SIZE): New constants.
+
 2013-04-17  Niels Möller  <nisse@lysator.liu.se>
 
 	* examples/nettle-benchmark.c (main): Benchmark salsa20r12.
diff --git a/umac.h b/umac.h
index 339130de..fcd3ad18 100644
--- a/umac.h
+++ b/umac.h
@@ -61,8 +61,12 @@ extern "C" {
 #include "nettle-types.h"
 #include "aes.h"
 
-#define UMAC_BLOCK_SIZE 1024
 #define UMAC_KEY_SIZE 16
+#define UMAC32_DIGEST_SIZE 4
+#define UMAC64_DIGEST_SIZE 8
+#define UMAC96_DIGEST_SIZE 12
+#define UMAC128_DIGEST_SIZE 16
+#define UMAC_BLOCK_SIZE 1024
 
 /* Subkeys and state for UMAC with tag size 32*n bits. */
 #define _UMAC_STATE(n)					\
-- 
GitLab