Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wim Lewis
nettle
Commits
23b1c8b4
Commit
23b1c8b4
authored
Apr 26, 2014
by
Niels Möller
Browse files
Document additional GCM and UMAC constants.
parent
03e73ee7
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
23b1c8b4
2014-04-26 Niels Möller <nisse@lysator.liu.se>
* nettle.texinfo (GCM): Document GCM_DIGEST_SIZE.
(UMAC): Document new UMAC constants.
* umac.h (UMAC_MIN_NONCE_SIZE, UMAC_MAX_NONCE_SIZE): New
constants.
...
...
nettle.texinfo
View file @
23b1c8b4
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment