pub struct Sha3_384 { /* private fields */ }Expand description
The SHA3-384 hash function
§Examples
const DIGEST: [u8; 48] = Sha3_384::new()
.update(b"The quick brown fox ")
.update(b"jumps over the lazy dog")
.finalize();
assert_eq!(
[
0x70, 0x63, 0x46, 0x5e, 0x08, 0xa9, 0x3b, 0xce, 0x31, 0xcd, 0x89, 0xd2, 0xe3, 0xca,
0x8f, 0x60, 0x24, 0x98, 0x69, 0x6e, 0x25, 0x35, 0x92, 0xed, 0x26, 0xf0, 0x7b, 0xf7,
0xe7, 0x03, 0xcf, 0x32, 0x85, 0x81, 0xe1, 0x47, 0x1a, 0x7b, 0xa7, 0xab, 0x11, 0x9b,
0x1a, 0x9e, 0xbd, 0xf8, 0xbe, 0x41
],
DIGEST,
);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sha3_384
impl RefUnwindSafe for Sha3_384
impl Send for Sha3_384
impl Sync for Sha3_384
impl Unpin for Sha3_384
impl UnwindSafe for Sha3_384
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