Trait btlib::crypto::HashOp

source ·
pub trait HashOp: Op {
    type Hash: Hash;

    // Required methods
    fn kind(&self) -> HashKind;
    fn finish(&mut self) -> Result<Self::Hash>;
}
Expand description

An ongoing hash operation.

Required Associated Types§

source

type Hash: Hash

The specific hash type which is returned by the finish method.

Required Methods§

source

fn kind(&self) -> HashKind

Returns the kind of hash this operation is computing.

source

fn finish(&mut self) -> Result<Self::Hash>

Finish this operation and return a hash type containing the result.

Implementors§