def step

bend-collections@1.0.0.0 · src/crypto/sha/core.bend:43

import bend-collections@1.0.0.0/src/crypto/sha/core.bend as Core
import Base
import bend-collections@1.0.0.0/src/crypto/sha/state.bend as S

43def step(s: S.State, k: U32, w: U32) -> S.State:
44  S.H{+a, +b, +c, d, +e, +f, +g, h} = s
45  +t1 = (h + big1(e) + choose(e, f, g) + k + w : U32)
46  t2 = (big0(a) + majority(a, b, c) : U32)
47  S.H{(t1 + t2 : U32), a, b, c, (d + t1 : U32), e, f, g}

Uses (7)

Used by (110)