SlideShare a Scribd company logo
1 of 27
Download to read offline
Mathematics of Cryptography
Algebraic Structures-2
GF(2n) FIELDS
• In cryptography, we often need to use four
operations (addition, subtraction, multiplication,
and division).
• In other words, we need to use fields.
• We can work in GF(2n) and uses a set of 2n elements.
The elements in this set are n-bit words.
Let us define a GF(22) field in which the set has four 2-bit
words: {00, 01, 10, 11}. We can redefine addition and
multiplication for this field in such a way that all properties of
these operations are satisfied, as shown in figure below
Example
Addition and multiplication table
for GF(2²) field
Table 1: Addition
+ 0 1 x x + 1
0 0 1 x x + 1
1 1 0 x + 1 x
x x x + 1 0 1
x + 1 x + 1 x 1 0
0 1 x x + 1
0 0 0 0 0
1 0 1 x x + 1
x 0 x x2 mod m x2 + x mod m
x + 1 0 x + 1 x2 + x mod m x2 + 1 mod m
Table 2: Multiplication
What is m in table 2?
It’s a “reduction polynomial” which brings the product back down
to degree 1 or less. It has to be a polynomial of degree 2. There
are four such polynomials: let’s try each and see what we get.
0 x
x 1
x2
1 x + 1
x + 1 0
x2 + 1
x 0
0 x + 1
x2 + x
x + 1 1
1 x
x2 + x + 1
Note : The first three polynomials all factor into products of lower-degree
polynomials: x2 = x(x), x2 + 1 = (x + 1)(x + 1), x2 + x = x(x + 1). Only x2 + x + 1 is
prime; and this prime reduction polynomial generates a complete
multiplication table with no 0s.
Our final tables for addition and multiplication are:
+ 0 1 x x + 1
0 0 1 x x + 1
1 1 0 x + 1 x
x x x + 1 0 1
x + 1 x + 1 x 1 0
0 1 x x + 1
0 0 0 0 0
1 0 1 x x + 1
x 0 x x + 1 1
x + 1 0 x + 1 1 x
We can also write our elements in binary form: 0 => 00, 1 =>
01, x => 10, and x + 1 =>11. In this notation our tables become:
+ 00 01 10 11
00 00 01 10 11
01 01 00 11 10
10 10 11 00 01
11 11 10 01 00
00 01 10 11
00 00 00 00 00
01 00 01 10 11
10 00 10 11 01
11 00 11 01 10
Polynomials
A polynomial of degree n − 1 is an expression of the
form
where xi is called the ith term and ai is called
coefficient of the ith term.
The following figure show how we can represent the 8-bit
word (10011001) using a polynomials.
Example
To find the 8-bit word related to the polynomial x5 + x2 + x, we
first supply the omitted terms. Since n = 8, it means the
polynomial is of degree 7. The expanded polynomial is
This is related to the 8-bit word 00100110.
Example
GF(2n) Fields
Polynomials representing n-bit words use two
fields: GF(2) and GF(2n).
For the sets of polynomials in GF(2n), a group of
polynomials of degree n is defined as the modulus.
Such polynomials are referred to as irreducible
polynomials.
NOTE
Addition and subtraction operations on polynomials
are the same operation.
Addition
Let us do (x5 + x2 + x)  (x3 + x2 + 1) in GF(28). We use the
symbol  to show that we mean polynomial addition. The
following shows the procedure:
Example
There is also another short cut. Because the addition in GF(2)
means the exclusive-or (XOR) operation. So we can exclusive-
or the two words, bits by bits, to get the result.
In the previous example, x5 + x2 + x is 00100110 and x3 + x2 + 1
is 00001101. The result is 00101011 or in polynomial notation
x5 + x3 + x + 1.
Example
Multiplication
1. The coefficient multiplication is done in GF(2).
2. The multiplying xi by xj results in xi+j.
3. The multiplication may create terms with degree more
than n − 1, which means the result needs to be reduced
using a modulus polynomial.
Find the result of (x5 + x2 + x) (x7 + x4 + x3 + x2 + x) in
GF(28) with irreducible polynomial (x8 + x4 + x3 + x + 1). Note
that we use the symbol to show the multiplication of two
polynomials.
To find the final result, divide the polynomial of degree 12 by
the polynomial of degree 8 (the modulus) and keep only the
remainder. The process of division is shown in the next slide.
Solution
Example
In GF (24), find the inverse of (x2 + 1) modulo (x4 + x + 1).
Solution
The answer is (x3 + x + 1) as shown in Table below using
Extended Euclidean algorithm.
Example
Using a Generator
Sometimes it is easier to define the elements of the
GF(2n) field using a generator.
Generate the elements of the field GF(24) using the irreducible
polynomial ƒ(x) = x4 + x + 1.
• The elements 0, g0, g1, g2, and g3 can be easily generated,
because they are the 4-bit representations of 0, 1, x2, and x3.
• Elements g4 through g14, which represent x4 though x14 need
to be divided by the irreducible polynomial.
• To avoid the polynomial division, the relation
ƒ(g) = g4 + g + 1 = 0 can be used (See next slide).
Example
The following show the results of addition and subtraction
operations:
Example
The following show the result of multiplication and division
operations:.
Example
Inverses
Additive Inverses
The additive inverses of each element is the element itself
because addition and subtraction in this field are the same.
-g3 = g3
Multiplicative Inverse
(g3 )-1 = g-3 =g12 = g3 + g2 + g + 1 (1111)
Note: exponent are calculated modulo 2n -1, here n = 15.
Summary
The finite field GF(2n) can be used to define four
operations of addition, subtraction, multiplication
and division over n-bit words. The only restriction is
that division by zero is not defined.

More Related Content

Similar to Lec_10.pdf

13 1 basics_integration
13 1 basics_integration13 1 basics_integration
13 1 basics_integrationManarAdham
 
Factoring Polynomials (1).pptx
Factoring Polynomials (1).pptxFactoring Polynomials (1).pptx
Factoring Polynomials (1).pptxMartiNBaccay2
 
Amth250 octave matlab some solutions (2)
Amth250 octave matlab some solutions (2)Amth250 octave matlab some solutions (2)
Amth250 octave matlab some solutions (2)asghar123456
 
شيت دمحمددسوقى
شيت دمحمددسوقىشيت دمحمددسوقى
شيت دمحمددسوقىabdoo2020
 
Introduction to functions
Introduction to functionsIntroduction to functions
Introduction to functionsElkin Guillen
 
Calculus_I_Chapter_1 (Printed version).pdf
Calculus_I_Chapter_1 (Printed version).pdfCalculus_I_Chapter_1 (Printed version).pdf
Calculus_I_Chapter_1 (Printed version).pdfHung227634
 
Statistics Assignment 1 HET551 – Design and Developm.docx
Statistics Assignment 1 HET551 – Design and Developm.docxStatistics Assignment 1 HET551 – Design and Developm.docx
Statistics Assignment 1 HET551 – Design and Developm.docxrafaelaj1
 
DIFFERENTIATION Integration and limits (1).pptx
DIFFERENTIATION Integration and limits (1).pptxDIFFERENTIATION Integration and limits (1).pptx
DIFFERENTIATION Integration and limits (1).pptxOchiriaEliasonyait
 
Introduction to Functions
Introduction to FunctionsIntroduction to Functions
Introduction to FunctionsMelanie Loslo
 
Mutiplyin and dividing expressions
Mutiplyin and dividing expressionsMutiplyin and dividing expressions
Mutiplyin and dividing expressionsfarahMM1
 

Similar to Lec_10.pdf (20)

chapter3.ppt
chapter3.pptchapter3.ppt
chapter3.ppt
 
13 1 basics_integration
13 1 basics_integration13 1 basics_integration
13 1 basics_integration
 
Factoring Polynomials (1).pptx
Factoring Polynomials (1).pptxFactoring Polynomials (1).pptx
Factoring Polynomials (1).pptx
 
Functions
FunctionsFunctions
Functions
 
Algebra
AlgebraAlgebra
Algebra
 
Algebra part 2
Algebra part 2Algebra part 2
Algebra part 2
 
Graph a function
Graph a functionGraph a function
Graph a function
 
Amth250 octave matlab some solutions (2)
Amth250 octave matlab some solutions (2)Amth250 octave matlab some solutions (2)
Amth250 octave matlab some solutions (2)
 
شيت دمحمددسوقى
شيت دمحمددسوقىشيت دمحمددسوقى
شيت دمحمددسوقى
 
Calc 7.1a
Calc 7.1aCalc 7.1a
Calc 7.1a
 
Note introductions of functions
Note introductions of functionsNote introductions of functions
Note introductions of functions
 
Introduction to functions
Introduction to functionsIntroduction to functions
Introduction to functions
 
Calculus_I_Chapter_1 (Printed version).pdf
Calculus_I_Chapter_1 (Printed version).pdfCalculus_I_Chapter_1 (Printed version).pdf
Calculus_I_Chapter_1 (Printed version).pdf
 
Chithra
ChithraChithra
Chithra
 
Goldie chapter 4 function
Goldie chapter 4 functionGoldie chapter 4 function
Goldie chapter 4 function
 
Statistics Assignment 1 HET551 – Design and Developm.docx
Statistics Assignment 1 HET551 – Design and Developm.docxStatistics Assignment 1 HET551 – Design and Developm.docx
Statistics Assignment 1 HET551 – Design and Developm.docx
 
DIFFERENTIATION Integration and limits (1).pptx
DIFFERENTIATION Integration and limits (1).pptxDIFFERENTIATION Integration and limits (1).pptx
DIFFERENTIATION Integration and limits (1).pptx
 
Introduction to Functions
Introduction to FunctionsIntroduction to Functions
Introduction to Functions
 
Mutiplyin and dividing expressions
Mutiplyin and dividing expressionsMutiplyin and dividing expressions
Mutiplyin and dividing expressions
 
Advance algebra
Advance algebraAdvance algebra
Advance algebra
 

More from Mattupallipardhu (13)

Module 1.pptx
Module 1.pptxModule 1.pptx
Module 1.pptx
 
Image processing.pptx
Image processing.pptxImage processing.pptx
Image processing.pptx
 
Pyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdfPyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdf
 
Lec_2.pdf
Lec_2.pdfLec_2.pdf
Lec_2.pdf
 
Lec_4.pdf
Lec_4.pdfLec_4.pdf
Lec_4.pdf
 
2-D Transformations.pdf
2-D Transformations.pdf2-D Transformations.pdf
2-D Transformations.pdf
 
Ray Tracing.pdf
Ray Tracing.pdfRay Tracing.pdf
Ray Tracing.pdf
 
Fundamentals of Computer Graphics.pdf
Fundamentals of Computer Graphics.pdfFundamentals of Computer Graphics.pdf
Fundamentals of Computer Graphics.pdf
 
raster algorithm.pdf
raster algorithm.pdfraster algorithm.pdf
raster algorithm.pdf
 
Hidden_surfaces.pdf
Hidden_surfaces.pdfHidden_surfaces.pdf
Hidden_surfaces.pdf
 
cathoderaytube.pdf
cathoderaytube.pdfcathoderaytube.pdf
cathoderaytube.pdf
 
2d Transformation.pdf
2d Transformation.pdf2d Transformation.pdf
2d Transformation.pdf
 
3. Syntax Analyzer.pptx
3. Syntax Analyzer.pptx3. Syntax Analyzer.pptx
3. Syntax Analyzer.pptx
 

Recently uploaded

VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 

Recently uploaded (20)

VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 

Lec_10.pdf

  • 2. GF(2n) FIELDS • In cryptography, we often need to use four operations (addition, subtraction, multiplication, and division). • In other words, we need to use fields. • We can work in GF(2n) and uses a set of 2n elements. The elements in this set are n-bit words.
  • 3. Let us define a GF(22) field in which the set has four 2-bit words: {00, 01, 10, 11}. We can redefine addition and multiplication for this field in such a way that all properties of these operations are satisfied, as shown in figure below Example
  • 4. Addition and multiplication table for GF(2²) field Table 1: Addition + 0 1 x x + 1 0 0 1 x x + 1 1 1 0 x + 1 x x x x + 1 0 1 x + 1 x + 1 x 1 0
  • 5. 0 1 x x + 1 0 0 0 0 0 1 0 1 x x + 1 x 0 x x2 mod m x2 + x mod m x + 1 0 x + 1 x2 + x mod m x2 + 1 mod m Table 2: Multiplication
  • 6. What is m in table 2? It’s a “reduction polynomial” which brings the product back down to degree 1 or less. It has to be a polynomial of degree 2. There are four such polynomials: let’s try each and see what we get. 0 x x 1 x2 1 x + 1 x + 1 0 x2 + 1 x 0 0 x + 1 x2 + x x + 1 1 1 x x2 + x + 1 Note : The first three polynomials all factor into products of lower-degree polynomials: x2 = x(x), x2 + 1 = (x + 1)(x + 1), x2 + x = x(x + 1). Only x2 + x + 1 is prime; and this prime reduction polynomial generates a complete multiplication table with no 0s.
  • 7. Our final tables for addition and multiplication are: + 0 1 x x + 1 0 0 1 x x + 1 1 1 0 x + 1 x x x x + 1 0 1 x + 1 x + 1 x 1 0 0 1 x x + 1 0 0 0 0 0 1 0 1 x x + 1 x 0 x x + 1 1 x + 1 0 x + 1 1 x
  • 8. We can also write our elements in binary form: 0 => 00, 1 => 01, x => 10, and x + 1 =>11. In this notation our tables become: + 00 01 10 11 00 00 01 10 11 01 01 00 11 10 10 10 11 00 01 11 11 10 01 00 00 01 10 11 00 00 00 00 00 01 00 01 10 11 10 00 10 11 01 11 00 11 01 10
  • 9. Polynomials A polynomial of degree n − 1 is an expression of the form where xi is called the ith term and ai is called coefficient of the ith term.
  • 10. The following figure show how we can represent the 8-bit word (10011001) using a polynomials. Example
  • 11. To find the 8-bit word related to the polynomial x5 + x2 + x, we first supply the omitted terms. Since n = 8, it means the polynomial is of degree 7. The expanded polynomial is This is related to the 8-bit word 00100110. Example
  • 12. GF(2n) Fields Polynomials representing n-bit words use two fields: GF(2) and GF(2n).
  • 13. For the sets of polynomials in GF(2n), a group of polynomials of degree n is defined as the modulus. Such polynomials are referred to as irreducible polynomials.
  • 14. NOTE Addition and subtraction operations on polynomials are the same operation. Addition
  • 15. Let us do (x5 + x2 + x)  (x3 + x2 + 1) in GF(28). We use the symbol  to show that we mean polynomial addition. The following shows the procedure: Example
  • 16. There is also another short cut. Because the addition in GF(2) means the exclusive-or (XOR) operation. So we can exclusive- or the two words, bits by bits, to get the result. In the previous example, x5 + x2 + x is 00100110 and x3 + x2 + 1 is 00001101. The result is 00101011 or in polynomial notation x5 + x3 + x + 1. Example
  • 17. Multiplication 1. The coefficient multiplication is done in GF(2). 2. The multiplying xi by xj results in xi+j. 3. The multiplication may create terms with degree more than n − 1, which means the result needs to be reduced using a modulus polynomial.
  • 18. Find the result of (x5 + x2 + x) (x7 + x4 + x3 + x2 + x) in GF(28) with irreducible polynomial (x8 + x4 + x3 + x + 1). Note that we use the symbol to show the multiplication of two polynomials. To find the final result, divide the polynomial of degree 12 by the polynomial of degree 8 (the modulus) and keep only the remainder. The process of division is shown in the next slide. Solution Example
  • 19.
  • 20. In GF (24), find the inverse of (x2 + 1) modulo (x4 + x + 1). Solution The answer is (x3 + x + 1) as shown in Table below using Extended Euclidean algorithm. Example
  • 21. Using a Generator Sometimes it is easier to define the elements of the GF(2n) field using a generator.
  • 22. Generate the elements of the field GF(24) using the irreducible polynomial ƒ(x) = x4 + x + 1. • The elements 0, g0, g1, g2, and g3 can be easily generated, because they are the 4-bit representations of 0, 1, x2, and x3. • Elements g4 through g14, which represent x4 though x14 need to be divided by the irreducible polynomial. • To avoid the polynomial division, the relation ƒ(g) = g4 + g + 1 = 0 can be used (See next slide). Example
  • 23.
  • 24. The following show the results of addition and subtraction operations: Example
  • 25. The following show the result of multiplication and division operations:. Example
  • 26. Inverses Additive Inverses The additive inverses of each element is the element itself because addition and subtraction in this field are the same. -g3 = g3 Multiplicative Inverse (g3 )-1 = g-3 =g12 = g3 + g2 + g + 1 (1111) Note: exponent are calculated modulo 2n -1, here n = 15.
  • 27. Summary The finite field GF(2n) can be used to define four operations of addition, subtraction, multiplication and division over n-bit words. The only restriction is that division by zero is not defined.