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

Function Round

src/crypto/sha512.cpp:25–31  ·  view source on GitHub ↗

One round of SHA-512. */

Source from the content-addressed store, hash-verified

23
24/** One round of SHA-512. */
25void inline Round(uint64_t a, uint64_t b, uint64_t c, uint64_t& d, uint64_t e, uint64_t f, uint64_t g, uint64_t& h, uint64_t k, uint64_t w)
26{
27 uint64_t t1 = h + Sigma1(e) + Ch(e, f, g) + k + w;
28 uint64_t t2 = Sigma0(a) + Maj(a, b, c);
29 d += t1;
30 h = t1 + t2;
31}
32
33/** Initialize SHA-256 state. */
34void inline Initialize(uint64_t* s)

Callers 1

TransformFunction · 0.70

Calls 4

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

Tested by

no test coverage detected