Struct bc_components::AuthenticationTag
source · pub struct AuthenticationTag(_);
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.
Trait Implementations§
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<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<AuthenticationTag> for AuthenticationTag
impl PartialEq<AuthenticationTag> 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 ==
.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