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

Function sigma1

src/crypto/sha256_sse41.cpp:36–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34__m128i inline Sigma1(__m128i x) { return Xor(Or(ShR(x, 6), ShL(x, 26)), Or(ShR(x, 11), ShL(x, 21)), Or(ShR(x, 25), ShL(x, 7))); }
35__m128i inline sigma0(__m128i x) { return Xor(Or(ShR(x, 7), ShL(x, 25)), Or(ShR(x, 18), ShL(x, 14)), ShR(x, 3)); }
36__m128i inline sigma1(__m128i x) { return Xor(Or(ShR(x, 17), ShL(x, 15)), Or(ShR(x, 19), ShL(x, 13)), ShR(x, 10)); }
37
38/** One round of SHA-256. */
39void inline __attribute__((always_inline)) Round(__m128i a, __m128i b, __m128i c, __m128i& d, __m128i e, __m128i f, __m128i g, __m128i& h, __m128i k)

Callers 1

Transform_4wayFunction · 0.70

Calls 4

XorFunction · 0.70
OrFunction · 0.70
ShRFunction · 0.70
ShLFunction · 0.70

Tested by

no test coverage detected