[−][src]Struct stm32l0xx_hal::aes::Stream
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
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self