def fin13

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

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

987# Apply SHA-256 round 13 to the compression state.
988def fin13(
989  +t0: U32,
990  +t1: U32,
991  +t2: U32,
992  +t3: U32,
993  +t4: U32,
994  +t5: U32,
995  +t6: U32,
996  +t7: U32,
997  +t8: U32,
998  +t9: U32,
999  +t10: U32,
1000  +t11: U32,
1001  +t12: U32,
1002  +byte_length: Nat,
1003  +extra: Nat,
1004  state: S.State
1005) -> S.State:
1006  fips_compress16(pack(t0, t1, t2, t3), pack(t4, t5, t6, t7), pack(t8, t9, t10, t11), pack(t12, 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), pack(0, 0, 0, 0), pack(0, 0, 0, 0), len_hi(byte_length), len_lo(byte_length),
1007    extra, state)

Uses (7)

Used by (1)