def step

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

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

56# Handle step in the SHA-256 compression implementation.
57def step(state: S.State, round_constant: U32, schedule_word: U32) -> S.State:
58  S.H{+a, +b, +c, d, +e, +f, +g, h} = state
59  +t1 = (h + big1(e) + choose(e, f, g) + round_constant + schedule_word : U32)
60  t2 = (big0(a) + majority(a, b, c) : U32)
61  S.H{(t1 + t2 : U32), a, b, c, (d + t1 : U32), e, f, g}

Uses (7)

Used by (55)