pub trait Hash: AsRef<[u8]> + AsMut<[u8]> + Sized {
type Op: HashOp;
type Arg;
// Required methods
fn new(arg: Self::Arg) -> Self;
fn kind(&self) -> HashKind;
fn start_op(&self) -> Result<Self::Op>;
}
Expand description
A cryptographic hash.