[]Trait skellige::prelude::blake2::digest::ExtendableOutput

pub trait ExtendableOutput {
    type Reader: XofReader;
    pub fn finalize_xof(self) -> Self::Reader;
pub fn finalize_xof_reset(&mut self) -> Self::Reader; pub fn finalize_boxed(self, n: usize) -> 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_boxed_reset(&mut self, n: usize) -> 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
{ ... } }

Trait which describes extendable-output functions (XOF).

Associated Types

type Reader: XofReader

Reader

Loading content...

Required methods

pub fn finalize_xof(self) -> Self::Reader

Retrieve XOF reader and consume hasher instance.

pub fn finalize_xof_reset(&mut self) -> Self::Reader

Retrieve XOF reader and reset hasher instance state.

Loading content...

Provided methods

pub fn finalize_boxed(self, n: usize) -> 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 into a boxed slice of the specified size and consume the hasher.

Box<[u8]> is used instead of Vec<u8> to save stack space, since they have size of 2 and 3 words respectively.

pub fn finalize_boxed_reset(&mut self, n: usize) -> 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 into a boxed slice of the specified size and reset the hasher's state.

Box<[u8]> is used instead of Vec<u8> to save stack space, since they have size of 2 and 3 words respectively.

Loading content...

Implementors

impl<X> ExtendableOutput for X where
    X: ExtendableOutputDirty + Reset

type Reader = <X as ExtendableOutputDirty>::Reader

Loading content...