def fin20

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

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

1162# Apply SHA-256 round 20 to the compression state.
1163def fin20(
1164  +t0: U32,
1165  +t1: U32,
1166  +t2: U32,
1167  +t3: U32,
1168  +t4: U32,
1169  +t5: U32,
1170  +t6: U32,
1171  +t7: U32,
1172  +t8: U32,
1173  +t9: U32,
1174  +t10: U32,
1175  +t11: U32,
1176  +t12: U32,
1177  +t13: U32,
1178  +t14: U32,
1179  +t15: U32,
1180  +t16: U32,
1181  +t17: U32,
1182  +t18: U32,
1183  +t19: U32,
1184  +byte_length: Nat,
1185  +extra: Nat,
1186  state: S.State
1187) -> S.State:
1188  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(128, 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),
1189    extra, state)

Uses (7)

Used by (1)