pub struct Keccak224 { /* private fields */ }Expand description
The KECCAK-224 hash function
§Examples
const DIGEST: [u8; 28] = Keccak224::new()
.update(b"The quick brown fox ")
.update(b"jumps over the lazy dog")
.finalize();
assert_eq!(
[
0x31, 0x0a, 0xee, 0x6b, 0x30, 0xc4, 0x73, 0x50, 0x57, 0x6a, 0xc2, 0x87, 0x3f, 0xa8,
0x9f, 0xd1, 0x90, 0xcd, 0xc4, 0x88, 0x44, 0x2f, 0x3e, 0xf6, 0x54, 0xcf, 0x23, 0xfe
],
DIGEST,
);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keccak224
impl RefUnwindSafe for Keccak224
impl Send for Keccak224
impl Sync for Keccak224
impl Unpin for Keccak224
impl UnwindSafe for Keccak224
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