Skip to content

digest: add a Readand Write wrappers #641

Open
@piegamesde

Description

@piegamesde

I can pass a hasher where I need a Write, and I'll get the digest of the written bytes. I can also have a reader and std::io::copy into the hasher to get the digest of all read bytes. In both cases, those bytes go into the void, there is nothing of them left except for the hash.

Sometimes, I want to process data and hash it along the way. So it'd be cool to have Read and Write wrappers for hashers that can decorate around any IO and give me the hash while passing the data along.

Metadata

Metadata

Assignees

No one assigned

    Labels

    digestHash function crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions