Professional Documents
Culture Documents
• Group
• Ring
• Field
• Finite Fields
Group
• A group (G,·) is a nonempty set G together with a binary
operation · on G such that the following conditions hold:
Distributive Properties
a·(b+c) = a·b + a·c and (a+b)·c = a·c + b·c
Ring Examples
• Z, R, and C are all examples for rings with
identity
• A 2X3 matrix is a group but not a ring .
Field
• A field is a set on which addition, subtraction,
multiplication, and division are defined
– Addition
– Additive Inverse
– Multiplication
– Multiplicative Inverse for every non zero element
Field Example
Consider the set of rational numbers (a/b)
where a an b are integers and b is not equal to 0
– They are commutative with addition
– They are commutative with multiplication
– All elements have a multiplicative inverse
0 mod 5 = 0
1 mod 5 = 1
2 mod 5 = 2
3 mod 5 = 3
4 mod 5 = 4 {0,1,2,3,4}
5 mod 5 = 0
6 mod 5 = 1
7 mod 5 = 2
8 mod 5 = 3
9 mod 5 = 4
10 mod 5 = 0
Consider this example
Is this Z/2 a field ?
• {0,1}
– They are commutative with addition
– They are commutative with multiplication
– All elements have a multiplicative inverse
Is this Z/2 a field ?
• {0,1}
Multiplicative Inverse exist for every non zero
element
The multiplicative inverse for 1 is always 1.
Finite Field
• Is a field with a finite number of elements.
• The number of elements in a finite field also called as a
Galois field is always prime or power of a prime.
• Finite field exists for only Pm elements where p is prime
and m is a positive integer
• GF(2) = GF(21) = {0,1}
• GF(5) = GF(51) = {0,1,2,3,4}
• GF(81) = GF(34)
• GF(256) = GF(28)
• GF(12) is not a finite field
Finite Field
Prime Field and Extension Field
• GF(p) is called a prime field when m=1 {0,1…
p-1}
If m>1 then we have GF(Pm) these are called
extension fields.
• We are interested in GF(28) for AES
• The elements in this set are not integers they
are polynomials
Eg
<Z, +> is a group where Z is a set of all integers
<Z,+,*> is a ring
<Q, +,*> is an infinite field where Q is a set of
rational numbers
Finite Field
a 0 1 a 0 1
-a 0 1 a-1 - 1
Note: My table values can have the
highest polynomial degree as 1.
If I get the degree of polynomial greater
than 1, then the resultant polynomial
must be divided by irreducible
polynomial of degree 2.
Note: The choice of a different irreducible polynomial P(x) as a modulus leads to different multiplication
answers that still belong to the same field. In a practical sense, the results are not fundamentally different and
two finite fields with the same number of elements (order) are called isomorphic.
Here in GF(23) the table values
can have the highest polynomial
degree as 2. Else we should find
mod with irreducible polynomial
of degree 3.
What is a Polynomial
• The word polynomial is derived from the greek
words ‘poly’ means ‘many’ and ‘nominal’
means ‘terms’, so altogether it said “many
terms”.
• Terms have coefficient and variable raised to
the power. These terms are connected by
addition or subtraction 3x2+2x-3
• A polynomial can have any number of terms but
not infinite.
Modulus