Number-Theoretic Algorithms

Slides:



Advertisements
Similar presentations
Division & Divisibility. a divides b if a is not zero there is a m such that a.m = b a is a factor of b b is a multiple of a a|b Division.
Advertisements

Number Theory Algorithms and Cryptography Algorithms Prepared by John Reif, Ph.D. Analysis of Algorithms.
1 Lect. 12: Number Theory. Contents Prime and Relative Prime Numbers Modular Arithmetic Fermat’s and Euler’s Theorem Extended Euclid’s Algorithm.
Section 4.1: Primes, Factorization, and the Euclidean Algorithm Practice HW (not to hand in) From Barr Text p. 160 # 6, 7, 8, 11, 12, 13.
Primality Testing Patrick Lee 12 July 2003 (updated on 13 July 2003)
1 Section 2.4 The Integers and Division. 2 Number Theory Branch of mathematics that includes (among other things): –divisibility –greatest common divisor.
22C:19 Discrete Structures Integers and Modular Arithmetic
22C:19 Discrete Math Integers and Modular Arithmetic Fall 2010 Sukumar Ghosh.
CSE115/ENGR160 Discrete Mathematics 03/13/12 Ming-Hsuan Yang UC Merced 1.
Number Theory(L5) Number Theory Number Theory(L5).
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2009 Tuesday, 28 April Number-Theoretic Algorithms Chapter 31.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2002 Tuesday, 26 November Number-Theoretic Algorithms Chapter 31.
Chapter 4 – Finite Fields Introduction  will now introduce finite fields  of increasing importance in cryptography AES, Elliptic Curve, IDEA, Public.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2001 Lecture 7 Tuesday, 11/6/01 Number-Theoretic Algorithms Chapter.
CSE 311 Foundations of Computing I Lecture 12 Primes, GCD, Modular Inverse Spring
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
BY MISS FARAH ADIBAH ADNAN IMK
Integers Number Theory = Properties of Integers
9/2/2015Discrete Structures1 Let us get into… Number Theory.
Introduction to Modular Arithmetic and Public Key Cryptography.
Module :MA3036NI Cryptography and Number Theory Lecture Week 7
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.
Cryptography and Network Security Introduction to Finite Fields.
Copyright © Curt Hill Divisibility and Modular Arithmetic A Topic in Number Theory.
Chapter 4 – Finite Fields
YSLInformation Security -- Public-Key Cryptography1 Prime and Relatively Prime Numbers Divisors: We say that b  0 divides a if a = mb for some m, where.
Chinese Remainder Theorem. How many people What is x? Divided into 4s: remainder 3 x ≡ 3 (mod 4) Divided into 5s: remainder 4 x ≡ 4 (mod 5) Chinese Remainder.
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.
Notation Intro. Number Theory Online Cryptography Course Dan Boneh
Internet Engineering Czesław Smutnicki Discrete Mathematics – Numbers Theory.
The Euclidean Algorithm That’s right, it’s real..
Ref: Pfleeger96, Ch.31 Properties of Arithmetic Reference: Pfleeger, Charles P., Security in Computing, 2nd Edition, Prentice Hall, 1996.
Discrete Mathematics
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 2 The Fundamentals: Algorithms,
The Fundamentals: Algorithms, Integers, and Matrices CSC-2259 Discrete Structures Konstantin Busch - LSU1.
Ch04-Number Theory and Cryptography 1. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic.
Number Theory Lecture 1 Text book: Discrete Mathematics and its Applications, 7 th Edition.
Agenda Review:  Relation Properties Lecture Content:  Divisor and Prime Number  Binary, Octal, Hexadecimal Review & Exercise.
Number Theory. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic principles of divisibility,
CMPS 2433 – Coding Theory Chapter 3
B504/I538: Introduction to Cryptography
CSE15 Discrete Mathematics 03/15/17
CS 2210:0001Discrete Structures Modular Arithmetic and Cryptography
COT 3100, Spring 2001 Applications of Discrete Structures
Integers and Division Section 3.4.
Number-Theoretic Algorithms (UNIT-4)
CMSC Discrete Structures
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
Applied Discrete Mathematics Week 3: Algorithms
Applied Discrete Mathematics Week 4: Number Theory
Number Theory (Chapter 7)
Prime and Relatively Prime Numbers
Discrete Math for CS CMPSC 360 LECTURE 12 Last time: Stable matching
Week #5 – 23/25/27 September 2002 Prof. Marie desJardins
刘振 上海交通大学 计算机科学与工程系 电信群楼3-509
Tuesday, 27 April Number-Theoretic Algorithms Chapter 31
The Integers & Division
Modular Arithmetic and Elliptic Curves
CMSC 203, Section 0401 Discrete Structures Fall 2004 Matt Gaston
Copyright © Zeph Grunschlag,
Miniconference on the Mathematics of Computation
Applied Discrete Mathematics Week 10: Introduction to Counting
Factor A factor of an integer is any integer that divides the given integer with no remainder.
Number Theory.
Cryptography Lecture 16.
Discrete Mathematics Chapter 4 Number Theory. Discrete Mathematics Chapter 4 Number Theory.
Presentation transcript:

Number-Theoretic Algorithms Modern cryptography is based on number theory and, in particular, the inability to factor the product of large prime numbers The major topics include modular arithmetic Euclid’s algorithm to solve a x  b (mod n) the Chinese remainder theorem efficient computing of ab mod n the RSA public key cryptosystem finding large prime numbers efficiently factoring integers

Operations on large integers Basic concepts We measure the size in the number of bits for integer a1a2…ak a polynomial time algorithm is polynomial in lg a1, lg a2, … , lg ak we count the number of bit operations, such as multiplication of two b-bit integers takes O(b2) time Set notation Z is the set of integers { …, -2, -1, 0, 1, 2, …} N is the set of natural numbers {0, 1, 2, 3, … }

Basic notation and concepts d | a means that “d divides a” or “a is a multiple of d” 1 and a are “trivial” divisors; a number is prime if its only divisors are the trivial divisors; a non-prime number is composite q = a/n is the quotient r = a mod n is the remainder

Modular Notation Notation Equivalence class modulo n Common divisors a  b (mod n) means (a mod n) = (b mod n) a  b (mod n) iff n | (b - a) Equivalence class modulo n [a]n = {a + k n : k  Z} Z n = { [a] n : 0 <= a <= n-1 } Common divisors d | a and d | b implies d | (ax + by) for integers x,y a | b and b | a implies a =  b gcd(a,b) where a and b are not both zero is the largest of the common divisors of a and b

Greatest Common Divisors

Relatively Prime & Unique Factorization Two integers are relatively prime if their only common divisor is one Unique Factorization