logo
pub struct PmacCore<C, const LC_SIZE: usize> where
    C: BlockCipher + BlockEncryptMut + Clone,
    Block<C>: Dbl
{ /* private fields */ }
Expand description

Generic PMAC instance

LC_SIZE regulates size of pre-computed table used in PMAC computation. With LC_SIZE = 20 and for 128-bit block cipher the table is sufficient for 16*2^20 = 16 MiB of input data. For longer messages the l value will be computed on the fly from the last table value, which will be a bit less efficient.

Trait Implementations

Write algorithm name into f.

Size of the block in bytes.

Return block size in bytes.

Block buffer kind over which type operates.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Finalize state using remaining data stored in the provided block buffer, write result into provided array and leave self in a dirty state. Read more

Initialize value from the inner.

Inner type.

Size of the output in bytes.

Return output size in bytes.

Reset state to its initial value.

Update state using the provided data blocks.

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.

Key size in bytes.

Return key size in bytes.

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.