summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-08-12 16:17:17 +0200
committerNiels Möller <nisse@lysator.liu.se>2015-08-24 22:17:49 +0200
commit351f01269450b8b48752580255acc7ce36563136 (patch)
tree6ab5a0b257a7175cc0e3e5dcef2a230a3664e413
parent61870a818b64b966d457d2fd1a3525fce715e066 (diff)
downloadnettle-351f01269450b8b48752580255acc7ce36563136.tar.gz
sha3: modified to the FIPS202 final version
-rw-r--r--sha3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha3.c b/sha3.c
index 84bc7ea4..24581db2 100644
--- a/sha3.c
+++ b/sha3.c
@@ -94,7 +94,7 @@ _sha3_pad (struct sha3_state *state,
unsigned block_size, uint8_t *block, unsigned pos)
{
assert (pos < block_size);
- block[pos++] = 1;
+ block[pos++] = 6;
memset (block + pos, 0, block_size - pos);
block[block_size - 1] |= 0x80;