]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
sha3: modified to the FIPS202 final version
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 12 Aug 2015 14:17:17 +0000 (16:17 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 24 Aug 2015 20:17:49 +0000 (22:17 +0200)
sha3.c

diff --git a/sha3.c b/sha3.c
index 84bc7ea4916180fbe8798566e0f318d29e40072b..24581db20438fd56388bdfb5bb2fd494b4ea5668 100644 (file)
--- 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;