def fin9

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

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

909# Apply SHA-256 round 9 to the compression state.
910def fin9(
911  +t0: U32,
912  +t1: U32,
913  +t2: U32,
914  +t3: U32,
915  +t4: U32,
916  +t5: U32,
917  +t6: U32,
918  +t7: U32,
919  +t8: U32,
920  +byte_length: Nat,
921  +extra: Nat,
922  state: S.State
923) -> S.State:
924  fips_compress16(pack(t0, t1, t2, t3), pack(t4, t5, t6, t7), pack(t8, 128, 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),
925    extra, state)

Uses (7)

Used by (1)