def feedforward
import mylsm-lsm-store@0.6.0.1/src/hub_sha/core.bend as Coreimport Base
import mylsm-lsm-store@0.6.0.1/src/hub_sha/state.bend as S
63# Feed forward for the SHA-256 compression implementation.
64def feedforward(prior_state: S.State, round_state: S.State) -> S.State:
65 S.H{a, b, c, d, e, f, g, h} = prior_state
66 S.H{i, j, k, l, m, n, o, p} = round_state
67 S.H{(a + i : U32), (b + j : U32), (c + k : U32), (d + l : U32),
68 (e + m : U32), (f + n : U32), (g + o : U32), (h + p : U32)}