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

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

Implementations

Inits the CCM peripheral. This method also demands ownership of the AAR peripheral, because it shares registers with the CCM.

Encrypts a packet and generates a MIC.

The generated MIC will be placed after the payload in the cipher_packet. The slices passed to this method must have the correct size, for more information refer to the module level documentation. The counter in ccm_data will be incremented if the operation succeeds. All parameters passed to this method must reside in RAM.

Decrypts a packet and checks its MIC.

This method will return an error if the MIC verification fails. The slices passed to this method must have the correct size, for more information refer to the module level documentation. The counter in ccm_data will be incremented if the operation succeeds. All parameters passed to this method must reside in RAM.

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.

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

UnwrappedCasts the value.

Casts the value.

WrappingCasts the value.