pub struct HmacTag { /* private fields */ }Expand description
HMAC authentication tag bytes.
Implementations§
Source§impl HmacTag
impl HmacTag
Sourcepub fn from_slice(
algorithm: MacAlgorithm,
input: &[u8],
) -> Result<HmacTag, CryptoError>
pub fn from_slice( algorithm: MacAlgorithm, input: &[u8], ) -> Result<HmacTag, CryptoError>
Constructs a tag from fixed-size bytes for algorithm.
Trait Implementations§
impl Eq for HmacTag
Auto Trait Implementations§
impl Freeze for HmacTag
impl RefUnwindSafe for HmacTag
impl Send for HmacTag
impl Sync for HmacTag
impl Unpin for HmacTag
impl UnsafeUnpin for HmacTag
impl UnwindSafe for HmacTag
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