def kr37

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

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

545# Return the SHA-256 round constant for schedule index 37.
546def kr37(rounds_left: Nat, win: ShaWindow, state: S.State) -> S.State:
547  match rounds_left win:
548    case 0n _:
549      state
550    case 1n+z W{a, +b, c, d, e, f, +g, h, i, j, l, m, o, r, +t, +u}:
551      +w = (small1(b) + g + small0(t) + u : U32)
552      kr38(z, W{w, a, b, c, d, e, f, g, h, i, j, l, m, o, r, t}, step(state, 1986661051, w))

Uses (9)

Used by (1)