MLDSAOperator class

Modular arithmetic in the ML-DSA prime field (q = 8380417).

Constructors

MLDSAOperator()

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

fieldAdd(int a, int b) → int
Modular addition.
fieldCenter(int a) → int
Centered representative in (-q/2, q/2].
fieldCSubQ(int a) → int
Conditional subtraction of q.
fieldFreeze(int a) → int
Freeze to [0, q).
fieldMul(int a, int b) → int
Modular multiplication.
fieldReduce(int a) → int
Reduce a into [0, q). Handles values that appear after multiplication (roughly |a| < 2^46).
fieldSub(int a, int b) → int
Modular subtraction.

Constants

q → const int