From: Niels Möller Date: Thu, 18 Apr 2013 08:58:27 +0000 (+0200) Subject: New UMAC{32,64,96,128}_DIGEST_SIZE constants. X-Git-Tag: nettle_2.7_release_20130424~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa4f422b89e4898f5a514f8934f7abfe353f30d4;p=thirdparty%2Fnettle.git New UMAC{32,64,96,128}_DIGEST_SIZE constants. --- diff --git a/ChangeLog b/ChangeLog index ca9322bd..f9165a01 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-04-18 Niels Möller + + * umac.h (UMAC32_DIGEST_SIZE, UMAC64_DIGEST_SIZE) + (UMAC96_DIGEST_SIZE, UMAC128_DIGEST_SIZE): New constants. + 2013-04-17 Niels Möller * 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) \