pub struct Sha512_256 { /* private fields */ }Expand description
SHA-512/256 hasher (FIPS 180-4). 256-bit output, 128-byte blocks.
Uses the SHA-512 compression function with a distinct IV and a 32-byte truncation. Provides 128-bit collision resistance (same as SHA-256) but runs on the 64-bit oriented SHA-512 core, which is faster than SHA-256 on 64-bit platforms.
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 Hasher for Sha512_256
impl Hasher for Sha512_256
Source§const OUTPUT_LEN: usize = 32
const OUTPUT_LEN: usize = 32
Output size in bytes.
Source§fn finalize_into(self, out: &mut [u8])
fn finalize_into(self, out: &mut [u8])
Finalize into a caller-provided buffer (no allocation).
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 UnsafeUnpin 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