pub struct Sha3_256 { /* private fields */ }Expand description
The SHA3-256 hash function
§Examples
const DIGEST: [u8; 32] = Sha3_256::new()
.update(b"The quick brown fox ")
.update(b"jumps over the lazy dog")
.finalize();
assert_eq!(
[
0x69, 0x07, 0x0d, 0xda, 0x01, 0x97, 0x5c, 0x8c, 0x12, 0x0c, 0x3a, 0xad, 0xa1, 0xb2,
0x82, 0x39, 0x4e, 0x7f, 0x03, 0x2f, 0xa9, 0xcf, 0x32, 0xf4, 0xcb, 0x22, 0x59, 0xa0,
0x89, 0x7d, 0xfc, 0x04
],
DIGEST,
);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sha3_256
impl RefUnwindSafe for Sha3_256
impl Send for Sha3_256
impl Sync for Sha3_256
impl Unpin for Sha3_256
impl UnwindSafe for Sha3_256
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