Line 45: Line 45:
  
 
==== Prime Fields ====
 
==== Prime Fields ====
 +
A prime field <math> GF(p) </math> is represented by the numbers 0 through p-1.
 +
 
<math> GF(p) = {0,1,2,3,...,p-1} </math>  
 
<math> GF(p) = {0,1,2,3,...,p-1} </math>  
  
Line 66: Line 68:
 
   
 
   
  
{| class="wikitable" border="1" style="border-collapse:collapse;"
+
{| class="wikitable" style="border-collapse:collapse;"
 
|-
 
|-
 
! * !! 1 !! 2 !! 3 !! 4
 
! * !! 1 !! 2 !! 3 !! 4
Line 78: Line 80:
 
|''' 4''' || 4 || 3 || 2 || 1
 
|''' 4''' || 4 || 3 || 2 || 1
 
|}
 
|}
 +
 +
Note that additive and multiplicative inverses can be read of the tables.
 +
 +
 +
 +
==== Extension Fields ====
 +
Extension fields are a bit more complicated. An element <math> A(x) </math> in an extension field <math> GF(p^m) </math> is described as follows:
 +
 +
<math> \[ A(x) = a_{m-1}x^{m-1} + a_{m-2}x^{m-2} + ... + a_1x + a_0 \] </math> where <math> a_i \in GF(p) </math>
  
 
==[[2015_Summer_Cryptography_Paar_Introduction to Galois Fields for AES_Katie Marsh_comments | Questions and comments]]==
 
==[[2015_Summer_Cryptography_Paar_Introduction to Galois Fields for AES_Katie Marsh_comments | Questions and comments]]==

Revision as of 05:50, 11 June 2015


Introduction to Galois Fields for AES

A slecture by student Katie Marsh

Based on the Cryptography lecture material of Prof. Paar.



Link to video on youtube



Accompanying Notes

Finite Field/Galois Field: a finite set together with operations + and * with the following properties:

1. The set forms an additive group with neutral element 0

2. The set without 0 forms a multiplicative group with neutral element 1

3. The distributive law $ a(b+c)= (ab)+(ac) $


A finite field exist if and only if it has size $ p^m $ where $ p $ is prime and $ m \in \N $

This is to say, there exist a Galois field with 11 elements (11 is prime, m=1) called $ GF(11) $ but you can not construct a Galois field with 12 elements.

There are two distinct types of Galois Fields: Prime Fields and Extension Fields

Prime Field : $ GF(p) $ so m = 1 and the field has a prime number of elements.

Extension Field : $ GF(p^m) $ where m > 1 and the field does not have a prime number of elements.

In AES, the two important fields we need to work with are $ GF(2) $ and $ GF(2^8) $.

Prime Fields

A prime field $ GF(p) $ is represented by the numbers 0 through p-1.

$ GF(p) = {0,1,2,3,...,p-1} $

Addition and Multiplication operations in $ GF(p) $ are just performed modulo $ p $.

Example 1.1: $ GF(5) = {0,1,2,3,4} $

+ 0 1 2 3 4
0 0 1 2 3 4
1 1 2 3 4 0
2 2 3 4 0 1
3 3 4 0 1 2
4 4 0 1 2 3


* 1 2 3 4
1 1 2 3 4
2 2 4 1 3
3 3 1 4 2
4 4 3 2 1

Note that additive and multiplicative inverses can be read of the tables.


Extension Fields

Extension fields are a bit more complicated. An element $ A(x) $ in an extension field $ GF(p^m) $ is described as follows:

$ \[ A(x) = a_{m-1}x^{m-1} + a_{m-2}x^{m-2} + ... + a_1x + a_0 \] $ where $ a_i \in GF(p) $

Questions and comments

If you have any questions, comments, etc. please post them here.


Back to 2015 Summer Cryptography Paar


Alumni Liaison

Ph.D. on Applied Mathematics in Aug 2007. Involved on applications of image super-resolution to electron microscopy

Francisco Blanco-Silva