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

Function Initialize

src/crypto/ripemd160.cpp:24–31  ·  view source on GitHub ↗

Initialize RIPEMD-160 state. */

Source from the content-addressed store, hash-verified

22
23/** Initialize RIPEMD-160 state. */
24void inline Initialize(uint32_t* s)
25{
26 s[0] = 0x67452301ul;
27 s[1] = 0xEFCDAB89ul;
28 s[2] = 0x98BADCFEul;
29 s[3] = 0x10325476ul;
30 s[4] = 0xC3D2E1F0ul;
31}
32
33uint32_t inline rol(uint32_t x, int i) { return (x << i) | (x >> (32 - i)); }
34

Callers 2

CRIPEMD160Method · 0.70
ripemd160.cppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected