@ -48,13 +48,13 @@ static inline int blake2b_set_lastnode( blake2b_state *S )
S - > f [ 1 ] = ~ 0ULL ;
return 0 ;
}
#if 0
static inline int blake2b_clear_lastnode ( blake2b_state * S )
{
S - > f [ 1 ] = 0ULL ;
return 0 ;
}
# endif
/* Some helper functions, not necessarily useful */
static inline int blake2b_set_lastblock ( blake2b_state * S )
{
@ -63,7 +63,7 @@ static inline int blake2b_set_lastblock( blake2b_state *S )
S - > f [ 0 ] = ~ 0ULL ;
return 0 ;
}
#if 0
static inline int blake2b_clear_lastblock ( blake2b_state * S )
{
if ( S - > last_node ) blake2b_clear_lastnode ( S ) ;
@ -71,7 +71,7 @@ static inline int blake2b_clear_lastblock( blake2b_state *S )
S - > f [ 0 ] = 0ULL ;
return 0 ;
}
# endif
static inline int blake2b_increment_counter ( blake2b_state * S , const uint64_t inc )
{
S - > t [ 0 ] + = inc ;
@ -82,6 +82,7 @@ static inline int blake2b_increment_counter( blake2b_state *S, const uint64_t in
// Parameter-related functions
#if 0
static inline int blake2b_param_set_digest_length ( blake2b_param * P , const uint8_t digest_length )
{
P - > digest_length = digest_length ;
@ -123,7 +124,7 @@ static inline int blake2b_param_set_inner_length( blake2b_param *P, const uint8_
P - > inner_length = inner_length ;
return 0 ;
}
# endif
static inline int blake2b_param_set_salt ( blake2b_param * P , const uint8_t salt [ BLAKE2B_SALTBYTES ] )
{
memcpy ( P - > salt , salt , BLAKE2B_SALTBYTES ) ;