def fin18

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

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

1107# Apply SHA-256 round 18 to the compression state.
1108def fin18(
1109  +t0: U32,
1110  +t1: U32,
1111  +t2: U32,
1112  +t3: U32,
1113  +t4: U32,
1114  +t5: U32,
1115  +t6: U32,
1116  +t7: U32,
1117  +t8: U32,
1118  +t9: U32,
1119  +t10: U32,
1120  +t11: U32,
1121  +t12: U32,
1122  +t13: U32,
1123  +t14: U32,
1124  +t15: U32,
1125  +t16: U32,
1126  +t17: U32,
1127  +byte_length: Nat,
1128  +extra: Nat,
1129  state: S.State
1130) -> S.State:
1131  fips_compress16(pack(t0, t1, t2, t3), pack(t4, t5, t6, t7), pack(t8, t9, t10, t11), pack(t12, t13, t14, t15), pack(t16, t17, 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), len_hi(byte_length), len_lo(byte_length),
1132    extra, state)

Uses (7)

Used by (1)