MCPcopy Create free account
hub / github.com/ElementsProject/elements / Finalize

Method Finalize

src/hash.h:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 static const size_t OUTPUT_SIZE = CSHA256::OUTPUT_SIZE;
29
30 void Finalize(Span<unsigned char> output) {
31 assert(output.size() == OUTPUT_SIZE);
32 unsigned char buf[CSHA256::OUTPUT_SIZE];
33 sha.Finalize(buf);
34 sha.Reset().Write(buf, CSHA256::OUTPUT_SIZE).Finalize(output.data());
35 }
36
37 CHash256& Write(Span<const unsigned char> input) {
38 sha.Write(input.data(), input.size());

Callers 5

FinalizeMethod · 0.45
HashFunction · 0.45
Hash160Function · 0.45
GetHashMethod · 0.45
GetSHA256Method · 0.45

Calls 4

sizeMethod · 0.45
WriteMethod · 0.45
ResetMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected