logo
pub struct Blake2bMac<OutSize> where
    OutSize: ArrayLength<u8> + IsLessOrEqual<U64>,
    LeEq<OutSize, U64>: NonZero
{ /* private fields */ }
Expand description

Blake2b 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.

Return key size in bytes.

Size of the output in bytes.

Return output size in bytes.

Update state using the provided data.

Digest input data in a chained manner.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Create new value from fixed size key.

Create new value from variable size key.

Update state using the provided data.

Process input data in a chained manner.

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.