Struct lpc55_hal::drivers::aes::Aes[][src]

pub struct Aes<'a, Size: KeySize> { /* fields omitted */ }

Implementations

New AES struct implementing block-cipher.

New AES starting in decryption mode

New AES starting in encryption mode

Optionally, configure peripheral for decryption ahead of time.

Optionally, configure peripheral for encryption ahead of time.

Methods from Deref<Target = Hashcrypt<Enabled>>

SHA-1, as in RustCrypto digest trait

SHA-256, as in RustCrypto digest trait

AES-128 “ECB”, as in RustCrypto block-cipher trait

AES-192 “ECB”, as in RustCrypto block-cipher trait

AES-256 “ECB”, as in RustCrypto block-cipher trait

AES “ECB” with PUF key, for use as in RustCrypto block-cipher trait

DOES NOT PROPERLY CHECK IF PUF AES KEY IS SETUP YET! TODO: have user pass in some token signaling PUF AES key is setup

Trait Implementations

Size of the block in bytes

Number of blocks which can be processed in parallel by cipher implementation Read more

Decrypt block in-place

Decrypt several blocks in parallel using instruction level parallelism if possible. Read more

Decrypt a slice of blocks, leveraging parallelism when available.

Encrypt block in-place

Encrypt several blocks in parallel using instruction level parallelism if possible. Read more

Encrypt a slice of blocks, leveraging parallelism when available.

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Decrypt block in-place

Encrypt block in-place

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

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.