[][src]Trait stm32l0xx_hal::aes::Mode

pub trait Mode {
    fn prepare(&self, _: &RegisterBlock);
fn select(&self, _: &mut W); }

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)

Loading content...

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

Implementors

impl Mode for CBC<Decrypt>[src]

impl Mode for CBC<Encrypt>[src]

impl Mode for CTR[src]

impl Mode for ECB<Decrypt>[src]

impl Mode for ECB<Encrypt>[src]

Loading content...