SlideShare a Scribd company logo
Group, Ring, Field
Finite (Galois) Fields
• finite fields play a key role in cryptography
• can show number of elements in a finite field
must be a power of a prime pn
• known as Galois fields
• denoted GF(pn)
• in particular often use the fields:
– GF(p)
– GF(2n)
Galois Fields GF(p)
• GF(p) is the set of integers {0,1, … , p-1} with
arithmetic operations modulo prime p
• these form a finite field
– since have multiplicative inverses
– find inverse with Extended Euclidean algorithm
• hence arithmetic is “well-behaved” and can do
addition, subtraction, multiplication, and
division without leaving the field GF(p)
GF(7) Multiplication Example
 0 1 2 3 4 5 6
0 0 0 0 0 0 0 0
1 0 1 2 3 4 5 6
2 0 2 4 6 1 3 5
3 0 3 6 2 5 1 4
4 0 4 1 5 2 6 3
5 0 5 3 1 6 4 2
6 0 6 5 4 3 2 1
Polynomial Arithmetic
• can compute using polynomials
f(x) = anxn + an-1xn-1 + … + a1x + a0 = ∑ aixi
• nb. not interested in any specific value of x
• which is known as the indeterminate
• several alternatives available
– ordinary polynomial arithmetic
– poly arithmetic with coords mod p
– poly arithmetic with coords mod p and
polynomials mod m(x)
Ordinary Polynomial Arithmetic
• add or subtract corresponding coefficients
• multiply all terms by each other
• eg
let f(x) = x3 + x2 + 2 and g(x) = x2 – x + 1
f(x) + g(x) = x3 + 2x2 – x + 3
f(x) – g(x) = x3 + x + 1
f(x) x g(x) = x5 + 3x2 – 2x + 2
Polynomial Arithmetic with Modulo
Coefficients
when computing value of each coefficient do
calculation modulo some value
forms a polynomial ring
could be modulo any prime
but we are most interested in mod 2
ie all coefficients are 0 or 1
eg. let f(x) = x3 + x2 and g(x) = x2 + x + 1
f(x) + g(x) = x3 + x + 1
f(x) x g(x) = x5 + x2
Polynomial Division
• can write any polynomial in the form:
– f(x) = q(x) g(x) + r(x)
– can interpret r(x) as being a remainder
– r(x) = f(x) mod g(x)
• if have no remainder say g(x) divides f(x)
• if g(x) has no divisors other than itself & 1 say
it is irreducible (or prime) polynomial
• arithmetic modulo an irreducible polynomial
forms a field
Polynomial GCD
• can find greatest common divisor for polys
– c(x) = GCD(a(x), b(x)) if c(x) is the poly of greatest degree
which divides both a(x), b(x)
• can adapt Euclid’s Algorithm to find it:
Euclid(a(x), b(x))
if (b(x)=0) then return a(x);
else return
Euclid(b(x), a(x) mod b(x));
23.ppt
Problem: Find the GCD of 3x6 + 2x2+x +5 and 6x4 + x3 + 2x +4 in
F7[x]
Solution: Divide
3x6 + 2x2+x +5 by 6x4 + x3 + 2x +4
Q: 4x2+ 4x +4 R: 2x3 +6x2+5x +3
Divide
3x6 + 2x2+x +5 by 2x3 +6x2+5x +3
Q: 3x +2 R: x2+4x+5
Divide 2x3 +6x2+5x +3 by x2+4x+5
Q: 2x +5 R: 3x +6
Divide x2+4x+5 by 3x +6
Q: 5x +3 R: 1
Problem: determine the GCD for the pair of
polynomials X3 + x +1 and x2 + x +1 over GF(2).
Ans: 1

More Related Content

PPT
Number theory
PPT
ch04 cryptography and network security.ppt
PDF
Finite fields
PPT
PPT
Cryptography and Network Security chapter 4.ppt
PPT
PPT
11848 ch04(1)
Number theory
ch04 cryptography and network security.ppt
Finite fields
Cryptography and Network Security chapter 4.ppt
11848 ch04(1)

Similar to 23.ppt (20)

PPT
11848 ch04(1) (1)
PDF
Number theory lecture (part 2)
PPT
Chap4
PPT
ch04_crypotography_william_stallings slides
PPT
Information Security Seminar #2
PDF
doc6.pdf
PDF
lecture5.pdf
PDF
sheet6.pdf
PDF
paper6.pdf
PPT
ADVANCED ALGORITHMS-UNIT-3-Final.ppt
PPTX
Galois field
PDF
BUKU ENGLIS FOR MATHEMATICS
PDF
English math dictionary
PDF
PDF
Cryptography
DOCX
Classical Encryption Techniques: Symmetric cipher model, Substitution techniq...
PPT
Iss lecture 3
PPTX
Polynomial equations
PDF
Number Theory for Security
11848 ch04(1) (1)
Number theory lecture (part 2)
Chap4
ch04_crypotography_william_stallings slides
Information Security Seminar #2
doc6.pdf
lecture5.pdf
sheet6.pdf
paper6.pdf
ADVANCED ALGORITHMS-UNIT-3-Final.ppt
Galois field
BUKU ENGLIS FOR MATHEMATICS
English math dictionary
Cryptography
Classical Encryption Techniques: Symmetric cipher model, Substitution techniq...
Iss lecture 3
Polynomial equations
Number Theory for Security
Ad

More from TapodhirAcharjee2 (7)

PPTX
Wireless-4.pptx
PPTX
PPT
PPT
PPTX
Ad

Recently uploaded (20)

DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
01-Introduction-to-Information-Management.pdf
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Cell Structure & Organelles in detailed.
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
Lesson notes of climatology university.
PPTX
master seminar digital applications in india
PDF
Updated Idioms and Phrasal Verbs in English subject
PDF
Supply Chain Operations Speaking Notes -ICLT Program
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
Microbial diseases, their pathogenesis and prophylaxis
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
01-Introduction-to-Information-Management.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Complications of Minimal Access Surgery at WLH
Final Presentation General Medicine 03-08-2024.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
UNIT III MENTAL HEALTH NURSING ASSESSMENT
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Cell Structure & Organelles in detailed.
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Lesson notes of climatology university.
master seminar digital applications in india
Updated Idioms and Phrasal Verbs in English subject
Supply Chain Operations Speaking Notes -ICLT Program

23.ppt

  • 2. Finite (Galois) Fields • finite fields play a key role in cryptography • can show number of elements in a finite field must be a power of a prime pn • known as Galois fields • denoted GF(pn) • in particular often use the fields: – GF(p) – GF(2n)
  • 3. Galois Fields GF(p) • GF(p) is the set of integers {0,1, … , p-1} with arithmetic operations modulo prime p • these form a finite field – since have multiplicative inverses – find inverse with Extended Euclidean algorithm • hence arithmetic is “well-behaved” and can do addition, subtraction, multiplication, and division without leaving the field GF(p)
  • 4. GF(7) Multiplication Example  0 1 2 3 4 5 6 0 0 0 0 0 0 0 0 1 0 1 2 3 4 5 6 2 0 2 4 6 1 3 5 3 0 3 6 2 5 1 4 4 0 4 1 5 2 6 3 5 0 5 3 1 6 4 2 6 0 6 5 4 3 2 1
  • 5. Polynomial Arithmetic • can compute using polynomials f(x) = anxn + an-1xn-1 + … + a1x + a0 = ∑ aixi • nb. not interested in any specific value of x • which is known as the indeterminate • several alternatives available – ordinary polynomial arithmetic – poly arithmetic with coords mod p – poly arithmetic with coords mod p and polynomials mod m(x)
  • 6. Ordinary Polynomial Arithmetic • add or subtract corresponding coefficients • multiply all terms by each other • eg let f(x) = x3 + x2 + 2 and g(x) = x2 – x + 1 f(x) + g(x) = x3 + 2x2 – x + 3 f(x) – g(x) = x3 + x + 1 f(x) x g(x) = x5 + 3x2 – 2x + 2
  • 7. Polynomial Arithmetic with Modulo Coefficients when computing value of each coefficient do calculation modulo some value forms a polynomial ring could be modulo any prime but we are most interested in mod 2 ie all coefficients are 0 or 1 eg. let f(x) = x3 + x2 and g(x) = x2 + x + 1 f(x) + g(x) = x3 + x + 1 f(x) x g(x) = x5 + x2
  • 8. Polynomial Division • can write any polynomial in the form: – f(x) = q(x) g(x) + r(x) – can interpret r(x) as being a remainder – r(x) = f(x) mod g(x) • if have no remainder say g(x) divides f(x) • if g(x) has no divisors other than itself & 1 say it is irreducible (or prime) polynomial • arithmetic modulo an irreducible polynomial forms a field
  • 9. Polynomial GCD • can find greatest common divisor for polys – c(x) = GCD(a(x), b(x)) if c(x) is the poly of greatest degree which divides both a(x), b(x) • can adapt Euclid’s Algorithm to find it: Euclid(a(x), b(x)) if (b(x)=0) then return a(x); else return Euclid(b(x), a(x) mod b(x));
  • 11. Problem: Find the GCD of 3x6 + 2x2+x +5 and 6x4 + x3 + 2x +4 in F7[x] Solution: Divide 3x6 + 2x2+x +5 by 6x4 + x3 + 2x +4 Q: 4x2+ 4x +4 R: 2x3 +6x2+5x +3 Divide 3x6 + 2x2+x +5 by 2x3 +6x2+5x +3 Q: 3x +2 R: x2+4x+5 Divide 2x3 +6x2+5x +3 by x2+4x+5 Q: 2x +5 R: 3x +6 Divide x2+4x+5 by 3x +6 Q: 5x +3 R: 1
  • 12. Problem: determine the GCD for the pair of polynomials X3 + x +1 and x2 + x +1 over GF(2). Ans: 1