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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitry Baryshkov
nettle
Commits
894e849b
Commit
894e849b
authored
12 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for big-endian sha3 code.
parent
314365b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+2
-0
2 additions, 0 deletions
ChangeLog
sha3.c
+2
-1
2 additions, 1 deletion
sha3.c
with
4 additions
and
1 deletion
ChangeLog
+
2
−
0
View file @
894e849b
2012-11-15 Niels Möller <nisse@lysator.liu.se>
* sha3.c (sha3_absorb): Fixed big-endian code. Need macros.h.
* macros.h (LE_READ_UINT64): New macro.
2012-11-13 Niels Möller <nisse@lysator.liu.se>
...
...
This diff is collapsed.
Click to expand it.
sha3.c
+
2
−
1
View file @
894e849b
...
...
@@ -32,6 +32,7 @@
#include
"sha3.h"
#include
"macros.h"
#include
"memxor.h"
static
void
...
...
@@ -41,7 +42,7 @@ sha3_absorb (struct sha3_state *state, unsigned length, const uint8_t *data)
#if WORDS_BIGENDIAN
{
uint64_t
*
p
;
for
(
p
=
&
state
->
a
[
0
][
0
]
;
length
>
0
;
p
++
,
length
-=
8
,
data
+=
8
)
for
(
p
=
state
->
a
;
length
>
0
;
p
++
,
length
-=
8
,
data
+=
8
)
*
p
^=
LE_READ_UINT64
(
data
);
}
#else
/* !WORDS_BIGENDIAN */
...
...
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