Jump to content

Itoh–Tsujii inversion algorithm

From Wikipedia, the free encyclopedia
(Redirected from Itoh-Tsujii inversion)

While the algorithm is often called the Itoh-Tsujii algorithm, it was first presented by Feng [1]. Feng's paper was received on March 13, 1987 and published in October 1989. Itoh and Tsujii's paper was received on July 8, 1987 and published in 1988 [2].

Feng and Itoh-Tsujii algorithm is first used to invert elements in finite field GF(2m) using the normal basis representation of elements, however, it is generic and can be used for other bases, such as the polynomial basis. It can also be used in any finite field GF(pm).

The algorithm is as follows:

Input: A ∈ GF(pm)
Output: A−1
  1. r ← (pm − 1)/(p − 1)
  2. compute Ar−1 in GF(pm)
  3. compute Ar = Ar−1 · A
  4. compute (Ar)−1 in GF(p)
  5. compute A−1 = (Ar)−1 · Ar−1
  6. return A−1

This algorithm is fast because steps 3 and 5 both involve operations in the subfield GF(p). Similarly, if a small value of p is used, a lookup table can be used for inversion in step 4. The majority of time spent in this algorithm is in step 2, the first exponentiation. This is one reason why this algorithm is well suited for the normal basis, since squaring and exponentiation are relatively easy in that basis.

This algorithm is based on the fact that GF(pm)* is a cyclic group of order pm-1. Given a nonzero element A in finite field GF(2m), we have

The above A-1 expression itself is close to that of the multiplicative Norm function in finite field, which is defined as

This viewpoint leads us to consider the additive absolute Trace function [3] , which is defined as

If Tr(A)=0, then we have and can express A-1 as

In some GF(2m)s, for example, GF(28) used in Advanced Encryption Standard (AES), this formula needs 1 less multiplication operation than Feng and Itoh-Tsujii algorithm for elements with Trace value 0: because we have and

This additive formula needs 3 multiplications, 4 additions and 6 squarings.

But the multiplicative formula needs 4 multiplications and 7 squarings.


See also

[edit]

References

[edit]
  1. ^ Feng, Gui-Liang (1989). "A VLSI architecture for fast inversion in GF(2m)". IEEE Transactions on Computers. 38 (10): 1383–1386.
  2. ^ Itoh, Toshiya; Tsujii, Shigeo (1988). "A fast algorithm for computing multiplicative inverses in GF(2m)". Information and Computation. 78: 171–177.
  3. ^ Fan, Haining. "A Trace Based GF(2n) Inversion Algorithm". Archived from the original (PDF) on May 6, 2020. Retrieved Jan 10, 2025.