pub struct Keccak512 { /* private fields */ }Expand description
The KECCAK-512 hash function
§Examples
const DIGEST: [u8; 64] = Keccak512::new()
.update(b"The quick brown fox ")
.update(b"jumps over the lazy dog")
.finalize();
assert_eq!(
[
0xd1, 0x35, 0xbb, 0x84, 0xd0, 0x43, 0x9d, 0xba, 0xc4, 0x32, 0x24, 0x7e, 0xe5, 0x73,
0xa2, 0x3e, 0xa7, 0xd3, 0xc9, 0xde, 0xb2, 0xa9, 0x68, 0xeb, 0x31, 0xd4, 0x7c, 0x4f,
0xb4, 0x5f, 0x1e, 0xf4, 0x42, 0x2d, 0x6c, 0x53, 0x1b, 0x5b, 0x9b, 0xd6, 0xf4, 0x49,
0xeb, 0xcc, 0x44, 0x9e, 0xa9, 0x4d, 0x0a, 0x8f, 0x05, 0xf6, 0x21, 0x30, 0xfd, 0xa6,
0x12, 0xda, 0x53, 0xc7, 0x96, 0x59, 0xf6, 0x09
],
DIGEST,
);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keccak512
impl RefUnwindSafe for Keccak512
impl Send for Keccak512
impl Sync for Keccak512
impl Unpin for Keccak512
impl UnwindSafe for Keccak512
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