pub struct Ecb { /* private fields */ }
Expand description

A safe, blocking wrapper around the AES-ECB peripheral.

It’s really just blockwise AES and not an ECB stream cipher. Blocks can be encrypted by calling crypt_block.

Implementations

Takes ownership of the ECB peripheral, returning a safe wrapper.

Destroys self, giving the ECB peripheral back.

Blocking encryption.

Encrypts a block with key.

Errors

An error will be returned when the AES hardware raises an ERRORECB event. This can happen when an operation is started that shares the AES hardware resources with the AES ECB peripheral while an encryption operation is running.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Casts the value.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.

Returns the argument unchanged.

Calls U::from(self).

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

Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Should always be Self
Casts the value.
Casts the value.
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.
Casts the value.
Casts the value.
Casts the value.
Casts the value.