mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Clear the state after poly1305_finish()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user