def kr62

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

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

320# Return the SHA-256 round constant for schedule index 62.
321def kr62(rounds_left: Nat, win: ShaWindow, state: S.State) -> S.State:
322  match rounds_left win:
323    case 0n _:
324      state
325    case 1n+z W{a, +b, c, d, e, f, +g, h, i, j, l, m, o, r, +t, +u}:
326      +w = (small1(b) + g + small0(t) + u : U32)
327      kr63(z, W{w, a, b, c, d, e, f, g, h, i, j, l, m, o, r, t}, step(state, 3204031479, w))

Uses (9)

Used by (1)