Native coefficient arithmetic for the existing Module-SIS ring #
Polynomials of ℤ_q[X] / (X^n + 1) in coefficient form Fin n → ZMod q are represented natively
by the list of their canonical residues (polyResidues), and vectors of polynomials by lists of
such lists (polyVecResidues). The total list operations negacyclicMulResidues, addResidues
and negacyclicInnerResidues are identified with negacyclicMul, polynomial addition and
innerPoly, including degree zero and positive composite coefficient moduli, and have plain
polynomial-time certificates with a unary degree and a binary modulus. This is original supporting
representation algebra; it supplies neither a new encryption algorithm nor a security claim.
Main definitions #
Cslib.Crypto.polyResidues,Cslib.Crypto.polyVecResidues: residue lists of a polynomial and of a vector of polynomials, andCslib.Crypto.encPolyVecResidues, the words of the latter.Cslib.Crypto.addResidues,Cslib.Crypto.subResidues,Cslib.Crypto.negacyclicInnerResidues: coefficientwise addition and subtraction, and the inner product∑ⱼ aⱼ · rⱼ, on residue lists.
Main results #
negacyclicMulResidues_ofFn: exact canonical coefficients for positive moduli.addResidues_polyResidues,negacyclicInnerResidues_polyVecResidues: the list operations compute polynomial addition andinnerPoly.Turing.MultiTapeTM.ComputableInPolyTime.addResidues,Turing.MultiTapeTM.ComputableInPolyTime.negacyclicInnerResidues: their certificates.
The native list product returns precisely the canonical coefficients of the existing negacyclic multiplication. Positive composite moduli and modulus one are allowed.
Native addition computes polynomial addition.
Native subtraction computes polynomial subtraction.
Coefficientwise addition of computed residue lists modulo a computed binary modulus.
Coefficientwise subtraction of computed residue lists modulo a computed binary modulus.
The native inner product with a computed unary degree and binary modulus.