Struct nrf52833_hal::ccm::Ccm [−][src]
pub struct Ccm { /* fields omitted */ }
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
impl RefUnwindSafe for Ccm
impl UnwindSafe for Ccm
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Casts the value.
Casts the value.