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

Function Ch

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

Source from the content-addressed store, hash-verified

66namespace sha256
67{
68uint32_t inline Ch(uint32_t x, uint32_t y, uint32_t z) { return z ^ (x & (y ^ z)); }
69uint32_t inline Maj(uint32_t x, uint32_t y, uint32_t z) { return (x & y) | (z & (x | y)); }
70uint32_t inline Sigma0(uint32_t x) { return (x >> 2 | x << 30) ^ (x >> 13 | x << 19) ^ (x >> 22 | x << 10); }
71uint32_t inline Sigma1(uint32_t x) { return (x >> 6 | x << 26) ^ (x >> 11 | x << 21) ^ (x >> 25 | x << 7); }

Callers 1

RoundFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected