Struct crypto::blake2b::Blake2b [−][src]
pub struct Blake2b { /* fields omitted */ }Methods
impl Blake2b[src]
impl Blake2bpub fn new(outlen: usize) -> Blake2b[src]
pub fn new(outlen: usize) -> Blake2bpub fn new_keyed(outlen: usize, key: &[u8]) -> Blake2b[src]
pub fn new_keyed(outlen: usize, key: &[u8]) -> Blake2bpub fn reset(&mut self)[src]
pub fn reset(&mut self)pub fn blake2b(out: &mut [u8], input: &[u8], key: &[u8])[src]
pub fn blake2b(out: &mut [u8], input: &[u8], key: &[u8])Trait Implementations
impl Copy for Blake2b[src]
impl Copy for Blake2bimpl Clone for Blake2b[src]
impl Clone for Blake2bfn clone(&self) -> Blake2b[src]
fn clone(&self) -> Blake2bReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Digest for Blake2b[src]
impl Digest for Blake2bfn reset(&mut self)[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])[src]
fn input(&mut self, msg: &[u8])Provide message data. Read more
fn result(&mut self, out: &mut [u8])[src]
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[src]
fn output_bits(&self) -> usizeGet the output size in bits.
fn block_size(&self) -> usize[src]
fn block_size(&self) -> usizeGet the block size in bytes.
fn output_bytes(&self) -> usize[src]
fn output_bytes(&self) -> usizeGet the output size in bytes.
fn input_str(&mut self, input: &str)[src]
fn input_str(&mut self, input: &str)Convenience function that feeds a string into a digest. Read more
fn result_str(&mut self) -> String[src]
fn result_str(&mut self) -> StringConvenience function that retrieves the result of a digest as a String in hexadecimal format. Read more
impl Mac for Blake2b[src]
impl Mac for Blake2bfn input(&mut self, data: &[u8])[src]
fn input(&mut self, data: &[u8])fn reset(&mut self)[src]
fn reset(&mut self)Reset the Mac state to begin processing another input stream.
fn result(&mut self) -> MacResult[src]
fn result(&mut self) -> MacResultObtain the result of a Mac computation as a MacResult.
fn raw_result(&mut self, output: &mut [u8])[src]
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[src]
fn output_bytes(&self) -> usizeGet the size of the Mac code, in bytes.