[][src]Trait digest::DynDigest

pub trait DynDigest {
    fn input(&mut self, data: &[u8]);
fn result_reset(&mut self) -> Box<[u8]>;
fn result(self: Box<Self>) -> Box<[u8]>;
fn reset(&mut self);
fn output_size(&self) -> usize; }

The DynDigest trait is a modification of Digest trait suitable for trait objects.

Required methods

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

Digest input data.

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

fn result_reset(&mut self) -> Box<[u8]>

Retrieve result and reset hasher instance

fn result(self: Box<Self>) -> Box<[u8]>

Retrieve result and consume boxed hasher instance

fn reset(&mut self)

Reset hasher instance to its initial state.

fn output_size(&self) -> usize

Get output size of the hasher

Loading content...

Implementors

impl<D: Input + FixedOutput + Reset + Clone> DynDigest for D[src]

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

Digest input data.

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

fn result_reset(&mut self) -> Box<[u8]>[src]

Retrieve result and reset hasher instance

fn result(self: Box<Self>) -> Box<[u8]>[src]

Retrieve result and consume boxed hasher instance

fn output_size(&self) -> usize[src]

Get output size of the hasher

Loading content...