def fin11

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

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

946# Apply SHA-256 round 11 to the compression state.
947def fin11(
948  +t0: U32,
949  +t1: U32,
950  +t2: U32,
951  +t3: U32,
952  +t4: U32,
953  +t5: U32,
954  +t6: U32,
955  +t7: U32,
956  +t8: U32,
957  +t9: U32,
958  +t10: U32,
959  +byte_length: Nat,
960  +extra: Nat,
961  state: S.State
962) -> S.State:
963  fips_compress16(pack(t0, t1, t2, t3), pack(t4, t5, t6, t7), pack(t8, t9, t10, 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), pack(0, 0, 0, 0), len_hi(byte_length), len_lo(byte_length),
964    extra, state)

Uses (7)

Used by (1)