Clear the state after poly1305_finish()

This commit is contained in:
Frank Denis
2015-11-14 16:22:28 +01:00
parent e4167d66fe
commit 27048b06aa
@@ -606,6 +606,8 @@ poly1305_finish_ext(poly1305_state_internal_t *st, const unsigned char *m,
*(uint64_t *)(mac + 0) = h0;
*(uint64_t *)(mac + 8) = h1;
sodium_memzero((void *)st, sizeof *st);
}
static void