def rounds
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
109# Handle rounds in the SHA-256 compression implementation.
110def rounds(ks: List<&2, U32>, ws: List<&2, U32>, state: S.State) -> S.State:
111 match ks ws:
112 case Nil{} _:
113 state
114 case k <> kt Nil{}:
115 state
116 case k <> kt w <> wt:
117 rounds(kt, wt, step(state, k, w))