From: Niels Möller Date: Sat, 26 Apr 2014 05:15:16 +0000 (+0200) Subject: Document additional GCM and UMAC constants. X-Git-Tag: nettle_3.0_release_20140607~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23b1c8b46476942bd1546b218796228a90cb51d2;p=thirdparty%2Fnettle.git Document additional GCM and UMAC constants. --- diff --git a/ChangeLog b/ChangeLog index 781d9bd2..815594b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2014-04-26 Niels Möller + * nettle.texinfo (GCM): Document GCM_DIGEST_SIZE. + (UMAC): Document new UMAC constants. + * umac.h (UMAC_MIN_NONCE_SIZE, UMAC_MAX_NONCE_SIZE): New constants. diff --git a/nettle.texinfo b/nettle.texinfo index f7d78e2a..89fcad96 100644 --- a/nettle.texinfo +++ b/nettle.texinfo @@ -2044,6 +2044,10 @@ Holds state corresponding to a particular message. @acronym{GCM}'s block size, 16. @end defvr +@defvr Constant GCM_DIGEST_SIZE +Size of the @acronym{GCM} digest, also 16. +@end defvr + @defvr Constant GCM_IV_SIZE Recommended size of the @acronym{IV}, 12. Other sizes are allowed. @end defvr @@ -2078,7 +2082,7 @@ a multiple of the block size. @deftypefun void gcm_digest (struct gcm_ctx *@var{ctx}, const struct gcm_key *@var{key}, void *@var{cipher}, nettle_crypt_func *@var{f}, size_t @var{length}, uint8_t *@var{digest}) Extracts the message digest (also known ``authentication tag''). This is the final operation when processing a message. @var{length} is usually -equal to @code{GCM_BLOCK_SIZE}, but if you provide a smaller value, +equal to @code{GCM_DIGEST_SIZE}, but if you provide a smaller value, only the first @var{length} octets of the digest are written. @end deftypefun @@ -2731,6 +2735,11 @@ Each @acronym{UMAC} variant uses its own context struct. @defvr Constant UMAC_KEY_SIZE The UMAC key size, 16. @end defvr +@defvr Constant UMAC_MIN_NONCE_SIZE +@defvrx Constant UMAC_MAX_NONCE_SIZE +The the minimum and maximum sizes for an UMAC nonce, 1 and 16, +respectively. +@end defvr @defvr Constant UMAC32_DIGEST_SIZE The size of an UMAC32 digest, 4. @end defvr