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

Function Round

src/crypto/ripemd160.cpp:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33uint32_t inline rol(uint32_t x, int i) { return (x << i) | (x >> (32 - i)); }
34
35void inline Round(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t f, uint32_t x, uint32_t k, int r)
36{
37 a = rol(a + f + x + k, r) + e;
38 c = rol(c, 10);
39}
40
41void inline R11(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f1(b, c, d), x, 0, r); }
42void inline R21(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f2(b, c, d), x, 0x5A827999ul, r); }

Callers 10

R11Function · 0.70
R21Function · 0.70
R31Function · 0.70
R41Function · 0.70
R51Function · 0.70
R12Function · 0.70
R22Function · 0.70
R32Function · 0.70
R42Function · 0.70
R52Function · 0.70

Calls 1

rolFunction · 0.70

Tested by

no test coverage detected