[][src]Struct stm32l0xx_hal::aes::Stream

pub struct Stream {
    pub tx: Tx,
    pub rx: Rx,
    // some fields omitted
}

An active encryption/decryption stream

You can get an instance of this struct by calling AES::enable.

Fields

tx: Tx

Can be used to write data to the AES peripheral

rx: Rx

Can be used to read data from the AES peripheral

Methods

impl Stream[src]

pub fn process(&mut self, input: &Block) -> Result<Block, Error>[src]

Processes one block of data

Writes one block of data to the AES peripheral, wait until it is processed then reads the processed block and returns it.

Whether this is encryption or decryption depends on the mode that was selected when this Stream was created.

pub fn disable(self) -> AES[src]

Disable the AES peripheral

Consumes the stream and returns the disabled AES instance. Call this method when you're done encrypting/decrypting data. You can then create another Stream using AES::enable.

Auto Trait Implementations

impl Unpin for Stream

impl Send for Stream

impl !Sync for Stream

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self