Struct crypto::blake2s::Blake2s [] [src]

pub struct Blake2s {
    // some fields omitted
}

Methods

impl Blake2s
[src]

fn new(outlen: usize) -> Blake2s

fn new_keyed(outlen: usize, key: &[u8]) -> Blake2s

fn reset(&mut self)

fn blake2s(out: &mut [u8], input: &[u8], key: &[u8])

Trait Implementations

impl Copy for Blake2s
[src]

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

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

Process input data.

Arguments

  • data - The input data to process.

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.