pub struct ParallelHashXof { /* private fields */ }
Expand description
The ParallelHashXOF
extendable-output functions defined in SP800-185
.
§Usage
[dependencies]
tiny-keccak = { version = "2.0.0", features = ["parallel_hash"] }
§Example
let input = b"hello world";
let mut output = [0u8; 64];
let mut hasher = ParallelHash::v256(b"", 8);
hasher.update(input);
let mut xof = hasher.into_xof();
xof.squeeze(&mut output[..32]);
xof.squeeze(&mut output[32..]);
ParallelHashXof
can be created only by using ParallelHash::IntoXof
interface.
Trait Implementations§
Source§impl Clone for ParallelHashXof
impl Clone for ParallelHashXof
Source§fn clone(&self) -> ParallelHashXof
fn clone(&self) -> ParallelHashXof
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ParallelHashXof
impl RefUnwindSafe for ParallelHashXof
impl Send for ParallelHashXof
impl Sync for ParallelHashXof
impl Unpin for ParallelHashXof
impl UnwindSafe for ParallelHashXof
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)