← LibraryFinite Field Multiplication and InversionEngineering · MathematicsLesson 226/385← PrevNext →
ArticlePublished 7 Aug 20262 min readBy Kevin Joginfinite field arithmeticmultiplicationinversionItoh-Tsujii

Finite Field Computation

Finite Field Multiplication and Inversion

Multiplication with reduction, inversion by extended Euclid or by exponentiation, and the Itoh-Tsujii method for extension fields.

Engineering / MathematicsFinite Field Computation2 min readKV-MATH-0524

Field multiplication is a polynomial product followed by a reduction. Inversion is where the cost concentrates, and there are three genuinely different approaches with different break-even points.

Multiplication

Field multiplication in the polynomial basis

  1. MultiplyForm the polynomial product, degree up to 2n - 2.
  2. ReduceReduce modulo the defining irreducible polynomial.
  3. Normalise coefficientsReduce each coefficient modulo p.

Three approaches to inversion

Inversion methods in a finite field
MethodCostWhen preferred
Extended Euclidean on polynomialsO(n^2) operations in F_pGeneral purpose; usually the default
Exponentiation by field order minus twoAbout log(p^n) multiplicationsSimple, constant-time, useful when uniformity matters
Itoh-TsujiiReduces to an inversion in the prime field plus Frobenius workExtension fields where Frobenius is cheap

The Itoh-Tsujii idea

Reduce inversion in the extension to inversion in the prime field. Multiply the element by its conjugates under Frobenius; the product is the norm, which lies in the prime field. Invert there, then multiply back by the conjugate product.

a^(-1) = (a^r)^(-1) * a^(r-1) where r = (p^n - 1)/(p - 1)The element raised to r is the norm, an element of F_p.

Batching

Where many inversions are required, Montgomery's simultaneous inversion applies unchanged in a finite field — see simultaneous inversion. The break-even point is even lower than in the integer case because field inversion is comparatively more expensive.

Characteristic two

Source. Henri Cohen, A Course in Computational Algebraic Number Theory, Springer GTM 138 — 1.5.2. Structural reference unverified: the source file was not available during authoring; chapter and section numbers are taken from the published edition and have not been checked against a physical copy.

Continue learning

Finite Field Element RepresentationArticle · MathematicsNEXT LESSON →Finding Primitive Roots and GeneratorsArticle · MathematicsModular Inversion and Simultaneous InversionArticle · MathematicsRoot Finding over Finite FieldsArticle · Mathematics