pub struct ParallelHash128;Expand description
SP 800-185 ParallelHash128: hashes fixed-size blocks independently, then hashes their digests.
The structure is designed so the per-block work can be spread across
cores. This implementation does them in order — the workspace has no
threading and no_std targets have no threads to spread onto — so what
it buys here is interoperability with implementations that do, not
speed. The output is identical either way.
Implementations§
Source§impl ParallelHash128
impl ParallelHash128
Sourcepub const CHAINING_LEN: usize = 32
pub const CHAINING_LEN: usize = 32
Width of each block’s inner digest, in bytes.
Trait Implementations§
Source§impl Algorithm for ParallelHash128
impl Algorithm for ParallelHash128
Auto Trait Implementations§
impl Freeze for ParallelHash128
impl RefUnwindSafe for ParallelHash128
impl Send for ParallelHash128
impl Sync for ParallelHash128
impl Unpin for ParallelHash128
impl UnsafeUnpin for ParallelHash128
impl UnwindSafe for ParallelHash128
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