pub struct Tag { /* private fields */ }Expand description
Represents the authentication tag for AEADs
Implementations§
Source§impl Tag
impl Tag
Sourcepub const fn new_zeroed() -> Self
pub const fn new_zeroed() -> Self
Creates a new Tag instance filled with zeros.
This is typically used to create a tag buffer that will be filled by an encryption operation.
§Returns
A new Tag instance with all bytes set to zero.
§Example
use wolf_crypto::aead::Tag;
let tag = Tag::new_zeroed();
assert_eq!(tag.as_slice(), &[0u8; 16]);Trait Implementations§
Source§impl<T> PartialEq<&T> for Tag
impl<T> PartialEq<&T> for Tag
Source§impl<T> PartialEq<&mut T> for Tag
impl<T> PartialEq<&mut T> for Tag
impl Copy for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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