Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
5831b559
Commit
5831b559
authored
Mar 13, 2013
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminated a temporary in the SHA512 round.
parent
34836b97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
ChangeLog
ChangeLog
+3
-0
sha512-compress.c
sha512-compress.c
+4
-4
No files found.
ChangeLog
View file @
5831b559
2013-03-13 Niels Möller <nisse@lysator.liu.se>
* sha512-compress.c (ROUND): Eliminated a temporary, analogous to
sha256 change below.
* x86_64/sha256-compress.asm: New file, 16% speedup (benchmarked
on intel i5).
...
...
sha512-compress.c
View file @
5831b559
...
...
@@ -85,10 +85,10 @@
/* It's crucial that DATA is only used once, as that argument will
* have side effects. */
#define ROUND(a,b,c,d,e,f,g,h,k,data) do {
\
uint64_t T =
h + S1(e) + Choice(e,f,g) + k + data; \
d +=
T;
\
h
= T
+ S0(a) + Majority(a,b,c); \
#define ROUND(a,b,c,d,e,f,g,h,k,data) do { \
h +
=
S1(e) + Choice(e,f,g) + k + data; \
d +=
h;
\
h +
=
S0(a) + Majority(a,b,c); \
} while (0)
void
...
...
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