pub trait DigestExt<const BYTE_LEN: usize = 32>: Digest {
    // Required methods
    fn from_tag(tag: impl AsRef<[u8]>) -> Self;
    fn input_raw(&mut self, data: &[u8]);
    fn finish(self) -> [u8; BYTE_LEN];

    // Provided method
    fn input_with_len<const MAX: usize>(&mut self, data: &[u8]) { ... }
}

Required Methods§

source

fn from_tag(tag: impl AsRef<[u8]>) -> Self

source

fn input_raw(&mut self, data: &[u8])

source

fn finish(self) -> [u8; BYTE_LEN]

Provided Methods§

source

fn input_with_len<const MAX: usize>(&mut self, data: &[u8])

Object Safety§

This trait is not object safe.

Implementors§