pub struct OptimizedMdsMatrices<F: PrimeField> {
    pub M_hat: SquareMatrix<F>,
    pub v: Matrix<F>,
    pub w: Matrix<F>,
    pub M_prime: SquareMatrix<F>,
    pub M_doubleprime: SquareMatrix<F>,
    pub M_inverse: SquareMatrix<F>,
    pub M_hat_inverse: SquareMatrix<F>,
    pub M_00: F,
    pub M_i: Matrix<F>,
    pub v_collection: Vec<Matrix<F>>,
    pub w_hat_collection: Vec<Matrix<F>>,
}
Expand description

Represents an optimized MDS (maximum distance separable) matrix.

Fields§

§M_hat: SquareMatrix<F>

A (t - 1) x (t - 1) MDS submatrix derived from the MDS matrix.

§v: Matrix<F>

A 1 x (t - 1) (row) vector derived from the MDS matrix.

§w: Matrix<F>

A (t - 1) x 1 (column) vector derived from the MDS matrix.

§M_prime: SquareMatrix<F>

A matrix formed from Mhat (an MDS submatrix of the MDS matrix).

§M_doubleprime: SquareMatrix<F>

A sparse matrix formed from M,

§M_inverse: SquareMatrix<F>

The inverse of the t x t MDS matrix (needed to compute round constants).

§M_hat_inverse: SquareMatrix<F>

The inverse of the (t - 1) x (t - 1) Mhat matrix.

§M_00: F

Element at M00

§M_i: Matrix<F>

M_i

§v_collection: Vec<Matrix<F>>

v_collection: one per round.

§w_hat_collection: Vec<Matrix<F>>

w_hat_collection: one per round

Trait Implementations§

source§

impl<F: Clone + PrimeField> Clone for OptimizedMdsMatrices<F>

source§

fn clone(&self) -> OptimizedMdsMatrices<F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<F: Debug + PrimeField> Debug for OptimizedMdsMatrices<F>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<F: PartialEq + PrimeField> PartialEq<OptimizedMdsMatrices<F>> for OptimizedMdsMatrices<F>

source§

fn eq(&self, other: &OptimizedMdsMatrices<F>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<F: Eq + PrimeField> Eq for OptimizedMdsMatrices<F>

source§

impl<F: PrimeField> StructuralEq for OptimizedMdsMatrices<F>

source§

impl<F: PrimeField> StructuralPartialEq for OptimizedMdsMatrices<F>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V