Commit 351f0126 authored by Nikos Mavrogiannopoulos's avatar Nikos Mavrogiannopoulos Committed by Niels Möller

sha3: modified to the FIPS202 final version

parent 61870a81
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment