Struct AesECB
pub struct AesECB<'a> { /* private fields */ }Implementations§
§impl AesECB<'_>
impl AesECB<'_>
pub fn new( registers: AesEcbRegistersManager, ecb_data: &'static mut [u8; 48], ) -> AesECB<'_>
pub fn handle_interrupt(&self)
pub fn handle_interrupt(&self)
AesEcb Interrupt handler
Trait Implementations§
§impl<'a> AES<'a, AES128> for AesECB<'a>
impl<'a> AES<'a, AES128> for AesECB<'a>
§fn set_client(&'a self, client: &'a dyn Client<'a>)
fn set_client(&'a self, client: &'a dyn Client<'a>)
Set the client instance which will receive
crypt_done() callbacks§fn set_key(&self, key: &[u8]) -> Result<(), ErrorCode>
fn set_key(&self, key: &[u8]) -> Result<(), ErrorCode>
Set the encryption key.
Returns
INVAL if length is not AESKeySize::LENGTH§fn set_iv(&self, iv: &[u8]) -> Result<(), ErrorCode>
fn set_iv(&self, iv: &[u8]) -> Result<(), ErrorCode>
Set the IV (or initial counter).
Returns
INVAL if length is not AES_BLOCK_SIZE§fn start_message(&self)
fn start_message(&self)
Begin a new message (with the configured IV) when
crypt() is
next called. Multiple calls to crypt() may be made between
calls to start_message(), allowing the encryption context to
extend over non-contiguous extents of data. Read more§impl AESCBC for AesECB<'_>
impl AESCBC for AesECB<'_>
§fn set_mode_aescbc(&self, encrypting: bool) -> Result<(), ErrorCode>
fn set_mode_aescbc(&self, encrypting: bool) -> Result<(), ErrorCode>
Call before
AES::crypt() to perform AESCBC§impl<'a> AESCCM<'a, AES128> for AesECB<'a>
impl<'a> AESCCM<'a, AES128> for AesECB<'a>
Auto Trait Implementations§
impl<'a> !Freeze for AesECB<'a>
impl<'a> !RefUnwindSafe for AesECB<'a>
impl<'a> !Send for AesECB<'a>
impl<'a> !Sync for AesECB<'a>
impl<'a> !UnwindSafe for AesECB<'a>
impl<'a> Unpin for AesECB<'a>
impl<'a> UnsafeUnpin for AesECB<'a>
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