pub trait DynDigest {
    fn update(&mut self, data: &[u8]);
    fn finalize_into(self, buf: &mut [u8]) -> Result<(), InvalidBufferSize>;
    fn finalize_into_reset(
        &mut self,
        out: &mut [u8]
    ) -> Result<(), InvalidBufferSize>; fn reset(&mut self); fn output_size(&self) -> usize; fn box_clone(&self) -> Box<dyn DynDigest + 'static, Global>Notable traits for Box<W, Global>impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<F, A> Future for Box<F, A> where
    F: Future + Unpin + ?Sized,
    A: Allocator + 'static, 
type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
    I: Iterator + ?Sized,
    A: Allocator
type Item = <I as Iterator>::Item;
; fn finalize_reset(&mut self) -> Box<[u8], Global>Notable traits for Box<W, Global>impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<F, A> Future for Box<F, A> where
    F: Future + Unpin + ?Sized,
    A: Allocator + 'static, 
type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
    I: Iterator + ?Sized,
    A: Allocator
type Item = <I as Iterator>::Item;
{ ... } fn finalize(self: Box<Self, Global>) -> Box<[u8], Global>Notable traits for Box<W, Global>impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<F, A> Future for Box<F, A> where
    F: Future + Unpin + ?Sized,
    A: Allocator + 'static, 
type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
    I: Iterator + ?Sized,
    A: Allocator
type Item = <I as Iterator>::Item;
{ ... } }
Expand description

Modification of the Digest trait suitable for trait objects.

Required Methods

Digest input data.

This method can be called repeatedly for use with streaming messages.

Write result into provided array and consume the hasher instance.

Returns error if buffer length is not equal to output_size.

Write result into provided array and reset the hasher instance.

Returns error if buffer length is not equal to output_size.

Reset hasher instance to its initial state.

Get output size of the hasher

Clone hasher state into a boxed trait object

Provided Methods

Retrieve result and reset hasher instance

Retrieve result and consume boxed hasher instance

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Implementors