pub trait HashAlgo: Default {
    type Kernel: HashAlgoKernel;

    fn setup() -> <<Self as HashAlgo>::Kernel as HashAlgoKernel>::Option { ... }
    fn hash(
        input: &[u8]
    ) -> Result<<<Self as HashAlgo>::Kernel as HashAlgoKernel>::Output, <<Self as HashAlgo>::Kernel as HashAlgoKernel>::Error> { ... } }
Expand description

A hash algorithm.

Required Associated Types§

Provided Methods§

Input the complete bytes to compute the digest.

Implementors§