diff --git a/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c b/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c index e98c9f12..f43bc6bf 100644 --- a/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +++ b/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c @@ -150,9 +150,10 @@ static inline int blake2b_init0( blake2b_state *S ) int blake2b_init_param( blake2b_state *S, const blake2b_param *P ) { size_t i; + const uint8_t *p; blake2b_init0( S ); - const uint8_t *p = ( const uint8_t * )( P ); + p = ( const uint8_t * )( P ); /* IV XOR ParamBlock */ for( i = 0; i < 8; ++i ) diff --git a/src/libsodium/crypto_generichash/blake2/ref/blake2s-ref.c b/src/libsodium/crypto_generichash/blake2/ref/blake2s-ref.c index 03c2bb22..3103c31c 100644 --- a/src/libsodium/crypto_generichash/blake2/ref/blake2s-ref.c +++ b/src/libsodium/crypto_generichash/blake2/ref/blake2s-ref.c @@ -145,9 +145,10 @@ static inline int blake2s_init0( blake2s_state *S ) int blake2s_init_param( blake2s_state *S, const blake2s_param *P ) { size_t i; + uint32_t *p; blake2s_init0( S ); - uint32_t *p = ( uint32_t * )( P ); + p = ( uint32_t * )( P ); /* IV XOR ParamBlock */ for( i = 0; i < 8; ++i )