Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Wim Lewis
nettle
Commits
894e849b
Commit
894e849b
authored
Nov 15, 2012
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for big-endian sha3 code.
parent
314365b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
ChangeLog
ChangeLog
+2
-0
sha3.c
sha3.c
+2
-1
No files found.
ChangeLog
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>
...
...
sha3.c
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 */
...
...
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