def fused_compress
bend-collections@1.0.0.0 · proofs/crypto/sha/packed/core_model.bend:106
import bend-collections@1.0.0.0/proofs/crypto/sha/packed/core_model.bend as CoreModel
import Base
import bend-collections@1.0.0.0/src/crypto/sha/packed/core.bend as Runtime
import bend-collections@1.0.0.0/src/crypto/sha/state.bend as S
106def fused_compress(+block: List<&2, U32>, +extra: Nat, +ks: List<&2, U32>, +s: S.State) -> S.State:
107 match block:
108 case a <> b <> c <> d <> e <> f <> g <> h <> i <> j <> k <> l <> m <> n <> o <> p <> Nil{}:
109 Runtime.feedforward(s, window_schedule_rounds(
110 [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p], extra,
111 Runtime.W{p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, a}, ks, s))
112 case _:
113 fused_compress_slow(block, extra, ks, s)