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

Function GenerateHash

src/crypto/equihash.cpp:67–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void GenerateHash(const eh_HashState& base_state, eh_index g,
68 unsigned char* hash, size_t hLen)
69{
70 eh_HashState state;
71 state = base_state;
72 eh_index lei = htole32(g);
73 blake2b_update(&state, (const unsigned char*) &lei, sizeof(eh_index));
74 blake2b_final(&state, hash, hLen);
75}
76
77void ExpandArray(const unsigned char* in, size_t in_len,
78 unsigned char* out, size_t out_len,

Callers 3

BasicSolveMethod · 0.85
OptimisedSolveMethod · 0.85
IsValidSolutionMethod · 0.85

Calls 1

htole32Function · 0.85

Tested by

no test coverage detected