pub struct Aes<'a> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<'a> AES128<'a> for Aes<'a>
impl<'a> AES128<'a> for Aes<'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 moreAuto Trait Implementations§
impl<'a> !Freeze for Aes<'a>
impl<'a> !RefUnwindSafe for Aes<'a>
impl<'a> !Send for Aes<'a>
impl<'a> !Sync for Aes<'a>
impl<'a> Unpin for Aes<'a>
impl<'a> !UnwindSafe for Aes<'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