def kr46

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

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

464# Return the SHA-256 round constant for schedule index 46.
465def kr46(rounds_left: Nat, win: ShaWindow, state: S.State) -> S.State:
466  match rounds_left win:
467    case 0n _:
468      state
469    case 1n+z W{a, +b, c, d, e, f, +g, h, i, j, l, m, o, r, +t, +u}:
470      +w = (small1(b) + g + small0(t) + u : U32)
471      kr47(z, W{w, a, b, c, d, e, f, g, h, i, j, l, m, o, r, t}, step(state, 4094571909, w))

Uses (9)

Used by (1)