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

Function Ch

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

Source from the content-addressed store, hash-verified

15namespace sha512
16{
17uint64_t inline Ch(uint64_t x, uint64_t y, uint64_t z) { return z ^ (x & (y ^ z)); }
18uint64_t inline Maj(uint64_t x, uint64_t y, uint64_t z) { return (x & y) | (z & (x | y)); }
19uint64_t inline Sigma0(uint64_t x) { return (x >> 28 | x << 36) ^ (x >> 34 | x << 30) ^ (x >> 39 | x << 25); }
20uint64_t inline Sigma1(uint64_t x) { return (x >> 14 | x << 50) ^ (x >> 18 | x << 46) ^ (x >> 41 | x << 23); }

Callers 1

RoundFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected