def fin6

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

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

861# Apply SHA-256 round 6 to the compression state.
862def fin6(
863  +t0: U32,
864  +t1: U32,
865  +t2: U32,
866  +t3: U32,
867  +t4: U32,
868  +t5: U32,
869  +byte_length: Nat,
870  +extra: Nat,
871  state: S.State
872) -> S.State:
873  fips_compress16(pack(t0, t1, t2, t3), pack(t4, t5, 128, 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), pack(0, 0, 0, 0), len_hi(byte_length), len_lo(byte_length),
874    extra, state)

Uses (7)

Used by (1)