[−][src]Struct tiny_keccak::TupleHash
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"] }
Methods
impl TupleHash[src]
pub fn v128(custom_string: &[u8]) -> TupleHash[src]
Creates new TupleHash hasher with a security level of 128 bits.
pub fn v256(custom_string: &[u8]) -> TupleHash[src]
Creates new TupleHash hasher with a security level of 256 bits.
Trait Implementations
impl Hasher for TupleHash[src]
impl IntoXof for TupleHash[src]
type Xof = TupleHashXof
A type implementing [Xof], eXtendable-output function interface. Read more
fn into_xof(self) -> TupleHashXof[src]
impl Clone for TupleHash[src]
fn clone(&self) -> TupleHash[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,