Fix when reusing the same context for another operation.

Occurs in hmac, where multiple hashes are performed with the same context) and thus, it requires to reinitialize the internal states to 0.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
diff --git a/library/sha3.c b/library/sha3.c
index 9aadf9d..a92f8af 100644
--- a/library/sha3.c
+++ b/library/sha3.c
@@ -212,6 +212,9 @@
     ctx->xor_byte = p->xor_byte;
     ctx->max_block_size = ctx->r / 8;
 
+    memset( ctx->state, 0, sizeof( ctx->state ) );
+    ctx->index = 0;
+
     return( 0 );
 }