diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-04-26 07:03:33 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-04-26 07:03:33 +0200 |
commit | 03e73ee78a4066023ea875510cb3481bca357fee (patch) | |
tree | 382e36c9623a90c160609b76a338c8a355981730 | |
parent | d22bac823e653bb6b04079e7ad1e8bc06a2342ca (diff) | |
download | nettle-03e73ee78a4066023ea875510cb3481bca357fee.tar.gz |
New constants UMAC_MIN_NONCE_SIZE and UMAC_MAX_NONCE_SIZE.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | umac.h | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -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. @@ -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 |