Skip to content

Commit

Permalink
fix(crypto): Fix incorrect handling of empty input in blake256_Update().
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkozlik authored and mmilata committed Jun 11, 2021
1 parent 52c34c7 commit b2cc3bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crypto/blake256.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,8 @@ void blake256_Update( BLAKE256_CTX *S, const uint8_t *in, size_t inlen )
{
memcpy( ( void * ) ( S->buf + left ), \
( void * ) in, ( size_t ) inlen );
S->buflen = left + ( int )inlen;
}
else S->buflen = 0;
S->buflen = left + inlen;
}


Expand Down

0 comments on commit b2cc3bc

Please sign in to comment.