pub struct MaskedCodeword<P: PackedField, Data: Deref<Target = [P]> = Vec<P>> {
pub codeword: FieldBuffer<P, Data>,
pub mask: FieldBuffer<P, Data>,
}Expand description
Output of encode_masked: the interleaved (message ‖ mask) codeword and the generated mask.
Both buffers come from the allocator the encode was given, so a pooled prover holds neither on the global heap.
Fields§
§codeword: FieldBuffer<P, Data>The Reed-Solomon encoding of the interleaved (message ‖ mask) buffer.
mask: FieldBuffer<P, Data>The generated random mask, of equal length to the message.
Trait Implementations§
Auto Trait Implementations§
impl<P, Data> Freeze for MaskedCodeword<P, Data>where
Data: Freeze,
impl<P, Data> RefUnwindSafe for MaskedCodeword<P, Data>where
Data: RefUnwindSafe,
impl<P, Data> Send for MaskedCodeword<P, Data>where
Data: Send,
impl<P, Data> Sync for MaskedCodeword<P, Data>where
Data: Sync,
impl<P, Data> Unpin for MaskedCodeword<P, Data>where
Data: Unpin,
impl<P, Data> UnsafeUnpin for MaskedCodeword<P, Data>where
Data: UnsafeUnpin,
impl<P, Data> UnwindSafe for MaskedCodeword<P, Data>where
Data: UnwindSafe,
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
§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