def small1

mylsm-lsm-store@0.6.0.1 · src/hub_sha/core.bend:42

import mylsm-lsm-store@0.6.0.1/src/hub_sha/core.bend as Core
import Base

42# Compute the small sigma function for 1 for the SHA-256 compression implementation.
43def small1(+word: U32) -> U32:
44  ((U32.shrn(word, 17n) .|. U32.shln(word, 15n))
45    .^. (U32.shrn(word, 19n) .|. U32.shln(word, 13n))
46    .^. U32.shrn(word, 10n) : U32)

Uses (5)

Used by (51)