Skip to content

Commit

Permalink
Merge 06dbbe7 into merged_master (Bitcoin PR #19931)
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Nov 29, 2020
2 parents a5b1198 + 06dbbe7 commit 1a00b8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/crypto/siphash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ CSipHasher& CSipHasher::Write(const unsigned char* data, size_t size)
{
uint64_t v0 = v[0], v1 = v[1], v2 = v[2], v3 = v[3];
uint64_t t = tmp;
int c = count;
uint8_t c = count;

while (size--) {
t |= ((uint64_t)(*(data++))) << (8 * (c % 8));
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/siphash.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CSipHasher
private:
uint64_t v[4];
uint64_t tmp;
int count;
uint8_t count; // Only the low 8 bits of the input size matter.

public:
/** Construct a SipHash calculator initialized with 128-bit key (k0, k1) */
Expand Down

0 comments on commit 1a00b8a

Please sign in to comment.