pub struct Sha3_256 { /* private fields */ }Expand description
SHA3-256 hash function (FIPS 202).
Implements the Hasher trait.
§One-shot API
ⓘ
use crypto::{Hasher, sha3::Sha3_256};
let hash = Sha3_256::hash(b"hello world");§Incremental API
ⓘ
use crypto::{Hasher, sha3::Sha3_256};
let mut hasher = Sha3_256::new();
hasher.update(b"hello ");
hasher.update(b"world");
let hash = hasher.sum();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 UnsafeUnpin 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