def step
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/core.bend as Coreimport Base
import bend-collections-laws-crypto@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)
- bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/types:Lane
- bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/types:State
- bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/core:add
- bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/core:big0
- bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/core:big1
- …
Used by (5)
- bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/core:block_rounds
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/sha512/conformance:step_correct
- bend-collections-laws-crypto@1.0.0.0/src/crypto/sha512/core:window_rounds
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/sha512/conformance:block_rounds_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/sha512/conformance:window_rounds_correct