pub struct TestAES256Ccm<'a, A: AESCCM<'a, AES256>> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'a, A: AESCCM<'a, AES256>> CCMClient for TestAES256Ccm<'a, A>
impl<'a, A: AESCCM<'a, AES256>> CCMClient for TestAES256Ccm<'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 TestAES256Ccm<'a, A>
impl<'a, A> !RefUnwindSafe for TestAES256Ccm<'a, A>
impl<'a, A> !Sync for TestAES256Ccm<'a, A>
impl<'a, A> !UnwindSafe for TestAES256Ccm<'a, A>
impl<'a, A> Send for TestAES256Ccm<'a, A>where
A: Sync,
impl<'a, A> Unpin for TestAES256Ccm<'a, A>
impl<'a, A> UnsafeUnpin for TestAES256Ccm<'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