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

pub struct Blake2s {
    // some fields omitted
}

State context.

Methods

impl Blake2s
[src]

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 Debug for Blake2s
[src]

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

Formats the value using the given formatter.

impl Clone for Blake2s
[src]

fn clone(&self) -> Blake2s

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Write for Blake2s
[src]

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

Write a buffer into this object, returning how many bytes were written. Read more

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

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

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

Attempts to write an entire buffer into this write. Read more

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

Writes a formatted string into this writer, returning any error encountered. Read more

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

Creates a "by reference" adaptor for this instance of Write. Read more