Struct capsules_extra::test::aes_ccm::Test
source · pub struct Test<'a, A: AES128CCM<'a>> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a, A: AES128CCM<'a>> CCMClient for Test<'a, A>
impl<'a, A: AES128CCM<'a>> CCMClient for Test<'a, A>
source§fn crypt_done(
&self,
buf: &'static mut [u8],
res: Result<(), ErrorCode>,
tag_is_valid: bool,
)
fn crypt_done( &self, buf: &'static mut [u8], res: Result<(), ErrorCode>, tag_is_valid: bool, )
res
is Ok(()) if the encryption/decryption process succeeded. This
does not mean that the message has been verified in the case of
decryption.
If we are encrypting: tag_is_valid
is true
iff res
is Ok(()).
If we are decrypting: tag_is_valid
is true
iff res
is Ok(()) and the
message authentication tag is valid.Auto Trait Implementations§
impl<'a, A> !Freeze for Test<'a, A>
impl<'a, A> !RefUnwindSafe for Test<'a, A>
impl<'a, A> Send for Test<'a, A>where
A: Sync,
impl<'a, A> !Sync for Test<'a, A>
impl<'a, A> Unpin for Test<'a, A>
impl<'a, A> !UnwindSafe for Test<'a, 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