pub struct HmacSha256Algo;Expand description
HMAC-SHA-256 adapter.
Trait Implementations§
Source§impl MacAlgorithmAdapter for HmacSha256Algo
impl MacAlgorithmAdapter for HmacSha256Algo
Source§const ALG: MacAlgorithm = MacAlgorithm::HmacSha256
const ALG: MacAlgorithm = MacAlgorithm::HmacSha256
The MAC algorithm selector this adapter implements.
Source§fn authenticate(
params: &MacParams<'_>,
message: &[u8],
) -> Result<Vec<u8>, AlgorithmError>
fn authenticate( params: &MacParams<'_>, message: &[u8], ) -> Result<Vec<u8>, AlgorithmError>
Compute a MAC tag over
message.Auto Trait Implementations§
impl Freeze for HmacSha256Algo
impl RefUnwindSafe for HmacSha256Algo
impl Send for HmacSha256Algo
impl Sync for HmacSha256Algo
impl Unpin for HmacSha256Algo
impl UnsafeUnpin for HmacSha256Algo
impl UnwindSafe for HmacSha256Algo
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