[]Trait librelic::prelude::blake2::digest::DynDigest

pub trait DynDigest {
    pub fn update(&mut self, data: &[u8]);
pub fn finalize_reset(&mut self) -> Box<[u8], Global>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
;
pub fn finalize(self: Box<Self, Global>) -> Box<[u8], Global>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
;
pub fn reset(&mut self);
pub fn output_size(&self) -> usize;
pub fn box_clone(&self) -> Box<dyn DynDigest + 'static, Global>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
; }

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

Required methods

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

Digest input data.

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

pub fn finalize_reset(&mut self) -> Box<[u8], Global>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized

Retrieve result and reset hasher instance

pub fn finalize(self: Box<Self, Global>) -> Box<[u8], Global>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized

Retrieve result and consume boxed hasher instance

pub fn reset(&mut self)

Reset hasher instance to its initial state.

pub fn output_size(&self) -> usize

Get output size of the hasher

pub fn box_clone(&self) -> Box<dyn DynDigest + 'static, Global>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized

Clone hasher state into a boxed trait object

Loading content...

Implementors

impl<D> DynDigest for D where
    D: 'static + FixedOutput + Update + Reset + Clone

Loading content...