def fin16

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

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

1056# Apply SHA-256 round 16 to the compression state.
1057def fin16(
1058  +t0: U32,
1059  +t1: U32,
1060  +t2: U32,
1061  +t3: U32,
1062  +t4: U32,
1063  +t5: U32,
1064  +t6: U32,
1065  +t7: U32,
1066  +t8: U32,
1067  +t9: U32,
1068  +t10: U32,
1069  +t11: U32,
1070  +t12: U32,
1071  +t13: U32,
1072  +t14: U32,
1073  +t15: U32,
1074  +byte_length: Nat,
1075  +extra: Nat,
1076  state: S.State
1077) -> S.State:
1078  fips_compress16(pack(t0, t1, t2, t3), pack(t4, t5, t6, t7), pack(t8, t9, t10, t11), pack(t12, t13, t14, t15), 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), len_hi(byte_length), len_lo(byte_length),
1079    extra, state)

Uses (7)

Used by (1)