From 6fdcdff86e215e06817462c0fe4d63a0ca64cf21 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Tue, 23 Dec 2014 06:15:47 +0000
Subject: blake2b: Separate declaration and code

Fixes old compilers like gcc 2.95.3.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>

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 );
-- 
1.8.3.4

