def fin14

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

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

1009# Apply SHA-256 round 14 to the compression state.
1010def fin14(
1011  +t0: U32,
1012  +t1: U32,
1013  +t2: U32,
1014  +t3: U32,
1015  +t4: U32,
1016  +t5: U32,
1017  +t6: U32,
1018  +t7: U32,
1019  +t8: U32,
1020  +t9: U32,
1021  +t10: U32,
1022  +t11: U32,
1023  +t12: U32,
1024  +t13: U32,
1025  +byte_length: Nat,
1026  +extra: Nat,
1027  state: S.State
1028) -> S.State:
1029  fips_compress16(pack(t0, t1, t2, t3), pack(t4, t5, t6, t7), pack(t8, t9, t10, t11), pack(t12, t13, 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), len_hi(byte_length), len_lo(byte_length),
1030    extra, state)

Uses (7)

Used by (1)