law incremental3

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/hash/incremental.bend:1052

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/hash/incremental.bend as Incremental
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha3/core.bend as C3
import bend-collections-laws-crypto@1.0.0.0/src/crypto/hash.bend as H

1052# digest(update_all(new, chunks)) is the padded block loop over concat(chunks).
1053law incremental3:
1054  for +cs: List<&2, List<&2, U32>>
1055  {H.digest(H.update_all(H.new_sha3_256(), cs)) == C3.digest_bytes(C3.absorb(C3.lanes(List.append(&2, U32, List.concat(&2, U32, cs), C3.suffix(List.length(&2, U32, List.concat(&2, U32, cs))))), 24n, C3.zero())) : List<&2, U32>}

Uses (26)

Used by (1)