pub struct AesECB<'a> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a> AES128<'a> for AesECB<'a>
impl<'a> AES128<'a> for AesECB<'a>
source§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()
callbackssource§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 AES128_KEY_SIZE
source§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 AES128_BLOCK_SIZE
source§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 moresource§impl<'a> AES128CCM<'a> for AesECB<'a>
impl<'a> AES128CCM<'a> for AesECB<'a>
source§fn set_client(&'a self, _client: &'a dyn CCMClient)
fn set_client(&'a self, _client: &'a dyn CCMClient)
Set the client instance which will receive crypt_done()
callbacks
source§fn set_key(&self, _key: &[u8]) -> Result<(), ErrorCode>
fn set_key(&self, _key: &[u8]) -> Result<(), ErrorCode>
Set the key to be used for CCM encryption
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> Unpin for AesECB<'a>
impl<'a> !UnwindSafe 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