Scott CH Huang COM5336 Cryptography Lecture 11 Euclidean Domains & Division Algorithm Scott CH Huang COM 5336 Cryptography Lecture 10.

Slides:



Advertisements
Similar presentations
1 Lect. 12: Number Theory. Contents Prime and Relative Prime Numbers Modular Arithmetic Fermat’s and Euler’s Theorem Extended Euclid’s Algorithm.
Advertisements

Finite Fields Rong-Jaye Chen. p2. Finite fields 1. Irreducible polynomial f(x)  K[x], f(x) has no proper divisors in K[x] Eg. f(x)=1+x+x 2 is irreducible.
Mathematics of Cryptography Part II: Algebraic Structures
Cryptography and Network Security
Chapter 4 Finite Fields. Introduction of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key concern operations on “numbers”
Cryptography and Network Security Chapter 4 Fourth Edition by William Stallings.
Chapter 4 – Finite Fields. Introduction will now introduce finite fields of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key.
NUMBER THEORY Chapter 1: The Integers. The Well-Ordering Property.
1.  We have studied groups, which is an algebraic structure equipped with one binary operation. Now we shall study rings which is an algebraic structure.
Math 3121 Abstract Algebra I
Algebraic Structures DEFINITIONS: PROPERTIES OF BINARY OPERATIONS Let S be a set and let  denote a binary operation on S. (Here  does not necessarily.
CNS2010handout 8 :: introduction to number theory1 computer and network security matt barrie.
Cryptography and Network Security Chapter 4
Cryptography and Network Security Chapter 4 Fourth Edition by William Stallings.
Chapter II. THE INTEGERS
Introduction Polynomials
Chapter 4 – Finite Fields Introduction  will now introduce finite fields  of increasing importance in cryptography AES, Elliptic Curve, IDEA, Public.
Properties of the Integers: Mathematical Induction
WHOLE NUMBERS; INTEGERS Whole numbers: Z 0,+ = the natural numbers  {0}. Integers:
Great Theoretical Ideas in Computer Science.
1 Properties of Integers Objectives At the end of this unit, students should be able to: State the division algorithm Apply the division algorithm Find.
Rings,Fields TS. Nguyễn Viết Đông Rings, Integral Domains and Fields, 2. Polynomial and Euclidean Rings 3. Quotient Rings 2.
FINITE FIELDS 7/30 陳柏誠.
CPSC 3730 Cryptography and Network Security
1 Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown Chapter 4 – Finite Fields.
Information Security and Management 4. Finite Fields 8
Cryptography and Network Security Introduction to Finite Fields.
By: Hector L Contreras SSGT / USMC
Monoids, Groups, Rings, Fields
Basic Number Theory Divisibility Let a,b be integers with a≠0. if there exists an integer k such that b=ka, we say a divides b which is denoted by a|b.
Chapter 4 – Finite Fields
Data Security and Encryption (CSE348) 1. Lecture # 12 2.
Rational Numbers and Fields
Information Security Lab. Dept. of Computer Engineering 87/121 PART I Symmetric Ciphers CHAPTER 4 Finite Fields 4.1 Groups, Rings, and Fields 4.2 Modular.
MA/CSSE 473 Day 08 Extended Euclid's Algorithm Modular Division Fermat's little theorem.
Cryptography and Network Security Chapter 4. Introduction  will now introduce finite fields  of increasing importance in cryptography AES, Elliptic.
Tuesday’s lecture: Today’s lecture: One-way permutations (OWPs)
CS Lecture 14 Powerful Tools     !. Build your toolbox of abstract structures and concepts. Know the capacities and limits of each tool.
Ref: Pfleeger96, Ch.31 Properties of Arithmetic Reference: Pfleeger, Charles P., Security in Computing, 2nd Edition, Prentice Hall, 1996.
Lecture 3.1: Public Key Cryptography I CS 436/636/736 Spring 2015 Nitesh Saxena.
Cryptography and Network Security Chapter 4 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
Chapter 13 Mathematic Structures 13.1 Modular Arithmetic Definition 1 (modulo). Let a be an integer and m be a positive integer. We denoted by a mod m.
6.6 Rings and fields Rings  Definition 21: A ring is an Abelian group [R, +] with an additional associative binary operation (denoted ·) such that.
Multiplicative Group The multiplicative group of Z n includes every a, 0
Chapter 4 With Question/Answer Animations 1. Chapter Summary Divisibility and Modular Arithmetic - Sec 4.1 – Lecture 16 Integer Representations and Algorithms.
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
Chapter 4 With Question/Answer Animations 1. Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their.
Great Theoretical Ideas in Computer Science.
Math 3121 Abstract Algebra I
Mathematical Background : A quick approach to Group and Field Theory
Chapter4: Finite Fields
Discrete Math II Howon Kim
CS480 Cryptography and Information Security
Great Theoretical Ideas in Computer Science
Advanced Algorithms Analysis and Design
Great Theoretical Ideas In Computer Science
Quick reviews / corrections
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
B.Sc. III Year Mr. Shrimangale G.W.
Cryptography Lecture 21.
刘振 上海交通大学 计算机科学与工程系 电信群楼3-509
Great Theoretical Ideas in Computer Science
Great Theoretical Ideas in Computer Science
I. Finite Field Algebra.
Rings,Fields TS. Nguyễn Viết Đông.
Cryptology Design Fundamentals
Cryptography Lecture 19.
Mathematical Background : A quick approach to Group and Field Theory
Presentation transcript:

Scott CH Huang COM5336 Cryptography Lecture 11 Euclidean Domains & Division Algorithm Scott CH Huang COM 5336 Cryptography Lecture 10

Scott CH Huang COM 5336 Groups Binary operations on a set is a mapping A set w/ an operation satisfying 1.Closure 2.Associativity 3.Identity 4.Inverse The most fundamental algebraic structure Semi-groups: 1 & 2 only. Abelian groups: commutative groups.

Scott CH Huang COM 5336 Rings A set R with two operations: + and *. – +: commutative. – *: not necessarily commutative. (R,+) forms an abelian group. (R,*) forms a semi-group (i.e. no identity and inverse) Distributivity Ring v.s. Ring with 1 (mult. identity).

Scott CH Huang COM 5336 Integral Domains Domain = Ring w/o zero-divisors – ab=0 implies a=0 or b=0 – One-sided cancellation law Integral Domain = Commutative domain w/ 1. – Two-sided cancellation law

Scott CH Huang COM 5336 Euclidean Domains A Euclidean Domain is an integral domain with the notion of size. The notion of size enables us to apply the Division Algorithm and therefore Euclid’s Algorithm. Size of a≠0, denoted by g(a) is a nonnegative integer s.t. – g(a)≤g(ab), for all b≠0. – For all a,b≠0, there exists q,r s.t. a=qb+r, w/ r=0 or g(r)<g(b)

Scott CH Huang COM 5336 Division Algorithm A theorem in mathematics which precisely expresses the outcome of the usual process of division of integers. Its name is a misnomer. It is not a true algorithm. – A well-defined procedure for achieving a specific task

Scott CH Huang COM 5336 Division Rings A ring with unit in which division is possible. – i.e. every nonzero element has a multiplicative inverse. A division ring is NOT necessarily commutative. – But finite division rings must be commutative (Wedderburn's little theorem). A field is a commutative division ring. – Therefore all finite division rings are finite fields.

Scott CH Huang COM 5336 Relationship of Algebraic Structures Euclidean Domain Integral Domain Ring w/ unit Ring Commutative ring w/ unit Division Ring Field

Scott CH Huang COM 5336 Division in a Euclidean Domain a|b: ‘a’ divides ‘b’ iff there exists c s.t. b=ac – a,b,c  D, a Euclidean domain. If a|b 1, a|b 2,…, then a is a common divisor of b 1,b 2,… If d is a common divisor of b 1,b 2,…, and every common divisor divides d, then d is a greatest common divisor (GCD) of b 1,b 2,… In fact, the concept of GCD can be extended to certain integral domains called Principal Ideal Domains.

Scott CH Huang COM 5336 GCD in Algebraic Structures algebraic structurerequirementproperties Integral DomainlooseGCD can be defined. Pricipal Ideal DomainstricterGCD can be defined and exists. Euclidean DomainstrictestGCD can be defined and can be found

Scott CH Huang COM 5336 GCD may not exists in an Integral Domain Note that Both d 1, d 2 are common divisors of b 1, b 2, so b 1, b 2 has no greatest common divisors.

Scott CH Huang COM 5336 GCD exists in a Euclidean Domain If, then d can be expressed as a linear combination of a,b. If D is a Euclidean domain and, then d can be expressed as a linear combination of a,b How to calculate the GCD?

Scott CH Huang COM 5336 Euclid’s Inspiring Lemma gcd(s,t)=gcd(s,t-rs) for all s,t,r in a Euclidean domain D. This lemma directly results in Euclid’s algorithm.

Scott CH Huang COM 5336 Euclid’s Algorithm int gcd(s,t){ while (s!=0){ u=s; s= t mod s; t=u; } return t; }

Scott CH Huang COM 5336 Theorem #1 Let t be an element in a Euclidean domain D and m,n be two positive integers. Then *Hint: (t n -1)-t n-m (t m -1)= t n-m -1

Scott CH Huang COM 5336 Corollary #1 Let x be an element in a Euclidean domain D and q,n,d be positive integers. Then

Scott CH Huang COM 5336 Conceptually Group+, - Ring+, -, * Integral Domain+, -, * and “cancellation” Euclidean Domain+, -, * and “division algorithm” Field+, -, *, /

Scott CH Huang COM 5336 Some Examples Euclidean domain ring w/ 1 finite field commutative ring w/ 1 Euclidean domain

Scott CH Huang COM 5336 More Examples (cont’d) The set of polynomials over an arbitrary field with polynomial addition & multiplication. The set of polynomials with two variables x,y over an arbitrary field with polynomial addition & multiplication.

Scott CH Huang COM 5336 Factorization in Euclidean Domains We wish to establish a “Fundamental Theorem of Arithmetic” in Euclidean domains. Fundamental Theorem of Arithmetic (aka Unique-Prime-Factorization Theorem) – Any integer greater than 1 can be written as a unique product (up to ordering of the factors) of prime numbers. In order to do that, it’s vital to introduce the idea of a “prime number” in Euclidean domains.

Scott CH Huang COM 5336 Preliminaries Let D be an integral domain. A unit u  D is any divisor of 1. – In the integer ring, the units are ±1. In the Gaussian integer ring, ±1, ± i are units. a, b  D are associates if a=ub for some unit u. – In the integer ring, +3, -3 are associates. In the Gaussian integer ring, 1+ i, 1- i are associates. A factorization of b is an expression of the form b=a 1 a 2 · · · a r. If each of the a i ’s are either a unit or an associate of b, this is a trivial factorization.

Scott CH Huang COM 5336 Irreducible Elements in Integral Domains A element p  D, an integral domain, is called irreducible iff every factorization of p is trivial. We do not consider units to be irreducible. b  D. d|b. If d is not an associate of b, then it is called a proper divisor. Irreducible elements have no proper divisors other than units.

Scott CH Huang COM 5336 Primes in Integral Domains A nonzero, non-unit element p  D, an integral domain, is called prime iff the following property holds. – If p|ab, then either p|a or p|b for a,b  D.

Scott CH Huang COM 5336 Primes vs Irreducible Elements In an integral domain, every prime is irreducible. In a Principal Ideal Domain (PID), every irreducible element is prime. In our textbook, only Euclidean domains are discussed. The author did not distinguish between primes and irreducible elements and regarded them as synonyms.

Scott CH Huang COM 5336 Relative Primality In a PID, two elements a,b are relatively prime iff gcd(a,b)=1. (remember that GCD must exists in a PID) In a Euclidean domain, if p does not divide a and p is prime, then p and a are relatively prime.

Scott CH Huang COM 5336 Some Properties In a Euclidean domain, if p does not divide a, then there exist s,t such that ps+at=1. In a Euclidean domain, if a is a proper divisor of b, then g(a)<g(b).

Scott CH Huang COM 5336 Unique Factorization Theorem 3.6: In a Euclidean domain, if b is not a unit, then b can be factorized as a product of primes: – b=p 1 p 2 · · · p n – If b can be factorized in another way as b=q 1 q 2 · · · q n, then after appropriate renumbering, p i q i are associates for all i. In short, Euclidean domains are Unique Factorization Domains (UFD).

Scott CH Huang COM 5336 Euclidean Domains, PIDs, UFDs Euclidean Domain Integral Domain Field *Principal Ideal Domain* Unique Factorization Domain

Scott CH Huang COM 5336 Example of a non-UFD Consider the integral domain are irreducible.