Skip to main content

Finite Field Arithmetic

Groups, Rings, Fields

  • Finite field is a set containing a finite number of elements
  • This is sometimes called Galois Field
  • Can; add, subtract, multiple and invert(divide)
  • Fields are an extension to rings and groups

Groups

A group is a set of elements GG together with an operation that combines two elements of GG

  1. The operation is closed
  2. Operation is associative
  3. There is an element 1G1\in G called a neutral element such that..
  4. For each aGa\in G there exists an element a1Ga^{-1} \in G called the inverse of aa such that ...
  5. A group GG is abelian(commutative) if ...

Fields

A field FF is a set of elements with the following properties:

  1. All elements of FF form an additive group with the group operation + and the neutral element 0
  2. All elements of FF except 0 form a multiplicative group with the group operation ×\times (or -) ..
  3. ....

Always interest in Finite Fields, fields with a finite number of elements

Finite Fields

Finite field only exists if it has pmp^m elements pp = prime mm = Positive Integer

Prime Fields

  • Contains the integers {0,1,...,p1p-1}
  • All members of a prime field have a multiplicative inverse

Extension Fields

  • In prime fields, the elements of integers
  • Elements in extension fields GF(2m2^m) are polynomials of degree less than mm

GF(232^3)

  • Add = XOR???

Inversion is performed in a similar way to prime fields

AES' Finite Field

  • AES uses the extension field GF(282^8)/GF(254) for many of its operations
  • Operations are the same as those in other GF(2m2^m) fields, using the irreducible polynomial ...
  • Polynomials are typically represented as single bytes