PolyUtils class

Polynomial and polynomial-vector/matrix operations for ML-DSA.

Constructors

PolyUtils()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

expandA(List<int> rho, int k, int l) → PolyMat
Expand matrix  from ρ (Algorithm 32). Returns k×ℓ matrix already in NTT.
expandMask(List<int> rhoDoublePrime, int kappa, int l, int gamma1) → PolyVec
Expand masking vector y from ρ″ and κ (Algorithm 34).
expandS(List<int> rhoPrime, int k, int l, int eta) → (PolyVec, PolyVec)
Expand secret vectors s₁ (ℓ), s₂ (k) from ρ′ (Algorithm 33).
sampleBounded(List<int> seed, int eta) → Poly
Sample a polynomial with coefficients in {-η … η} (Algorithm 31 / RejBoundedPoly).
sampleInBall(List<int> seed, int tau) → Poly
sampleUniform(List<int> seed) → Poly
Sample polynomial uniformly from R_q (Algorithm 30 – RejNTTPoly).