Struct wolf_crypto::aes::Tag
source · pub struct Tag { /* private fields */ }Expand description
Represents the authentication tag produced by AES-GCM encryption.
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::aes::gcm::Tag;
let tag = Tag::new_zeroed();
assert_eq!(tag.as_slice(), &[0u8; 16]);Trait Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)