~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
symm/ecb-def.h: Simplify the discarding-output path.
[catacomb]
/
symm
/
sha512.c
diff --git
a/symm/sha512.c
b/symm/sha512.c
index
a9a5180
..
5c75eb8
100644
(file)
--- a/
symm/sha512.c
+++ b/
symm/sha512.c
@@
-275,7
+275,7
@@
void sha512_set(sha512_ctx *ctx, const void *buf, unsigned long count)
LOAD64_(ctx->h, p + 56);
ctx->off = 0;
ctx->nl = U32(count);
- ctx->nh = U32(((count & ~MASK32) >> 16) >> 16);
+ ctx->nh = U32(((count & ~
(unsigned long)
MASK32) >> 16) >> 16);
}
/* --- @sha512_hash@, @sha384_hash@ --- *