def fin19

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

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

1134# Apply SHA-256 round 19 to the compression state.
1135def fin19(
1136  +t0: U32,
1137  +t1: U32,
1138  +t2: U32,
1139  +t3: U32,
1140  +t4: U32,
1141  +t5: U32,
1142  +t6: U32,
1143  +t7: U32,
1144  +t8: U32,
1145  +t9: U32,
1146  +t10: U32,
1147  +t11: U32,
1148  +t12: U32,
1149  +t13: U32,
1150  +t14: U32,
1151  +t15: U32,
1152  +t16: U32,
1153  +t17: U32,
1154  +t18: U32,
1155  +byte_length: Nat,
1156  +extra: Nat,
1157  state: S.State
1158) -> S.State:
1159  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, 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), len_hi(byte_length), len_lo(byte_length),
1160    extra, state)

Uses (7)

Used by (1)