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
Nettle
nettle
Commits
351f0126
Commit
351f0126
authored
Aug 12, 2015
by
Nikos Mavrogiannopoulos
Committed by
Niels Möller
Aug 24, 2015
Browse files
sha3: modified to the FIPS202 final version
parent
61870a81
Changes
1
Hide whitespace changes
Inline
Side-by-side
sha3.c
View file @
351f0126
...
@@ -94,7 +94,7 @@ _sha3_pad (struct sha3_state *state,
...
@@ -94,7 +94,7 @@ _sha3_pad (struct sha3_state *state,
unsigned
block_size
,
uint8_t
*
block
,
unsigned
pos
)
unsigned
block_size
,
uint8_t
*
block
,
unsigned
pos
)
{
{
assert
(
pos
<
block_size
);
assert
(
pos
<
block_size
);
block
[
pos
++
]
=
1
;
block
[
pos
++
]
=
6
;
memset
(
block
+
pos
,
0
,
block_size
-
pos
);
memset
(
block
+
pos
,
0
,
block_size
-
pos
);
block
[
block_size
-
1
]
|=
0x80
;
block
[
block_size
-
1
]
|=
0x80
;
...
...
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