MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Finalize

Method Finalize

src/hash.cpp:150–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150uint64_t CSipHasher::Finalize() const
151{
152 uint64_t v0 = v[0], v1 = v[1], v2 = v[2], v3 = v[3];
153
154 uint64_t t = tmp | (((uint64_t)count) << 56);
155
156 v3 ^= t;
157 SIPROUND;
158 SIPROUND;
159 v0 ^= t;
160 v2 ^= 0xFF;
161 SIPROUND;
162 SIPROUND;
163 SIPROUND;
164 SIPROUND;
165 return v0 ^ v1 ^ v2 ^ v3;
166}
167
168uint64_t SipHashUint256(uint64_t k0, uint64_t k1, const uint256& val)
169{

Callers 15

AddDataToRngFunction · 0.45
GetStrongRandBytesFunction · 0.45
multiUserAuthorizedFunction · 0.45
ComputeResponseFunction · 0.45
RelayAddressFunction · 0.45
BIP32HashFunction · 0.45
VerifyPubKeyMethod · 0.45
SetSeedMethod · 0.45
CheckInputsFunction · 0.45
ContextualCheckBlockFunction · 0.45
SetInternalMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected