pub struct Sha512_256 { /* private fields */ }
Expand description
SHA-512/256 hash function state with enhanced memory safety
Trait Implementations§
Source§impl Clone for Sha512_256
impl Clone for Sha512_256
Source§fn clone(&self) -> Sha512_256
fn clone(&self) -> Sha512_256
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 moreSource§impl Drop for Sha512_256
impl Drop for Sha512_256
Source§impl HashFunction for Sha512_256
impl HashFunction for Sha512_256
Source§type Algorithm = Sha512_256Algorithm
type Algorithm = Sha512_256Algorithm
The algorithm type that defines constants and properties
Source§fn update(&mut self, data: &[u8]) -> Result<&mut Self>
fn update(&mut self, data: &[u8]) -> Result<&mut Self>
Updates the hash state with
data
, returning self for chaining.Source§fn output_size() -> usize
fn output_size() -> usize
The output size in bytes.
Source§fn block_size() -> usize
fn block_size() -> usize
The internal block size in bytes.
Source§fn finalize_reset(&mut self) -> Result<Self::Output>
fn finalize_reset(&mut self) -> Result<Self::Output>
Finalizes, returns the digest, and resets state.
Source§impl SecureZeroingType for Sha512_256
impl SecureZeroingType for Sha512_256
Auto Trait Implementations§
impl Freeze for Sha512_256
impl RefUnwindSafe for Sha512_256
impl Send for Sha512_256
impl Sync for Sha512_256
impl Unpin for Sha512_256
impl UnwindSafe for Sha512_256
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