1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

Verify at compile time that blake2b_param is packed as expected

This commit is contained in:
Frank Denis 2016-03-18 10:20:56 +01:00
parent 76e3e91576
commit 0c06979260

View File

@ -156,6 +156,7 @@ int blake2b_init_param( blake2b_state *S, const blake2b_param *P )
size_t i;
const uint8_t *p;
(void) sizeof(int[sizeof *P == 64 ? 1 : -1]);
blake2b_init0( S );
p = ( const uint8_t * )( P );