pub struct TupleHashXof<X> { /* private fields */ }Expand description
A cryptographic hash over a set of strings such that each string is unambiguously encoded.
For example, the TupleHash of ("abc", "d") will produce
a different hash value than the TupleHash of ("ab", "cd").
§Warning
TupleHash is only defined for cSHAKE128 and cSHAKE256.
Using this with a different XOF might have worse security
properties.
Implementations§
Trait Implementations§
Source§impl<X: Clone> Clone for TupleHashXof<X>
impl<X: Clone> Clone for TupleHashXof<X>
Source§fn clone(&self) -> TupleHashXof<X>
fn clone(&self) -> TupleHashXof<X>
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 moreSource§impl<X: Debug> Debug for TupleHashXof<X>
impl<X: Debug> Debug for TupleHashXof<X>
Source§impl<X: Xof> Xof for TupleHashXof<X>
impl<X: Xof> Xof for TupleHashXof<X>
Source§fn finalize_xof(self) -> Self::Reader
fn finalize_xof(self) -> Self::Reader
Returns the output of the XOF.
Source§fn finalize_xof_into(self, out: &mut [u8])
fn finalize_xof_into(self, out: &mut [u8])
Writes the XOF output to
out.Auto Trait Implementations§
impl<X> Freeze for TupleHashXof<X>where
X: Freeze,
impl<X> RefUnwindSafe for TupleHashXof<X>where
X: RefUnwindSafe,
impl<X> Send for TupleHashXof<X>where
X: Send,
impl<X> Sync for TupleHashXof<X>where
X: Sync,
impl<X> Unpin for TupleHashXof<X>where
X: Unpin,
impl<X> UnwindSafe for TupleHashXof<X>where
X: UnwindSafe,
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