pub struct AuthenticationTag(/* private fields */);Expand description
The HMAC authentication tag produced by the encryption process.
Implementations§
Source§impl AuthenticationTag
impl AuthenticationTag
pub const AUTHENTICATION_TAG_SIZE: usize = 16usize
Sourcepub const fn from_data(data: [u8; 16]) -> Self
pub const fn from_data(data: [u8; 16]) -> Self
Restore an AuthenticationTag from a fixed-size array of bytes.
Sourcepub fn from_data_ref(data: impl AsRef<[u8]>) -> Result<Self>
pub fn from_data_ref(data: impl AsRef<[u8]>) -> Result<Self>
Restore an AuthenticationTag from a reference to an array of bytes.
Trait Implementations§
Source§impl AsRef<AuthenticationTag> for AuthenticationTag
impl AsRef<AuthenticationTag> for AuthenticationTag
Source§fn as_ref(&self) -> &AuthenticationTag
fn as_ref(&self) -> &AuthenticationTag
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for AuthenticationTag
impl Clone for AuthenticationTag
Source§fn clone(&self) -> AuthenticationTag
fn clone(&self) -> AuthenticationTag
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthenticationTag
impl Debug for AuthenticationTag
Source§impl From<&[u8]> for AuthenticationTag
impl From<&[u8]> for AuthenticationTag
Source§impl<'a> From<&'a AuthenticationTag> for &'a [u8; 16]
impl<'a> From<&'a AuthenticationTag> for &'a [u8; 16]
Source§fn from(value: &'a AuthenticationTag) -> Self
fn from(value: &'a AuthenticationTag) -> Self
Converts to this type from the input type.
Source§impl From<AuthenticationTag> for CBOR
impl From<AuthenticationTag> for CBOR
Source§fn from(value: AuthenticationTag) -> Self
fn from(value: AuthenticationTag) -> Self
Converts to this type from the input type.
Source§impl From<Rc<AuthenticationTag>> for AuthenticationTag
impl From<Rc<AuthenticationTag>> for AuthenticationTag
Source§fn from(value: Rc<AuthenticationTag>) -> Self
fn from(value: Rc<AuthenticationTag>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AuthenticationTag
impl PartialEq for AuthenticationTag
Source§impl TryFrom<CBOR> for AuthenticationTag
impl TryFrom<CBOR> for AuthenticationTag
impl Eq for AuthenticationTag
impl StructuralPartialEq for AuthenticationTag
Auto Trait Implementations§
impl Freeze for AuthenticationTag
impl RefUnwindSafe for AuthenticationTag
impl Send for AuthenticationTag
impl Sync for AuthenticationTag
impl Unpin for AuthenticationTag
impl UnwindSafe for AuthenticationTag
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