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

Function Initialize

src/crypto/sha1.cpp:31–38  ·  view source on GitHub ↗

Initialize SHA-1 state. */

Source from the content-addressed store, hash-verified

29
30/** Initialize SHA-1 state. */
31void inline Initialize(uint32_t* s)
32{
33 s[0] = 0x67452301ul;
34 s[1] = 0xEFCDAB89ul;
35 s[2] = 0x98BADCFEul;
36 s[3] = 0x10325476ul;
37 s[4] = 0xC3D2E1F0ul;
38}
39
40const uint32_t k1 = 0x5A827999ul;
41const uint32_t k2 = 0x6ED9EBA1ul;

Callers 3

CSHA1Method · 0.70
sha1.cppFile · 0.70
mainFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected