1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

Improve clarity

This commit is contained in:
Frank Denis 2019-01-05 14:31:44 +01:00
parent f5c14a46d0
commit 48852da7cd

View File

@ -98,7 +98,8 @@ blake2b_init0(blake2b_state *S)
S->h[i] = blake2b_IV[i];
}
/* zero everything between .t and .last_node */
memset(S->t, 0, offsetof(blake2b_state, last_node) + sizeof(S->last_node)
memset((void *) &S->t, 0,
offsetof(blake2b_state, last_node) + sizeof(S->last_node)
- offsetof(blake2b_state, t));
return 0;
}