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

Function Initialize

src/crypto/sha256.cpp:65–75  ·  view source on GitHub ↗

Initialize SHA-256 state. */

Source from the content-addressed store, hash-verified

63
64/** Initialize SHA-256 state. */
65void inline Initialize(uint32_t* s)
66{
67 s[0] = 0x6a09e667ul;
68 s[1] = 0xbb67ae85ul;
69 s[2] = 0x3c6ef372ul;
70 s[3] = 0xa54ff53aul;
71 s[4] = 0x510e527ful;
72 s[5] = 0x9b05688cul;
73 s[6] = 0x1f83d9abul;
74 s[7] = 0x5be0cd19ul;
75}
76
77/** Perform a number of SHA-256 transformations, processing 64-byte chunks. */
78void 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