mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Improve clarity
This commit is contained in:
parent
f5c14a46d0
commit
48852da7cd
@ -98,7 +98,8 @@ blake2b_init0(blake2b_state *S)
|
|||||||
S->h[i] = blake2b_IV[i];
|
S->h[i] = blake2b_IV[i];
|
||||||
}
|
}
|
||||||
/* zero everything between .t and .last_node */
|
/* 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));
|
- offsetof(blake2b_state, t));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user