Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
833d7496
Commit
833d7496
authored
Aug 25, 2015
by
Niels Möller
Browse files
New define NETTLE_SHA3_FIPS202.
parent
b203b4e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
833d7496
2015-08-25 Niels Möller <nisse@lysator.liu.se>
* sha3.h (NETTLE_SHA3_FIPS202): New preprocessor constant.
2015-08-24 Niels Möller <nisse@lysator.liu.se>
* testsuite/sha3.awk: Document origin of test vectors.
...
...
sha3.h
View file @
833d7496
...
...
@@ -40,6 +40,7 @@
extern
"C"
{
#endif
/* Name mangling */
#define sha3_permute nettle_sha3_permute
#define _sha3_update _nettle_sha3_update
#define _sha3_pad _nettle_sha3_pad
...
...
@@ -56,6 +57,9 @@ extern "C" {
#define sha3_512_update nettle_sha3_512_update
#define sha3_512_digest nettle_sha3_512_digest
/* Indicates that SHA3 is the NIST FIPS 202 version. */
#define NETTLE_SHA3_FIPS202 1
/* The sha3 state is a 5x5 matrix of 64-bit words. In the notation of
Keccak description, S[x,y] is element x + 5*y, so if x is
interpreted as the row index and y the column index, it is stored
...
...
Write
Preview
Supports
Markdown
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