From: Niels Möller Date: Sat, 26 Apr 2014 05:03:33 +0000 (+0200) Subject: New constants UMAC_MIN_NONCE_SIZE and UMAC_MAX_NONCE_SIZE. X-Git-Tag: nettle_3.0_release_20140607~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e73ee78a4066023ea875510cb3481bca357fee;p=thirdparty%2Fnettle.git New constants UMAC_MIN_NONCE_SIZE and UMAC_MAX_NONCE_SIZE. --- diff --git a/ChangeLog b/ChangeLog index a4e5633e..781d9bd2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,13 @@ +2014-04-26 Niels Möller + + * umac.h (UMAC_MIN_NONCE_SIZE, UMAC_MAX_NONCE_SIZE): New + constants. + 2014-04-25 Niels Möller * 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