def fin12

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

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

966# Apply SHA-256 round 12 to the compression state.
967def fin12(
968  +t0: U32,
969  +t1: U32,
970  +t2: U32,
971  +t3: U32,
972  +t4: U32,
973  +t5: U32,
974  +t6: U32,
975  +t7: U32,
976  +t8: U32,
977  +t9: U32,
978  +t10: U32,
979  +t11: U32,
980  +byte_length: Nat,
981  +extra: Nat,
982  state: S.State
983) -> S.State:
984  fips_compress16(pack(t0, t1, t2, t3), pack(t4, t5, t6, t7), pack(t8, t9, t10, t11), 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), len_hi(byte_length), len_lo(byte_length),
985    extra, state)

Uses (7)

Used by (1)