Struct blake2::Blake2s
[−]
[src]
pub struct Blake2s { /* fields omitted */ }
Hash function context.
Methods
impl Blake2s
[src]
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 Debug for Blake2s
[src]
impl Default for Blake2s
[src]
impl BlockInput for Blake2s
[src]
type BlockSize = U32
impl Input for Blake2s
[src]
fn process(&mut self, input: &[u8])
Digest input data. This method can be called repeatedly for use with streaming messages. Read more
impl FixedOutput for Blake2s
[src]
type OutputSize = U32
fn fixed_result(self) -> GenericArray<u8, U32>
Retrieve the digest result. This method consumes digest instance.
impl Mac for Blake2s
[src]
type OutputSize = U32
fn new(key: &[u8]) -> Self
Create new MAC instance. DO NOT USE low-entropy keys (e.g. passwords)! Read more
fn input(&mut self, data: &[u8])
Process input data.
fn result(self) -> MacResult<Self::OutputSize>
Obtain the result of a Mac
computation as a MacResult
.
fn verify(self, code: &[u8]) -> bool
Check if code is correct for the processed input