def fin25

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

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

1317# Apply SHA-256 round 25 to the compression state.
1318def fin25(
1319  +t0: U32,
1320  +t1: U32,
1321  +t2: U32,
1322  +t3: U32,
1323  +t4: U32,
1324  +t5: U32,
1325  +t6: U32,
1326  +t7: U32,
1327  +t8: U32,
1328  +t9: U32,
1329  +t10: U32,
1330  +t11: U32,
1331  +t12: U32,
1332  +t13: U32,
1333  +t14: U32,
1334  +t15: U32,
1335  +t16: U32,
1336  +t17: U32,
1337  +t18: U32,
1338  +t19: U32,
1339  +t20: U32,
1340  +t21: U32,
1341  +t22: U32,
1342  +t23: U32,
1343  +t24: U32,
1344  +byte_length: Nat,
1345  +extra: Nat,
1346  state: S.State
1347) -> S.State:
1348  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, t22, t23), pack(t24, 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), len_hi(byte_length), len_lo(byte_length),
1349    extra, state)

Uses (7)

Used by (1)