Struct blake2::Blake2sMac[][src]

pub struct Blake2sMac<OutSize> where
    OutSize: ArrayLength<u8> + IsLessOrEqual<U32>,
    LeEq<OutSize, U32>: NonZero
{ /* fields omitted */ }
Expand description

Blake2s MAC function

Implementations

Create new instance using provided key, salt, and persona.

Key length should not be bigger than block size, salt and persona length should not be bigger than quarter of block size. If any of those conditions is false the method will return an error.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Consume value and write result into provided array.

Retrieve result and consume the hasher instance.

Create new value from fixed size key.

Create new value from variable size key.

Key size in bytes.

Size of the output in bytes.

Update state using the provided data.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Create new value from fixed size key.

Create new value from variable size key.

Update state using the provided data.

Obtain the result of a Mac computation as a CtOutput and consume Mac instance. Read more

Obtain the result of a Mac computation as a CtOutput and reset Mac instance. Read more

Reset MAC instance to its initial state.

Check if tag/code value is correct for the processed input.

Check truncated tag correctness using all bytes of calculated tag. Read more

Check truncated tag correctness using left side bytes (i.e. tag[..n]) of calculated tag. Read more

Check truncated tag correctness using right side bytes (i.e. tag[n..]) of calculated tag. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.