def fin7

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

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

876# Apply SHA-256 round 7 to the compression state.
877def fin7(
878  +t0: U32,
879  +t1: U32,
880  +t2: U32,
881  +t3: U32,
882  +t4: U32,
883  +t5: U32,
884  +t6: U32,
885  +byte_length: Nat,
886  +extra: Nat,
887  state: S.State
888) -> S.State:
889  fips_compress16(pack(t0, t1, t2, t3), pack(t4, t5, t6, 128), pack(0, 0, 0, 0), pack(0, 0, 0, 0), pack(0, 0, 0, 0), pack(0, 0, 0, 0), pack(0, 0, 0, 0), pack(0, 0, 0, 0), pack(0, 0, 0, 0), pack(0, 0, 0, 0), pack(0, 0, 0, 0), pack(0, 0, 0, 0), pack(0, 0, 0, 0), pack(0, 0, 0, 0), len_hi(byte_length), len_lo(byte_length),
890    extra, state)

Uses (7)

Used by (1)