diff options
Diffstat (limited to 'libblake_blake2b_digest_get_required_input_size.c')
-rw-r--r-- | libblake_blake2b_digest_get_required_input_size.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libblake_blake2b_digest_get_required_input_size.c b/libblake_blake2b_digest_get_required_input_size.c index 12288df..b4358c1 100644 --- a/libblake_blake2b_digest_get_required_input_size.c +++ b/libblake_blake2b_digest_get_required_input_size.c @@ -7,7 +7,7 @@ libblake_blake2b_digest_get_required_input_size(size_t len) size_t blocks, rem; blocks = len >> 7; rem = len & 127; - if (rem) + if (rem || !blocks) blocks += 1; return blocks << 7; } |