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

Function Round

src/crypto/sha1.cpp:18–22  ·  view source on GitHub ↗

One round of SHA-1. */

Source from the content-addressed store, hash-verified

16{
17/** One round of SHA-1. */
18void inline Round(uint32_t a, uint32_t& b, uint32_t c, uint32_t d, uint32_t& e, uint32_t f, uint32_t k, uint32_t w)
19{
20 e += ((a << 5) | (a >> 27)) + f + k + w;
21 b = (b << 30) | (b >> 2);
22}
23
24uint32_t inline f1(uint32_t b, uint32_t c, uint32_t d) { return d ^ (b & (c ^ d)); }
25uint32_t inline f2(uint32_t b, uint32_t c, uint32_t d) { return b ^ c ^ d; }

Callers 1

TransformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected