pub struct PortableBlake3MultiDigest<const N: usize> { /* private fields */ }Expand description
Portable multi-lane Blake3 leaf digest over N messages, hashed a block at a time.
One chunk, so the chaining value stays at counter 0 and needs no CV stack.
Each message is any length up to CHUNK_LEN; all N lanes must share that length.
A block is compressed only once the next block’s first byte arrives, so the trailing block
is deferred to finalization, where it alone carries CHUNK_END | ROOT.
Trait Implementations§
Source§impl<const N: usize> Clone for PortableBlake3MultiDigest<N>
impl<const N: usize> Clone for PortableBlake3MultiDigest<N>
Source§fn clone(&self) -> PortableBlake3MultiDigest<N>
fn clone(&self) -> PortableBlake3MultiDigest<N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const N: usize> Default for PortableBlake3MultiDigest<N>
impl<const N: usize> Default for PortableBlake3MultiDigest<N>
Source§impl<const N: usize> MultiDigest<N> for PortableBlake3MultiDigest<N>
impl<const N: usize> MultiDigest<N> for PortableBlake3MultiDigest<N>
Source§fn update(&mut self, data: [&[u8]; N])
fn update(&mut self, data: [&[u8]; N])
Process data, updating the internal state.
The number of rows in
data must be equal to parallel_instances().Source§fn finalize_into(self, out: &mut [MaybeUninit<Output<Self::Digest>>; N])
fn finalize_into(self, out: &mut [MaybeUninit<Output<Self::Digest>>; N])
Write result into provided array and consume the hasher instance.
Source§fn finalize_into_reset(
&mut self,
out: &mut [MaybeUninit<Output<Self::Digest>>; N],
)
fn finalize_into_reset( &mut self, out: &mut [MaybeUninit<Output<Self::Digest>>; N], )
Write result into provided array and reset the hasher instance.
Source§fn new_with_prefix(data: impl AsRef<[u8]>) -> Self
fn new_with_prefix(data: impl AsRef<[u8]>) -> Self
Create new hasher instance which has processed the provided data.
Source§fn chain_update(self, data: [&[u8]; N]) -> Self
fn chain_update(self, data: [&[u8]; N]) -> Self
Process input data in a chained manner.
Auto Trait Implementations§
impl<const N: usize> Freeze for PortableBlake3MultiDigest<N>
impl<const N: usize> RefUnwindSafe for PortableBlake3MultiDigest<N>
impl<const N: usize> Send for PortableBlake3MultiDigest<N>
impl<const N: usize> Sync for PortableBlake3MultiDigest<N>
impl<const N: usize> Unpin for PortableBlake3MultiDigest<N>
impl<const N: usize> UnsafeUnpin for PortableBlake3MultiDigest<N>
impl<const N: usize> UnwindSafe for PortableBlake3MultiDigest<N>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more