def fin17

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

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

1081# Apply SHA-256 round 17 to the compression state.
1082def fin17(
1083  +t0: U32,
1084  +t1: U32,
1085  +t2: U32,
1086  +t3: U32,
1087  +t4: U32,
1088  +t5: U32,
1089  +t6: U32,
1090  +t7: U32,
1091  +t8: U32,
1092  +t9: U32,
1093  +t10: U32,
1094  +t11: U32,
1095  +t12: U32,
1096  +t13: U32,
1097  +t14: U32,
1098  +t15: U32,
1099  +t16: U32,
1100  +byte_length: Nat,
1101  +extra: Nat,
1102  state: S.State
1103) -> S.State:
1104  fips_compress16(pack(t0, t1, t2, t3), pack(t4, t5, t6, t7), pack(t8, t9, t10, t11), pack(t12, t13, t14, t15), pack(t16, 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), len_hi(byte_length), len_lo(byte_length),
1105    extra, state)

Uses (7)

Used by (1)