pub struct Saes<'d, T: Instance, M: Mode> { /* private fields */ }Expand description
SAES driver.
Implementations§
Source§impl<'d, T: Instance> Saes<'d, T, Blocking>
impl<'d, T: Instance> Saes<'d, T, Blocking>
Sourcepub fn new_blocking(
peripheral: Peri<'d, T>,
_irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd,
) -> Self
pub fn new_blocking( peripheral: Peri<'d, T>, _irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd, ) -> Self
Instantiates, resets, and enables the SAES peripheral.
Source§impl<'d, T: Instance, M: Mode> Saes<'d, T, M>
impl<'d, T: Instance, M: Mode> Saes<'d, T, M>
Sourcepub fn start<'c, C>(&mut self, cipher: &'c C, dir: Direction) -> Context<'c, C>
pub fn start<'c, C>(&mut self, cipher: &'c C, dir: Direction) -> Context<'c, C>
Starts a new cipher operation with a software key.
Sourcepub fn start_with_hw_key<'c, C>(
&mut self,
key_source: HardwareKeySource,
cipher: &'c C,
dir: Direction,
) -> Context<'c, C>
pub fn start_with_hw_key<'c, C>( &mut self, key_source: HardwareKeySource, cipher: &'c C, dir: Direction, ) -> Context<'c, C>
Starts a new cipher operation with a hardware-derived key.
Share the current unwrapped key with another peripheral. This must be called after a decryption operation that unwrapped a key.
Sourcepub fn aad_blocking<'c, C>(
&mut self,
ctx: &mut Context<'c, C>,
aad: &[u8],
last: bool,
) -> Result<(), Error>where
C: Cipher<'c> + CipherAuthenticated<16>,
pub fn aad_blocking<'c, C>(
&mut self,
ctx: &mut Context<'c, C>,
aad: &[u8],
last: bool,
) -> Result<(), Error>where
C: Cipher<'c> + CipherAuthenticated<16>,
Process authenticated additional data (AAD) for GCM/CCM modes.
Auto Trait Implementations§
impl<'d, T, M> Freeze for Saes<'d, T, M>where
T: Freeze,
impl<'d, T, M> RefUnwindSafe for Saes<'d, T, M>where
T: RefUnwindSafe,
M: RefUnwindSafe,
impl<'d, T, M> Send for Saes<'d, T, M>where
M: Send,
impl<'d, T, M> Sync for Saes<'d, T, M>
impl<'d, T, M> Unpin for Saes<'d, T, M>
impl<'d, T, M> !UnwindSafe for Saes<'d, T, M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more