pub struct HmacSha512 { /* private fields */ }
Expand description
HMAC-SHA512 streaming state.
Implementations§
source§impl HmacSha512
impl HmacSha512
sourcepub fn update(&mut self, data: &[u8]) -> Result<(), UnknownCryptoError>
pub fn update(&mut self, data: &[u8]) -> Result<(), UnknownCryptoError>
Update state with data
. This can be called multiple times.
sourcepub fn finalize(&mut self) -> Result<Tag, UnknownCryptoError>
pub fn finalize(&mut self) -> Result<Tag, UnknownCryptoError>
Return a HMAC-SHA512 tag.
Trait Implementations§
source§impl Clone for HmacSha512
impl Clone for HmacSha512
source§fn clone(&self) -> HmacSha512
fn clone(&self) -> HmacSha512
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 moreAuto Trait Implementations§
impl RefUnwindSafe for HmacSha512
impl Send for HmacSha512
impl Sync for HmacSha512
impl Unpin for HmacSha512
impl UnwindSafe for HmacSha512
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