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

Function Round

src/crypto/sha256.cpp:76–82  ·  view source on GitHub ↗

One round of SHA-256. */

Source from the content-addressed store, hash-verified

74
75/** One round of SHA-256. */
76void inline Round(uint32_t a, uint32_t b, uint32_t c, uint32_t& d, uint32_t e, uint32_t f, uint32_t g, uint32_t& h, uint32_t k)
77{
78 uint32_t t1 = h + Sigma1(e) + Ch(e, f, g) + k;
79 uint32_t t2 = Sigma0(a) + Maj(a, b, c);
80 d += t1;
81 h = t1 + t2;
82}
83
84/** Initialize SHA-256 state. */
85void inline Initialize(uint32_t* s)

Callers 2

TransformFunction · 0.70
TransformD64Function · 0.70

Calls 4

Sigma1Function · 0.70
ChFunction · 0.70
Sigma0Function · 0.70
MajFunction · 0.70

Tested by

no test coverage detected