[][src]Struct tiny_keccak::ParallelHash

pub struct ParallelHash { /* fields omitted */ }

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]

impl Hasher for ParallelHash[src]

impl IntoXof for ParallelHash[src]

type Xof = ParallelHashXof

A type implementing [Xof], eXtendable-output function interface. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.