Struct crypto::blake2b::Blake2b
[−]
[src]
pub struct Blake2b { // some fields omitted }
Methods
impl Blake2b
[src]
fn new(outlen: usize) -> Blake2b
fn new_keyed(outlen: usize, key: &[u8]) -> Blake2b
fn reset(&mut self)
fn blake2b(out: &mut [u8], input: &[u8], key: &[u8])
Trait Implementations
impl Copy for Blake2b
[src]
impl Clone for Blake2b
[src]
fn clone(&self) -> Blake2b
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 Digest for Blake2b
[src]
fn reset(&mut self)
Reset the digest. This method must be called after result() and before supplying more data. Read more
fn input(&mut self, msg: &[u8])
Provide message data. Read more
fn result(&mut self, out: &mut [u8])
Retrieve the digest result. This method may be called multiple times. Read more
fn output_bits(&self) -> usize
Get the output size in bits.
fn block_size(&self) -> usize
Get the block size in bytes.
fn output_bytes(&self) -> usize
Get the output size in bytes.
fn input_str(&mut self, input: &str)
Convenience function that feeds a string into a digest. Read more
fn result_str(&mut self) -> String
Convenience function that retrieves the result of a digest as a String in hexadecimal format. Read more
impl Mac for Blake2b
[src]
fn input(&mut self, data: &[u8])
fn reset(&mut self)
Reset the Mac state to begin processing another input stream.
fn result(&mut self) -> MacResult
Obtain the result of a Mac computation as a MacResult.
fn raw_result(&mut self, output: &mut [u8])
Obtain the result of a Mac computation as [u8]. This method should be used very carefully since incorrect use of the Mac code could result in permitting a timing attack which defeats the security provided by a Mac function.
fn output_bytes(&self) -> usize
Get the size of the Mac code, in bytes.