[−][src]Trait stm32l0xx_hal::aes::Mode
Implemented for all chaining modes
This is mostly an internal trait. The user won't typically need to use or implement this, except to call the various static methods that create a mode.
Required methods
fn prepare(&self, _: &RegisterBlock)
fn select(&self, _: &mut W)
Methods
impl dyn Mode
[src]
pub fn ecb_encrypt() -> ECB<Encrypt>
[src]
Use this with AES::enable
to encrypt using ECB
pub fn ecb_decrypt() -> ECB<Decrypt>
[src]
Use this with AES::enable
to decrypt using ECB
pub fn cbc_encrypt(init_vector: [u32; 4]) -> CBC<Encrypt>
[src]
Use this with AES::enable
to encrypt using CBC
pub fn cbc_decrypt(init_vector: [u32; 4]) -> CBC<Decrypt>
[src]
Use this with AES::enable
to decrypt using CBC
pub fn ctr(init_vector: [u32; 3]) -> CTR
[src]
Use this with AES::enable
to encrypt or decrypt using CTR