def fin22

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

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

1221# Apply SHA-256 round 22 to the compression state.
1222def fin22(
1223  +t0: U32,
1224  +t1: U32,
1225  +t2: U32,
1226  +t3: U32,
1227  +t4: U32,
1228  +t5: U32,
1229  +t6: U32,
1230  +t7: U32,
1231  +t8: U32,
1232  +t9: U32,
1233  +t10: U32,
1234  +t11: U32,
1235  +t12: U32,
1236  +t13: U32,
1237  +t14: U32,
1238  +t15: U32,
1239  +t16: U32,
1240  +t17: U32,
1241  +t18: U32,
1242  +t19: U32,
1243  +t20: U32,
1244  +t21: U32,
1245  +byte_length: Nat,
1246  +extra: Nat,
1247  state: S.State
1248) -> S.State:
1249  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, t21, 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), len_hi(byte_length), len_lo(byte_length),
1250    extra, state)

Uses (7)

Used by (1)