def step

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/sha512.bend:234

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/sha512.bend as Sha512
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/types.bend as T

234def step(s: T.State, k: T.Lane, w: T.Lane) -> T.State:
235  T.H{+a, +b, +c, d, +e, +f, +g, h} = s
236  +t1 = add(add(add(add(h, sum1(e)), ch(e, f, g)), k), w)
237  t2 = add(sum0(a), maj(a, b, c))
238  T.H{add(t1, t2), a, b, c, add(d, t1), e, f, g}

Uses (7)

Used by (3)