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

Function Initialize

src/crypto/sha256.cpp:85–95  ·  view source on GitHub ↗

Initialize SHA-256 state. */

Source from the content-addressed store, hash-verified

83
84/** Initialize SHA-256 state. */
85void inline Initialize(uint32_t* s)
86{
87 s[0] = 0x6a09e667ul;
88 s[1] = 0xbb67ae85ul;
89 s[2] = 0x3c6ef372ul;
90 s[3] = 0xa54ff53aul;
91 s[4] = 0x510e527ful;
92 s[5] = 0x9b05688cul;
93 s[6] = 0x1f83d9abul;
94 s[7] = 0x5be0cd19ul;
95}
96
97/** Perform a number of SHA-256 transformations, processing 64-byte chunks. */
98void Transform(uint32_t* s, const unsigned char* chunk, size_t blocks)

Callers 3

TransformD64WrapperFunction · 0.70
CSHA256Method · 0.70
sha256.cppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected