projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sha256: do not artificially restrict buffer length to be < 2^32
[gnulib.git]
/
lib
/
sha256.c
diff --git
a/lib/sha256.c
b/lib/sha256.c
index
a1362ca
..
0ad9444
100644
(file)
--- a/
lib/sha256.c
+++ b/
lib/sha256.c
@@
-126,7
+126,7
@@
static void
sha256_conclude_ctx (struct sha256_ctx *ctx)
{
/* Take yet unprocessed bytes into account. */
-
uint32
_t bytes = ctx->buflen;
+
size
_t bytes = ctx->buflen;
size_t size = (bytes < 56) ? 64 / 4 : 64 * 2 / 4;
/* Now count remaining bytes. */