def fin4

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

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

834# Apply SHA-256 round 4 to the compression state.
835def fin4(
836  +t0: U32,
837  +t1: U32,
838  +t2: U32,
839  +t3: U32,
840  +byte_length: Nat,
841  +extra: Nat,
842  state: S.State
843) -> S.State:
844  fips_compress16(pack(t0, t1, t2, t3), pack(128, 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), pack(0, 0, 0, 0), len_hi(byte_length), len_lo(byte_length),
845    extra, state)

Uses (7)

Used by (1)