pub struct Context512 { /* private fields */ }Expand description
The hash algorithm context
Implementations§
Source§impl Context512
impl Context512
Sourcepub fn update_mut(&mut self, input: &[u8])
pub fn update_mut(&mut self, input: &[u8])
Update in-place the hashing state by adding the input bytes slice into the state
For the immutable version see [update]
Sourcepub fn update(self, input: &[u8]) -> Self
pub fn update(self, input: &[u8]) -> Self
Update the hashing state by adding the input bytes slice into the state
Sourcepub fn finalize(self) -> [u8; 64]
pub fn finalize(self) -> [u8; 64]
Finalize the context and return an array of bytes
The context is consumed by this function, to prevent buggy reuse.
If the context need to be kept before finalizing, the user can clone the Context
Sourcepub fn finalize_reset(&mut self) -> [u8; 64]
pub fn finalize_reset(&mut self) -> [u8; 64]
Same as finalize but do not consume the context, but instead
reset it in a ready to use state.
Trait Implementations§
Source§impl Clone for Context512
impl Clone for Context512
Source§fn clone(&self) -> Context512
fn clone(&self) -> Context512
Returns a duplicate 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 Freeze for Context512
impl RefUnwindSafe for Context512
impl Send for Context512
impl Sync for Context512
impl Unpin for Context512
impl UnwindSafe for Context512
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