def CrHash.of_pieces

bend-osdev-crypto@0.1.0.0 · hash.bend:38

import bend-osdev-crypto@0.1.0.0/hash.bend as Hash
import 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))

Uses (3)

Used by (4)