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
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitry Baryshkov
nettle
Commits
12bbae8b
Commit
12bbae8b
authored
Sep 21, 2012
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Stress that the salsa20 hash function is not for general use.
parent
90320ba2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+5
-0
5 additions, 0 deletions
ChangeLog
nettle.texinfo
+9
-6
9 additions, 6 deletions
nettle.texinfo
with
14 additions
and
6 deletions
ChangeLog
+
5
−
0
View file @
12bbae8b
2012-09-21 Niels Möller <nisse@lysator.liu.se>
* nettle.texinfo (Cipher functions): Stress that the salsa20 hash
function is not suitable as a general hash function.
2012-09-20 Simon Josefsson <simon@josefsson.org>
* pbkdf2-hmac-sha1.c, pbkdf2-hmac-sha256.c: New files.
...
...
This diff is collapsed.
Click to expand it.
nettle.texinfo
+
9
−
6
View file @
12bbae8b
...
...
@@ -1275,12 +1275,15 @@ in this way to ridicule United States export restrictions which treated hash
functions as nice and harmless, but ciphers as dangerous munitions.
Salsa20 uses the same idea, but with a new specialized hash function to
mix key, block counter, and a couple of constants (input and output are
the same size, making it not directly applicable for use as a general
hash function). It's also designed for speed; on x86
_
64, it is currently
the fastest cipher offered by nettle. It uses a block size of 512 bits
(64 octets) and there are two specified key sizes, 128 and 256 bits (16
and 32 octets).
mix key, block counter, and a couple of constants. It's also designed
for speed; on x86
_
64, it is currently the fastest cipher offered by
nettle. It uses a block size of 512 bits (64 octets) and there are two
specified key sizes, 128 and 256 bits (16 and 32 octets).
@strong
{
Caution:
}
The hash function used in Salsa20 is @emph
{
not
}
directly applicable for use as a general hash function. It's @emph
{
not
}
collision resistant if arbitrary inputs are allowed, and furthermore,
the input and output is of fixed size.
When using Salsa20 to process a message, one specifies both a key and a
@dfn
{
nonce
}
, the latter playing a similar rôle to the initialization
...
...
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