def fin21

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

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

1191# Apply SHA-256 round 21 to the compression state.
1192def fin21(
1193  +t0: U32,
1194  +t1: U32,
1195  +t2: U32,
1196  +t3: U32,
1197  +t4: U32,
1198  +t5: U32,
1199  +t6: U32,
1200  +t7: U32,
1201  +t8: U32,
1202  +t9: U32,
1203  +t10: U32,
1204  +t11: U32,
1205  +t12: U32,
1206  +t13: U32,
1207  +t14: U32,
1208  +t15: U32,
1209  +t16: U32,
1210  +t17: U32,
1211  +t18: U32,
1212  +t19: U32,
1213  +t20: U32,
1214  +byte_length: Nat,
1215  +extra: Nat,
1216  state: S.State
1217) -> S.State:
1218  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, t18, t19), pack(t20, 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), len_hi(byte_length), len_lo(byte_length),
1219    extra, state)

Uses (7)

Used by (1)