From 96896dfdd728e23935c7c8cd9eb0d793e3884686 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Mon, 22 Dec 2014 22:19:08 -0800 Subject: blake2b-ref: Separate declaration and code Fixes old compilers like gcc 2.95.3. Yes some people are still using it. --- blake2b-ref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blake2b-ref.c b/blake2b-ref.c index bcf81da..43cf4c1 100644 --- a/blake2b-ref.c +++ b/blake2b-ref.c @@ -149,10 +149,10 @@ static inline int blake2b_init0( blake2b_state *S ) /* init xors IV with input parameter block */ int blake2b_init_param( blake2b_state *S, const blake2b_param *P ) { - blake2b_init0( S ); uint8_t *p = ( uint8_t * )( P ); size_t i; + blake2b_init0( S ); /* IV XOR ParamBlock */ for( i = 0; i < 8; ++i ) S->h[i] ^= load64( p + sizeof( S->h[i] ) * i ); -- cgit v1.2.1