def CrHash.of_pieces
import bend-osdev-crypto@0.1.0.0/hash.bend as Hashimport Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
38# the digest of the pieces joined, through the streaming interface
39def CrHash.of_pieces(~H: Data, ~init: H, ~update: H -> B.Octets -> H, ~final: H -> B.Octets, ps: List<&2, B.Octets>) -> B.Octets:
40 final(CrHash.update_all(~H, ~update, init, ps))