def fin10

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

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

927# Apply SHA-256 round 10 to the compression state.
928def fin10(
929  +t0: U32,
930  +t1: U32,
931  +t2: U32,
932  +t3: U32,
933  +t4: U32,
934  +t5: U32,
935  +t6: U32,
936  +t7: U32,
937  +t8: U32,
938  +t9: U32,
939  +byte_length: Nat,
940  +extra: Nat,
941  state: S.State
942) -> S.State:
943  fips_compress16(pack(t0, t1, t2, t3), pack(t4, t5, t6, t7), pack(t8, t9, 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), len_hi(byte_length), len_lo(byte_length),
944    extra, state)

Uses (7)

Used by (1)