pub struct Keccak384 { /* private fields */ }
Expand description
The KECCAK-384
hash function
§Examples
const DIGEST: [u8; 48] = Keccak384::new()
.update(b"The quick brown fox ")
.update(b"jumps over the lazy dog")
.finalize();
assert_eq!(
[
0x28, 0x39, 0x90, 0xfa, 0x9d, 0x5f, 0xb7, 0x31, 0xd7, 0x86, 0xc5, 0xbb, 0xee, 0x94,
0xea, 0x4d, 0xb4, 0x91, 0x0f, 0x18, 0xc6, 0x2c, 0x03, 0xd1, 0x73, 0xfc, 0x0a, 0x5e,
0x49, 0x44, 0x22, 0xe8, 0xa0, 0xb3, 0xda, 0x75, 0x74, 0xda, 0xe7, 0xfa, 0x0b, 0xaf,
0x00, 0x5e, 0x50, 0x40, 0x63, 0xb3
],
DIGEST,
);
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keccak384
impl RefUnwindSafe for Keccak384
impl Send for Keccak384
impl Sync for Keccak384
impl Unpin for Keccak384
impl UnwindSafe for Keccak384
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