T-79 5501 Slides 3
T-79 5501 Slides 3
T-79 5501 Slides 3
5501
Kaisa Nyberg
Department of Information and Computer Science Aalto University School of Science Spring 2013
Lecture 3:
Galois Fields
Finite Fields
Complementary material to Section 5.2.3 of the text-book. The notation and numbering is the same as in the textbook New theorems and facts are marked by an asterisk ( ). Let G be a nite group. The order of an element g G to be the smallest positive integer m such that g m = 1. Similarily, in an additive group G, the order of the element g G is the smallest positive integer m such that mg = 0, where 0 is the neutral element of addition. An example of a nite additive group is a group formed by the points on an elliptic curve to be discussed later. We will use multiplicative notation.
Lagrange Theorem
Theorem 5.4. Suppose (G, ) is a multiplicative group of order n, and g G. Then the order of g divides n. Proof. Denote by r the order of g , and consider the subset H of G formed by the r distinct powers of g : H = {1, g , g 2 , . . . , g r 1 }. H is a subgroup of G. Dene a relation in G by setting f f f fH = {f , fg , . . . , fg r 1 }. This relation is an equivalence relation, and therefore, divides the elements of G into disjoint equivalence classes which can be given as follows fH , f G. Clearly, |fH | = r , for all f G. Consequently, r divides the number |G| of all elements in G.
Corollary
Corollary 5.5. If b Zn then b(n) 1( mod n). Proof. Eulers -function is dened as (n) = |{x Z | 0 < x < n, gcd(x , n) = 1}|, for a positive integer n. Thus |Zn | = (n). Let b Zn . Let us denote by r the order of b. By Theorem 5.4 r divides (n). Since br 1( mod n), the claim follows.
More Corollaries
Corollary . (Eulers theorem.) Let F be a nite eld, which has q elements, and let b F . Then the order of b divides q 1 and bq 1 = 1. Proof. (F , ) is a multiplicative group with q 1 elements.
Corollary 5.6 (Fermat) Suppose p is prime and b Zp . Then bp b( mod p). Proof. Zp is a nite eld with p elements. For b = 0, the congruence holds. If b = 0, then b Zp , and the claim follows from Eulers theorem.
divides t ,
where is the Euler phi-function. Proof. Let integer d be such that d |n, and denote Ad = {r | 1 r n, gcd(r , n) = d }, or what is the same, Ad = {r | r = d , 1
n ). Hence it follows that |Ad | = ( d
n n , gcd( , ) = 1}. d d
Proof Continued
It follows that n=
d |n
|Ad | =
d |n
n ( ) = d
n d |n
n ( ) = d
(k ).
k |n
Proof Continued
Suppose now that d is an arbitrary divisor of q 1. If Bd = , then |Bd | = 0. If Bd = , then we know from above that |Bd | = (d ). It follows that q 1 = |F | =
d |(q 1)
|Bd |
d |(q 1)
(d ).
Consequently, (d ) =
d |(q 1) d |(q 1)
|Bd | = q 1,
Primitive Element
Denition Suppose there is g G such that for all h G there is an integer k such that h = g k . Then we say that G is a cyclic group and that G is generated by g . Corollary Suppose that F is a nite eld. Then the multiplicative group (F , ) is a cyclic group. Proof. Denote |F| = q . By Proposition 4 there are (q 1) elements of order q 1 in F . Clearly, each such element is a generator of F .
Denition. Suppose that F is a nite eld. An element in F with maximal order that is equal to |F| 1 = |F |, is called a primitive element. A nite eld F has (|F| 1) primitive elements.
Example
Consider the eld Z19 . Then the number 2 is primitive modulo 19, which we can verify, for example, as follows. The factorization of the integer 19 -1 = 18 is 18 = 2 3 3. By exercise 5.4 of the textbook it sufces to check that that 29 = 512 = 1( mod19) and 26 = 64 = 1( mod19). Hence Z19 = {2k mod 19 | k = 0, 1, . . . , 17}. Next we determine the cyclic subgroups of Z19 . The number of elements of a cyclic subgroup of Z19 must be a divisor of 18. By Eulers theorem, the following numbers are possible: 1, 2, 3, 6, 9 and 18. We denote by Sr the cyclic subgroup of r elements. Below, we list the exponents k such that 2k Sr , for all divisors r of 18.
Galois Fields
For every prime p and positive integer n there is a nite eld with cardinality pn . Construction: Take a polynomial f (x ) of degree n with coefcients in Zp . Consider a set of polynomials with degree less than n. This set has pn polynomials. With polynomial arithmetic modulo f (x ) this set is a ring denoted as Zp [x ]/ f (x ) . Fact: If f (x ) is irreducible, then this ring is a eld and it is denoted by GF (pn ). If f (x ) is irreducible, then every nonzero polynomial has a multiplicative inverse modulo f (x ). We can compute a multiplicative inverse of a polynomial using the Extended Euclidean Algorithm (EEA).
qi x2 x 1
ti 0 1 x2 x3 + 1 3 x + x2 + 1
si 1 0 1 x x +1
= x +1 = x3 + x + 1 = x2 + 1 = x3 + x2 + x = x3 + x2 + 1 = x3 + 1
x8
11
x 13 x 14