def rounds

mylsm-lsm-store@0.6.0.1 · src/hub_sha/core.bend:109

import mylsm-lsm-store@0.6.0.1/src/hub_sha/core.bend as Core
import 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))

Uses (4)

Used by (1)