Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
57fa68a3
Commit
57fa68a3
authored
Nov 11, 2012
by
Nikos Mavrogiannopoulos
Committed by
Niels Möller
Nov 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation of gost hash.
parent
5ff517e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
ChangeLog
ChangeLog
+6
-0
nettle.texinfo
nettle.texinfo
+43
-0
No files found.
ChangeLog
View file @
57fa68a3
2012-11-11 Niels Möller <nisse@lysator.liu.se>
From Nikos Mavrogiannopoulos:
* nettle.texinfo (Hash functions): Added documentation for
gosthash94.
2012-11-10 Niels Möller <nisse@lysator.liu.se>
* nettle.texinfo (nettle_hashes, nettle_ciphers): Use deftypevr,
...
...
nettle.texinfo
View file @
57fa68a3
...
...
@@ -220,6 +220,11 @@ released under the LGPL.
Written by @value
{
AUTHOR
}
, using Peter Gutmann's SHA1 code as a model.
Released under the LGPL.
@item GOSTHASH94
The C implementation of the GOST94 message digest is written by
Aleksey Kravchenko and was ported from the rhash library by Nikos
Mavrogiannopoulos. It is released under the MIT license.
@item TWOFISH
The implementation of the TWOFISH cipher is written by Ruud de Rooij.
Released under the LGPL.
...
...
@@ -711,6 +716,43 @@ This function also resets the context in the same way as
@code
{
sha384
_
init
}
.
@end deftypefun
@subsection @acronym
{
GOSTHASH94
}
The GOST94 or GOST R 34.11-94 hash algorithm is a Soviet-era algorithm
used in Russian government standards (see @cite
{
RFC 4357
}
).
It outputs message digests of 256 bits, or 32 octets.
Nettle defines GOSTHASH94 in @file
{
<nettle/gosthash94.h>
}
.
@deftp
{
Context struct
}
{
struct gosthash94
_
ctx
}
@end deftp
@defvr Constant GOSTHASH94
_
DIGEST
_
SIZE
The size of an GOSTHASH94 digest, i.e. 32.
@end defvr
@defvr Constant GOSTHASH94
_
DATA
_
SIZE
The internal block size of GOSTHASH94, i.e., 32.
@end defvr
@deftypefun void gosthash94
_
init (struct gosthash94
_
ctx *@var
{
ctx
}
)
Initialize the GOSTHASH94 state.
@end deftypefun
@deftypefun void gosthash94
_
update (struct gosthash94
_
ctx *@var
{
ctx
}
, unsigned @var
{
length
}
, const uint8
_
t *@var
{
data
}
)
Hash some more data.
@end deftypefun
@deftypefun void gosthash94
_
digest (struct gosthash94
_
ctx *@var
{
ctx
}
, unsigned @var
{
length
}
, uint8
_
t *@var
{
digest
}
)
Performs final processing and extracts the message digest, writing it
to @var
{
digest
}
. @var
{
length
}
may be smaller than
@code
{
GOSTHASH94
_
DIGEST
_
SIZE
}
, in which case only the first @var
{
length
}
octets of the digest are written.
This function also resets the context in the same way as
@code
{
gosthash94
_
init
}
.
@end deftypefun
@subsection @code
{
struct nettle
_
hash
}
Nettle includes a struct including information about the supported hash
...
...
@@ -735,6 +777,7 @@ The last three attributes are function pointers, of types
@deftypevrx
{
Constant Struct
}
{
struct nettle
_
hash
}
nettle
_
sha256
@deftypevrx
{
Constant Struct
}
{
struct nettle
_
hash
}
nettle
_
sha384
@deftypevrx
{
Constant Struct
}
{
struct nettle
_
hash
}
nettle
_
sha512
@deftypevrx
{
Constant Struct
}
{
struct nettle
_
hash
}
nettle
_
gosthash94
These are all the hash functions that Nettle implements.
@end deftypevr
...
...
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