Struct bc_components::AuthenticationTag
source · 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 CBORDecodable for AuthenticationTag
impl CBORDecodable for AuthenticationTag
source§impl CBOREncodable for AuthenticationTag
impl CBOREncodable for AuthenticationTag
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§fn eq(&self, other: &AuthenticationTag) -> bool
fn eq(&self, other: &AuthenticationTag) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&CBOR> for AuthenticationTag
impl TryFrom<&CBOR> for AuthenticationTag
source§impl TryFrom<CBOR> for AuthenticationTag
impl TryFrom<CBOR> for AuthenticationTag
impl Eq for AuthenticationTag
impl StructuralEq for AuthenticationTag
impl StructuralPartialEq for AuthenticationTag
Auto Trait Implementations§
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