Trait digest::FixedOutput

source ·
pub trait FixedOutput: Update + OutputSizeUser + Sized {
    fn finalize_into(self, out: &mut Output<Self>);

    fn finalize_fixed(self) -> Output<Self> { ... }
}
Expand description

Trait for hash functions with fixed-size output.

Required Methods§

Consume value and write result into provided array.

Provided Methods§

Retrieve result and consume the hasher instance.

Implementors§

impl<OutSize> FixedOutput for Blake2bMac<OutSize>where
    OutSize: ArrayLength<u8> + IsLessOrEqual<U64> + 'static,
    LeEq<OutSize, U64>: NonZero,

impl<OutSize> FixedOutput for Blake2sMac<OutSize>where
    OutSize: ArrayLength<u8> + IsLessOrEqual<U32> + 'static,
    LeEq<OutSize, U32>: NonZero,