def step

bend-collections@1.0.0.0 · src/crypto/sha512/core.bend:68

import bend-collections@1.0.0.0/src/crypto/sha512/core.bend as Core
import Base
import bend-collections@1.0.0.0/src/crypto/sha512/types.bend as T

68def step(s: T.State, k: T.Lane, w: T.Lane) -> T.State:
69  T.H{+a, +b, +c, d, +e, +f, +g, h} = s
70  +t1 = add(add(add(add(h, big1(e)), choose(e, f, g)), k), w)
71  t2 = add(big0(a), majority(a, b, c))
72  T.H{add(t1, t2), a, b, c, add(d, t1), e, f, g}

Uses (7)

Used by (2)