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