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
Brian Smith
nettle
Commits
7a826ece
Commit
7a826ece
authored
Aug 30, 2011
by
Niels Möller
Browse files
(Hash functions): Document ripemd-160.
Rev: nettle/nettle.texinfo:1.25
parent
dc8a9773
Changes
1
Hide whitespace changes
Inline
Side-by-side
nettle.texinfo
View file @
7a826ece
...
...
@@ -462,6 +462,43 @@ This function also resets the context in the same way as
@code
{
md4
_
init
}
.
@end deftypefun
@subsection @acronym
{
RIPEMD160
}
RIPEMD160 is a hash function designed by Hans Dobbertin, Antoon
Bosselaers, and Bart Preneel, as a strengthened version of RIPEMD
(which, like MD4 and MD5, fails the collision-resistance requirement).
It produces message digests of 160 bits, or 20 octets. Nettle defined
RIPEMD160 in @file
{
nettle/ripemd160.h
}
.
@deftp
{
Context struct
}
{
struct ripemd160
_
ctx
}
@end deftp
@defvr Constant RIPEMD160
_
DIGEST
_
SIZE
The size of an RIPEMD160 digest, i.e. 20.
@end defvr
@defvr Constant RIPEMD160
_
DATA
_
SIZE
The internal block size of RIPEMD160.
@end defvr
@deftypefun void ripemd160
_
init (struct ripemd160
_
ctx *@var
{
ctx
}
)
Initialize the RIPEMD160 state.
@end deftypefun
@deftypefun void ripemd160
_
update (struct ripemd160
_
ctx *@var
{
ctx
}
, unsigned @var
{
length
}
, const uint8
_
t *@var
{
data
}
)
Hash some more data.
@end deftypefun
@deftypefun void ripemd160
_
digest (struct ripemd160
_
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
{
RIPEMD160
_
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
{
ripemd160
_
init
}
.
@end deftypefun
@subsection @acronym
{
SHA1
}
SHA1 is a hash function specified by @dfn
{
NIST
}
(The U.S. National Institute
...
...
@@ -673,6 +710,7 @@ The last three attributes are function pointers, of types
@deftypevr
{
Constant Struct
}
{
struct nettle
_
hash
}
nettle
_
md2
@deftypevrx
{
Constant Struct
}
{
struct nettle
_
hash
}
nettle
_
md4
@deftypevrx
{
Constant Struct
}
{
struct nettle
_
hash
}
nettle
_
md5
@deftypevrx
{
Constant Struct
}
{
struct nettle
_
hash
}
nettle
_
ripemd160
@deftypevrx
{
Constant Struct
}
{
struct nettle
_
hash
}
nettle
_
sha1
@deftypevrx
{
Constant Struct
}
{
struct nettle
_
hash
}
nettle
_
sha224
@deftypevrx
{
Constant Struct
}
{
struct nettle
_
hash
}
nettle
_
sha256
...
...
Write
Preview
Supports
Markdown
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