Trait hashlib_prelude::HashAlgo
source · 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.