summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-04-26 07:03:33 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-04-26 07:03:33 +0200
commit03e73ee78a4066023ea875510cb3481bca357fee (patch)
tree382e36c9623a90c160609b76a338c8a355981730
parentd22bac823e653bb6b04079e7ad1e8bc06a2342ca (diff)
downloadnettle-03e73ee78a4066023ea875510cb3481bca357fee.tar.gz
New constants UMAC_MIN_NONCE_SIZE and UMAC_MAX_NONCE_SIZE.
-rw-r--r--ChangeLog7
-rw-r--r--umac.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a4e5633e..781d9bd2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,13 @@
+2014-04-26 Niels Möller <nisse@lysator.liu.se>
+
+ * umac.h (UMAC_MIN_NONCE_SIZE, UMAC_MAX_NONCE_SIZE): New
+ constants.
+
2014-04-25 Niels Möller <nisse@lysator.liu.se>
* All hash-related files: Renamed all _DATA_SIZE constants to
_BLOCK_SIZE, for consistency. Old names kept for backwards
- compatibility.
+ compatibility.
* nettle.texinfo (CCM): Documentation for CCM mode, contributed by
Owen Kirby.
diff --git a/umac.h b/umac.h
index 1136fcdc..f4d3c7ad 100644
--- a/umac.h
+++ b/umac.h
@@ -75,6 +75,8 @@ extern "C" {
#define UMAC96_DIGEST_SIZE 12
#define UMAC128_DIGEST_SIZE 16
#define UMAC_BLOCK_SIZE 1024
+#define UMAC_MIN_NONCE_SIZE 1
+#define UMAC_MAX_NONCE_SIZE AES_BLOCK_SIZE
/* For backwards compatibility */
#define UMAC_DATA_SIZE UMAC_BLOCK_SIZE