Mathematical Background Groups, Rings and Field | ECE 746, Study notes of Electrical and Electronics Engineering

Material Type: Notes; Professor: Gaj; Class: Advanced Applied Cryptography; Subject: Electrical & Computer Enginrg; University: George Mason University; Term: Unknown 1989;

Typology: Study notes

Pre 2010

Uploaded on 02/10/2009

koofers-user-opr
koofers-user-opr 🇺🇸

10 documents

1 / 19

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
Mathematical background
Groups, rings, and fields
ECE 746: Lecture 3
Evariste Galois (1811-1832)
Evariste Galois (1811-1832)
Studied the problem of finding algebraic solutions for the general
equations of the degree 5, e.g.,
f(x) = a5x5+ a4x4+ a3x3+ a2x2+ a1x+ a0= 0
Answered definitely the question which specific equations of
a given degree have algebraic solutions
On the way, he developed group theory,
one of the most important branches of modern mathematics.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Mathematical Background Groups, Rings and Field | ECE 746 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Mathematical background

Groups, rings, and fields

ECE 746: Lecture 3

Evariste Galois (1811-1832)

Evariste Galois (1811-1832)

Studied the problem of finding algebraic solutions for the general

equations of the degree  5, e.g.,

f(x) = a

5

x

5

  • a

4

x

4

  • a

3

x

3

  • a

2

x

2

  • a

1

x+ a

0

Answered definitely the question which specific equations of

a given degree have algebraic solutions

On the way, he developed group theory ,

one of the most important branches of modern mathematics.

Evariste Galois (1811-1832)

1829 Galois submits his results for the first time to

the French Academy of Sciences

Reviewer 1

Augustin-Luis Cauchy forgot or lost the communication

1830 Galois submits the revised version of his manuscript,

hoping to enter the competition for the Grand Prize

in mathematics

Reviewer 2

Joseph Fourier – died shortly after receiving the manuscript

1831 Third submission to the French Academy of Sciences

Reviewer 3

Simeon-Denis Poisson – did not understand the manuscript

and rejected it.

Evariste Galois (1811-1832)

May 1832 Galois provoked into a duel

The night before the duel he writes a letter to his friend

containing the summary of his discoveries.

The letter ends with a plea:

Eventually there will be, I hope, some people who

will find it profitable to decipher this mess.

May 30, 1832 Galois is grievously wounded in the duel and dies

in the hospital the following day.

1843 Galois manuscript rediscovered by Joseph Liouville

1846 Galois manuscript published for

the first time in a mathematical journal

Group

Example 2

( Z - set of integers, · multiplication ) is NOT a group

i) · is associative e.g., (5 · 7) · 13 = 5 · (7 · 13)

ii) Identity element = 1 a · 1 = 1 · a = a

iii)

No inverse of a for any a1 or - 1

iv) · is commutative e.g.,

e.g., there is no integer x , such that 5 · x = 1

Group

Example 3

( Z

n

= {0, 1, 2, …, n - 1}, + mod n : addition modulo n )

is an abelian finite group of order n

i) + mod n is associative

e.g., (((5+7) mod 16) + 13) mod 16 = (5+((7 + 13) mod 16)) mod 16

ii) Identity element = 0 (0+ a ) mod n = ( a + 0 ) mod n = a

iii) Inverse of a = 0 for a =

n - a otherwise

e.g., 7 + (16-7) =

7 + 9 mod 16 = 0

iv) + mod n is commutative e.g., 5 + 8 mod 16 = 8 + 5 mod 16

Group

Example 4

( Z

n

- {0} = {1, 2, …, n - 1}, · mod n : multiplication modulo n )

is NOT a group if n is composite

i) · mod n is associative

e.g., (((5·7) mod 16) · 4) mod 16 = (5 ·((7 · 4) mod 16)) mod 16

ii) Identity element = 1 ( a ·1) mod n = (1 · a ) mod n = a

iii) There is no inverse of a for any a

that is not relatively prime with n

iv) · mod n is commutative e.g., (5 · 8) mod 16 = (8 · 5) mod 16

e.g., there is no x Z

n

such that

(2 · x) mod 16 = 1

Group

Example 5a

( Z

n

__*

= {a: a  {1, 2, …, n - 1} and a is relatively prime with n },

· mod n : multiplication modulo n )

is an abelian finite group of order  (n)

i) · mod n is associative

e.g., (((4 ·7) mod 15) · 2) mod 16 = (4 ·((7 · 2) mod 15)) mod 16

ii) Identity element = 1

( a ·1) mod n = (1 · a ) mod n = a

iii)

There is an inverse for every

element of the group

iv) · mod n is commutative e.g., (5 · 8) mod 15 = (8 · 5) mod 15

e.g., (2 · 8) mod 15 = 1

(4 · 4) mod 15 = 1

(7 ·13) mod 15 = 1

(11 ·11) mod 15 = 1

For n = 15, Z

n

*

Group

Example 5b

( Z

p

__*

= {1, 2, …, p - 1} where p is prime},

· mod p : multiplication modulo p )

is an abelian finite group of order p- 1

i) · mod n is associative

e.g., (((4 ·7) mod 11) · 2) mod 11 = (4 ·((7 · 2) mod 11)) mod 11

ii) Identity element = 1 ( a ·1) mod p = (1 · a ) mod p = a

iii) There is an inverse for every

element of the group

iv) · mod n is commutative e.g., (5 · 8) mod 11 = (8 · 5) mod 11

e.g., (2 · 6) mod 11 = 1

(3 · 4) mod 11 = 1

(5 · 9) mod 11 = 1

(7 ·8) mod 11 = 1

For p = 11, Z

p

*

= {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} (11)= 11-1=

Cyclic Group

Test for a generator of a cyclic group

Size of the cyclic group Z

11

*

Test for a=

10/

mod 11 = 2

5

mod 11 = 10  1

10/

mod 11 = 2

2

mod 11 = 4  1

Result: 2 is a generator of Z

11

__*

Test for a=

10/

mod 11 = 3

5

mod 11 = 243 mod 11 = 1

10/

mod 11 = 3

2

mod 11 = 9  1

Result: 3 is NOT a generator of Z

11

__*

Subgroups of a Cyclic Group

Performing operations in the cyclic

groups using logarithms and

antilogarithms (1)

a = g

i

 i = log

g

a further denoted as log a

b = g

j

 j = log

g

b further denoted as log b

c = a · b = g

i

· g

j

= g

i+j

= g

log a + log b

= g

(log a + log b) mod |G|

Performing operations in the cyclic

groups using logarithms and

antilogarithms (2)

For every k  G we define look-up tables:

alog[k] = g

k

log[k] = log

g

k further denoted as log k

c = a · b = g

i

· g

j

= g

i+j

= g

log a + log b

= g

(log a + log b) mod |G|

= alog[(log[a]+log[b]) mod |G|]

Example:

1

mod 11 = 2

2

mod 11 = 4

3

mod 11 = 8

4

mod 11 = 5

5

mod 11 = 10

6

mod 11 = 9

7

mod 11 = 7

8

mod 11 = 3

9

mod 11 = 6

10

mod 11 = 1

k alog[k]

1 2 3 4 5 6 7 8 9

10

2

4

8

5

10

9

7

3

6

1

k log[k]

1 2 3 4 5 6 7 8 9

10

10

1 8 2 4 9 7 3 6 5

3 · 5 mod 11 = alog[(log[3]+log[5]) mod 10] =

= alog[(8+4) mod 10] = alog[2] = 4

Definition of a Ring

Field

Example 9

( Z - set of integers, + addition, · multiplication )

is NOT a field

No inverse of a for any a1 or - 1

e.g., there is no integer x , such that 5 · x = 1

( Z

n

={0, 1, 2, … , n-1}, + mod n : addition modulo n ,

· mod n : multiplication modulo n )

is NOT a field if n is composite

Example 10

No inverse of a if a is not relatively prime with n

e.g., there is no xZ

n

, such that 2 · x = 1 mod 16

Field

Example 11

( Z

p

={0, 1, 2, … , p - 1}, + mod p : addition modulo p ,

· mod p : multiplication modulo p )

is a field if and only if p is prime

(Z

p

, + mod p ,  mod p ) is a commutative ring

There is multiplicative inverse for all numbers

from Z

p

i)

ii)

e.g.,

(2 · 6) mod 11 = 1  2

  • 1

mod 11 = 6

(3 · 4) mod 11 = 1  3

  • 1

mod 11 = 4

(5 · 9) mod 11 = 1  5

  • 1

mod 11 = 9

(7 · 8) mod 11 = 1  7

  • 1

mod 11 = 8

Field

Example 12

( Z

p

={0, 1, 2, … , p - 1}, + mod p : addition modulo p ,

· mod p : multiplication modulo p )

is a field of characteristic p

(1 + 1 + 1 + ……. + 1) mod p = 0

p times

Sets of polynomials

Z[x] - polynomials with coefficients in Z,

Sets of polynomials

e.g., f(x) = - 4 x

3

+ 254 x

2

+ 45 x + 7

Z

n

[x] - polynomials with coefficients in Z

n

e.g., for n=

f(x) = 3 x

3

+ 14 x

2

+ 4 x + 7

Z

2

[x] - polynomials with coefficients in Z

2

e.g., f(x) = 1 x

3

+ 0 x

2

+ 1 x + 1 = x

3

+ x + 1

Polynomial rings

(Z[x], polynomial addition, polynomial multiplication)

(Z

n

[x], polynomial addition, polynomial multiplication)

(Z

2

[x], polynomial addition, polynomial multiplication)

For Z

2

[x]

i) (Z 2

[x], +) is an abelian group with identity element 0

ii) · is associative

iii) · has an identity element = 1

f(x) · 1 mod n = 1 · f(x) mod n = f(x)

iv) · is distributive over +

e.g., (x

2

+x+1) · ((x+1)+(x

2

(x

2

+x+1) · (x+1)+(x

2

+x+1) ·(x+1)

e.g., ((x

2

+x+1) · (x+1)) · (x

2

+1) = (x

2

+x+1) · ((x+1) · (x

2

+1))

Polynomial rings

(Z

2

[x]/f(x), polynomial addition mod f(x),

polynomial multiplication mod f(x))

(Z

p

[x]/f(x), polynomial addition mod f(x),

polynomial multiplication mod f(x))

Polynomial multiplication:

(x

3

  • x + 1) (x

2

    1. mod (x

4

= (x

5

  • x

3

  • x

2

) + (x

3

  • x + 1) mod (x

4

= x

5

  • x

2

  • x + 1 mod (x

4

= x · (x

4

      • x

2

  • 1 mod (x

4

    1. = x

2

Polynomial addition:

(x

3

  • x + 1) + (x

2

    1. mod (x

4

    1. = x

3

  • x

2

  • x

Finite fields

f(x) is an irreducible polynomial of degree m

Finite fields

F

q

= GF(

m

) = (Z

2

[x]/f(x), polynomial addition mod f(x),

polynomial multiplication mod f(x))

where q = 2

m

F

q

= GF(p

m

) = (Z

p

[x]/f(x), polynomial addition mod f(x),

polynomial multiplication mod f(x))

where q = p

m

All non-zero elements have multiplicative inverses

e.g., for f(x) = x

3

  • x + 1, and p=

(x+1) · (x

2

  • x) mod x

3

  • x + 1 = 1  (x+1)
  • 1

mod f(x) = x

2

+x

Finite Fields = Galois Fields

GF(p)

GF(

m

Polynomial basis

representation

Normal basis

representation

Fast in hardware

Arithmetic

operations

present

in many libraries

Fast squaring

GF(p

m

p – prime

p

m

- number of

elements in the field

Most significant

special cases

Primitive Element

Primitive Polynomial

Addition and Multiplication

in the Galois Field GF(

m

Elements of the Galois Field GF(

m

Binary representation

(used for storing and processing in computer systems):

Polynomial representation

(used for the definition of basic arithmetic operations):

A = (a

m- 1

, a

m- 2

, …, a

2

, a

1

, a

0

) a

i

A(x) =  a

i

x

i

= a

m- 1

x

m- 1

+ a

m- 2

x

m- 2

+ …+ a

2

x

2

+ a

1

x+a

0

 multiplication

+ addition modulo 2 (XOR)

i=

m- 1

Addition and Multiplication

in the Galois Field GF(

m

)

Inputs

A = (a

m- 1

, a

m- 2

, …, a

2

, a

1

, a

0

B = (b

m- 1

, b

m- 2

, …, b

2

, b

1

, b

0

a

i

, b

i

Output

C = (c

m- 1

, c

m- 2

, …, c

2

, c

1

, c

0

) c

i

Addition

A  A(x)

B  B(x)

C  C(x) = A(x) + B(x) =

= (a

m- 1

+b

m- 1

)x

m- 1

+ (a

m- 2

+b

m- 2

)x

m- 2

+ (a

2

+b

2

)x

2

+ (a

1

+b

1

)x + (a

0

+b

0

= c

m- 1

x

m- 1

+ c

m- 2

x

m- 2

+ …+ c

2

x

2

+ c

1

x+c

0

Addition in the Galois Field GF(

m

)

 multiplication

+ addition modulo 2 (XOR)

c

i

= a

i

+ b

i

= a

i

XOR b

i

C = A XOR B

Multiplication

A  A(x)

B  B(x)

C  C(x) = A(x)  B(x) mod P(X)

= c

m- 1

x

m- 1

+ c

m- 2

x

m- 2

+ …+ c

2

x

2

+ c

1

x+c

0

Multiplication in the Galois Field GF(

m

)

P(x) - irreducible polynomial of the degree m

P(x) = p

m

x

m

+ p

m- 1

x

m- 1

+ …+ p

2

x

2

+ p

1

x+p

0

Extended Euclid’s Algorithm

Example z = 20

mod 117

i

r

i

r

  • 2

r

  • 1

r

0

r 1

r

2

r

3

r

4

x

i

x

  • 2

x

  • 1

x

0

x

1

x

2

x

3

- 1

mod 117

x

4

q

i

q

  • 1

q

0

q

1

q

2

q

3

q i

r

i - 1

r

i

r

i +

= r

i - 1

- q

i

r

i

x

i +

= x

i - 1

- q

i

x

i

Check:

20  41 mod 117 = 1