From 03e73ee78a4066023ea875510cb3481bca357fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Sat, 26 Apr 2014 07:03:33 +0200 Subject: [PATCH] New constants UMAC_MIN_NONCE_SIZE and UMAC_MAX_NONCE_SIZE. --- ChangeLog | 7 ++++++- umac.h | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- GitLab