pub struct HmacSha512_224 { /* private fields */ }Expand description
HMAC-SHA-512/224.
Keys of any length are accepted. Served by the driver registered for
it; see driver.
§Example
ⓘ
let tag = HmacSha512_224::mac(b"my key", b"hello world");
// Verification, in constant time:
let mut mac = HmacSha512_224::new(b"my key");
mac.update(b"hello world");
mac.verify(&tag).unwrap();Implementations§
Source§impl HmacSha512_224
impl HmacSha512_224
Sourcepub const OUTPUT_SIZE: usize = 28
pub const OUTPUT_SIZE: usize = 28
Size of the tag, in bytes.
Trait Implementations§
Source§impl Clone for HmacSha512_224
impl Clone for HmacSha512_224
Source§fn clone(&self) -> HmacSha512_224
fn clone(&self) -> HmacSha512_224
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for HmacSha512_224
impl !Unpin for HmacSha512_224
impl !UnwindSafe for HmacSha512_224
impl Freeze for HmacSha512_224
impl Send for HmacSha512_224
impl Sync for HmacSha512_224
impl UnsafeUnpin for HmacSha512_224
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