pub struct Sha512_256;Expand description
SHA-512/256 truncated hash function (32-byte output, FIPS 180-4 §6.7).
Implementations§
Source§impl Sha512_256
impl Sha512_256
Sourcepub const DIGEST_LEN: usize = 32
pub const DIGEST_LEN: usize = 32
Byte length of the SHA-512/256 digest output.
Sourcepub const BLOCK_SIZE: usize = 128
pub const BLOCK_SIZE: usize = 128
SHA-512/256 block size in bytes (FIPS 180-4).
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Sha512_256
impl Debug for Sha512_256
Source§impl Default for Sha512_256
impl Default for Sha512_256
Source§fn default() -> Sha512_256
fn default() -> Sha512_256
Returns the “default value” for a type. Read more
Source§impl Hash for Sha512_256
impl Hash for Sha512_256
impl Copy 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 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