[−][src]Struct tiny_keccak::ParallelHash
The ParallelHash
hash functions defined in SP800-185
.
The purpose of ParallelHash
is to support the efficient hashing of very long strings, by
taking advantage of the parallelism available in modern processors. ParallelHash
supports the
128-bit
and 256-bit
security strengths, and also provides variable-length output.
Usage
[dependencies]
tiny-keccak = { version = "2.0.0", features = ["parallel_hash"] }
Methods
impl ParallelHash
[src]
pub fn v128(custom_string: &[u8], block_size: usize) -> ParallelHash
[src]
Creates new ParallelHash
hasher with a security level of 128 bits.
pub fn v256(custom_string: &[u8], block_size: usize) -> ParallelHash
[src]
Creates new ParallelHash
hasher with a security level of 256 bits.
Trait Implementations
impl Clone for ParallelHash
[src]
fn clone(&self) -> ParallelHash
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Hasher for ParallelHash
[src]
impl IntoXof for ParallelHash
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,