pub struct TupleHash { /* private fields */ }
Expand description
The TupleHash
hash functions defined in SP800-185
.
TupleHash
is designed to provide a generic, misuse-resistant way to combine a sequence of
strings for hashing such that, for example, a TupleHash
computed on the tuple ("abc"
,"d"
) will
produce a different hash value than a TupleHash
computed on the tuple ("ab"
,"cd"
), even though
all the remaining input parameters are kept the same, and the two resulting concatenated
strings, without string encoding, are identical.
§Usage
[dependencies]
tiny-keccak = { version = "2.0.0", features = ["tuple_hash"] }
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TupleHash
impl RefUnwindSafe for TupleHash
impl Send for TupleHash
impl Sync for TupleHash
impl Unpin for TupleHash
impl UnwindSafe for TupleHash
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
)