pub struct Aad<A>(A);
Expand description
The additionally authenticated data (AAD) for an opening or sealing operation. This data is authenticated but is not encrypted.
The type A
could be a byte slice &[u8]
, a byte array [u8; N]
for some constant N
, Vec<u8>
, etc.
Tuple Fields§
§0: A
Implementations§
Trait Implementations§
source§impl<A> PartialEq for Aad<A>where
A: PartialEq,
impl<A> PartialEq for Aad<A>where
A: PartialEq,
impl<A: Copy> Copy for Aad<A>
impl<A> Eq for Aad<A>where
A: Eq,
Auto Trait Implementations§
impl<A> Freeze for Aad<A>where
A: Freeze,
impl<A> RefUnwindSafe for Aad<A>where
A: RefUnwindSafe,
impl<A> Send for Aad<A>where
A: Send,
impl<A> Sync for Aad<A>where
A: Sync,
impl<A> Unpin for Aad<A>where
A: Unpin,
impl<A> UnwindSafe for Aad<A>where
A: UnwindSafe,
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