Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Brian Smith
nettle
Commits
7a826ece
Commit
7a826ece
authored
13 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
(Hash functions): Document ripemd-160.
Rev: nettle/nettle.texinfo:1.25
parent
dc8a9773
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nettle.texinfo
+38
-0
38 additions, 0 deletions
nettle.texinfo
with
38 additions
and
0 deletions
nettle.texinfo
+
38
−
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment