diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-01-10 11:52:32 +0100 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-01-10 11:52:32 +0100 |
commit | 529ca39e9dfab73dd0853def9d1624533ab50259 (patch) | |
tree | f06490d421fe2f3e5c44945f7ebb720559218f9c | |
parent | Merge pull request #2986 (diff) | |
parent | blake256: fix wrong hash when computed in parts (diff) | |
download | monero-529ca39e9dfab73dd0853def9d1624533ab50259.tar.xz |
Merge pull request #2988
8a4610c3 blake256: fix wrong hash when computed in parts (moneromooo-monero)
Diffstat (limited to '')
-rw-r--r-- | src/crypto/blake256.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/blake256.c b/src/crypto/blake256.c index 1e43f9c4d..95b2a6927 100644 --- a/src/crypto/blake256.c +++ b/src/crypto/blake256.c @@ -157,7 +157,7 @@ void blake256_update(state *S, const uint8_t *data, uint64_t datalen) { int left = S->buflen >> 3; int fill = 64 - left; - if (left && (((datalen >> 3) & 0x3F) >= (unsigned) fill)) { + if (left && (((datalen >> 3)) >= (unsigned) fill)) { memcpy((void *) (S->buf + left), (void *) data, fill); S->t[0] += 512; if (S->t[0] == 0) S->t[1]++; |