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

Function sigma0

src/simplicity/sha256.c:20–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18static inline uint32_t Sigma0(uint32_t x) { return (x >> 2 | 1U * x << 30) ^ (x >> 13 | 1U * x << 19) ^ (x >> 22 | 1U * x << 10); }
19static inline uint32_t Sigma1(uint32_t x) { return (x >> 6 | 1U * x << 26) ^ (x >> 11 | 1U * x << 21) ^ (x >> 25 | 1U * x << 7); }
20static inline uint32_t sigma0(uint32_t x) { return (x >> 7 | 1U * x << 25) ^ (x >> 18 | 1U * x << 14) ^ (x >> 3); }
21static inline uint32_t sigma1(uint32_t x) { return (x >> 17 | 1U * x << 15) ^ (x >> 19 | 1U * x << 13) ^ (x >> 10); }
22
23/* One round of SHA-256.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected