Struct blake2_rfc::blake2b::Blake2b
[−]
[src]
pub struct Blake2b { /* fields omitted */ }
State context.
Methods
impl Blake2b
[src]
fn new(nn: usize) -> Self
[src]
Creates a new hashing context without a key.
fn with_key(nn: usize, k: &[u8]) -> Self
[src]
Creates a new hashing context with a key.
fn update(&mut self, data: &[u8])
[src]
Updates the hashing context with more data.
fn finalize(self) -> Blake2bResult
[src]
Consumes the hashing context and returns the resulting hash.
Trait Implementations
impl Clone for Blake2b
[src]
fn clone(&self) -> Blake2b
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Blake2b
[src]
impl Write for Blake2b
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>
[src]
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[src]
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
Writes a formatted string into this writer, returning any error encountered. Read more
fn by_ref(&mut self) -> &mut Self
1.0.0[src]
Creates a "by reference" adaptor for this instance of Write
. Read more