Struct blake2_rfc::blake2s::Blake2s [] [src]

pub struct Blake2s {
    // some fields omitted
}

State context.

Methods

impl Blake2s

fn new(nn: usize) -> Self

Creates a new hashing context without a key.

fn with_key(nn: usize, k: &[u8]) -> Self

Creates a new hashing context with a key.

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

Updates the hashing context with more data.

fn finalize(self) -> Blake2sResult

Consumes the hashing context and returns the resulting hash.

Trait Implementations

impl Write for Blake2s

fn write(&mut self, buf: &[u8]) -> Result<usize>

fn flush(&mut self) -> Result<()>

fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>

fn by_ref(&mut self) -> &mut Self

fn broadcast<W>(self, other: W) -> Broadcast<Self, W> where W: Write

Derived Implementations

impl Debug for Blake2s

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Blake2s

fn clone(&self) -> Blake2s

fn clone_from(&mut self, source: &Self)