def fin15

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

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

1032# Apply SHA-256 round 15 to the compression state.
1033def fin15(
1034  +t0: U32,
1035  +t1: U32,
1036  +t2: U32,
1037  +t3: U32,
1038  +t4: U32,
1039  +t5: U32,
1040  +t6: U32,
1041  +t7: U32,
1042  +t8: U32,
1043  +t9: U32,
1044  +t10: U32,
1045  +t11: U32,
1046  +t12: U32,
1047  +t13: U32,
1048  +t14: U32,
1049  +byte_length: Nat,
1050  +extra: Nat,
1051  state: S.State
1052) -> S.State:
1053  fips_compress16(pack(t0, t1, t2, t3), pack(t4, t5, t6, t7), pack(t8, t9, t10, t11), pack(t12, t13, t14, 128), 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), pack(0, 0, 0, 0), len_hi(byte_length), len_lo(byte_length),
1054    extra, state)

Uses (7)

Used by (1)