pub struct Sha512_224 { /* private fields */ }Expand description
The SHA-512/224 hash function.
The SHA-512 algorithm with the SHA-512/224 initialization vector, truncated to 224 bits.
§Examples
const DIGEST: [u8; 28] = Sha512_224::new()
.update(b"The quick brown fox ")
.update(b"jumps over the lazy dog")
.finalize();
assert_eq!(
hex::encode(&DIGEST[..]),
"944cd2847fb54558d4775db0485a50003111c8e5daa63fe722c6aa37"
);Implementations§
Source§impl Sha512_224
impl Sha512_224
Sourcepub const BLOCK_SIZE: usize = 128usize
pub const BLOCK_SIZE: usize = 128usize
The internal block size of the hash function.
Sourcepub const DIGEST_SIZE: usize = 28usize
pub const DIGEST_SIZE: usize = 28usize
The digest size of the hash function.
Trait Implementations§
Source§impl Clone for Sha512_224
impl Clone for Sha512_224
Source§fn clone(&self) -> Sha512_224
fn clone(&self) -> Sha512_224
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 Sha512_224
impl RefUnwindSafe for Sha512_224
impl Send for Sha512_224
impl Sync for Sha512_224
impl Unpin for Sha512_224
impl UnwindSafe for Sha512_224
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