pub struct BmulConstraint(pub [Operand; 6]);Expand description
BMUL constraint: A * B = C in the GHASH field GF(2^128).
Multiplication of two GHASH binary-field elements. Because a field element spans 128 bits while
a word holds only 64, each operand is carried by a pair of words: the lo word supplies the low
64 coefficients (of 1, X, ..., X^63) and the hi word the high 64 (of X^64, ..., X^127).
The operands are stored in the order given by BmulConstraint::OPERAND_NAMES.
Tuple Fields§
§0: [Operand; 6]Implementations§
Source§impl BmulConstraint
impl BmulConstraint
Sourcepub const OPERAND_NAMES: [&'static str; 6]
pub const OPERAND_NAMES: [&'static str; 6]
Names of the operands, in storage order.
Trait Implementations§
Source§impl AsRef<[Vec<ShiftedValueIndex>; 6]> for BmulConstraint
impl AsRef<[Vec<ShiftedValueIndex>; 6]> for BmulConstraint
Source§impl Clone for BmulConstraint
impl Clone for BmulConstraint
Source§fn clone(&self) -> BmulConstraint
fn clone(&self) -> BmulConstraint
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 Debug for BmulConstraint
impl Debug for BmulConstraint
Source§impl Default for BmulConstraint
impl Default for BmulConstraint
Source§fn default() -> BmulConstraint
fn default() -> BmulConstraint
Returns the “default value” for a type. Read more
Source§impl DeserializeBytes for BmulConstraint
impl DeserializeBytes for BmulConstraint
fn deserialize(read_buf: impl Buf) -> Result<Self, SerializationError>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for BmulConstraint
impl RefUnwindSafe for BmulConstraint
impl Send for BmulConstraint
impl Sync for BmulConstraint
impl Unpin for BmulConstraint
impl UnsafeUnpin for BmulConstraint
impl UnwindSafe for BmulConstraint
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