pub struct AuthTag(pub [u8; 16]);Expand description
The 16-byte authentication tag stored alongside encrypted keys.
This is the same for all variants at time of writing (a single, static 128 bits), making
for a 50% storage overhead for a 256-bit key like those used for ChaCha
The ConstantTimeEq trait is implemented (and re-exported from the subtle crate by this crate) for constant
time equality checking of AuthTags
Tuple Fields§
§0: [u8; 16]Trait Implementations§
Source§impl ConstantTimeEq for AuthTag
impl ConstantTimeEq for AuthTag
impl Copy for AuthTag
Auto Trait Implementations§
impl Freeze for AuthTag
impl RefUnwindSafe for AuthTag
impl Send for AuthTag
impl Sync for AuthTag
impl Unpin for AuthTag
impl UnsafeUnpin for AuthTag
impl UnwindSafe for AuthTag
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