Chris MacLellan, and Daniel W. Peterson. Statistical Primality Testing Miller-Rabin and pseudoprimes Frobenius test and pseudoprimes Composites which.

Slides:



Advertisements
Similar presentations
Prime Numbers and Prime Factorization
Advertisements

Cryptography and Network Security
Chapter 8 – Introduction to Number Theory. Prime Numbers prime numbers only have divisors of 1 and self –they cannot be written as a product of other.
Computability and Complexity
Special Names for Numbers
Fermat’s Little Theorem (2/24) Theorem (flt). If p is prime and GCD(a, p) = 1, then a p – 1  1 (mod p). Again, this says that in a mod p congruence, we.
Types of Number
FACTORS.
1. What number does the following array represent?
COM 5336 Cryptography Lecture 7a Primality Testing
Announcements: 1. Pass in Homework 5 now. 2. Term project groups and topics due by Friday 1.Can use discussion forum to find teammates 3. HW6 posted, due.
1 Chapter 7– Introduction to Number Theory Instructor: 孫宏民 Room: EECS 6402, Tel: , Fax :
Factoring 1 Factoring Factoring 2 Factoring  Security of RSA algorithm depends on (presumed) difficulty of factoring o Given N = pq, find p or q and.
Unit 171 Algorithms and Problem Solving - II Algorithm Efficiency Primality Testing Improved Primality Testing Sieve of Eratosthenes Primality Testing.
Chapter 4 Number Theory. Terms Factors Divides, divisible, divisibility Multiple.
Announcements: 1. Pass in worksheet on using RSA now. 2. DES graded soon 3. Short “pop” quiz on Ch 3 (Thursday at earliest) 4. Term project groups and.
Chapter 8 – Introduction to Number Theory Prime Numbers  prime numbers only have divisors of 1 and self they cannot be written as a product of other numbers.
Chapter 8 – Introduction to Number Theory Prime Numbers
Chapter 8 – Introduction to Number Theory Prime Numbers  prime numbers only have divisors of 1 and self they cannot be written as a product of other numbers.
Even Numbers – Any number that can be divided by 2
The RSA Algorithm Based on the idea that factorization of integers into their prime factors is hard. ★ n=p . q, where p and q are distinct primes Proposed.
CSE 321 Discrete Structures Winter 2008 Lecture 10 Number Theory: Primality.
Prime Factorization (Factor Trees)

Generating RSA Primes Jim Townsend CSE633 Final Results Fall 2010.
Information Security and Management 4. Finite Fields 8
Prime Numbers and Prime Factorization. Factors Factors are the numbers you multiply together to get a product. For example, the product 24 has several.
Prabhas Chongstitvatana 1 Primality Testing Is a given odd integer prime or composite ? No known algorithm can solve this problem with certainty in a reasonable.
CPSC 490 Number Theory Primes, Factoring and Euler Phi-function Mar.31 st, 2006 Sam Chan.
PRE-ALGEBRA. Lesson 4-1 Warm-Up PRE-ALGEBRA Rules: The following divisibility rules are true for all numbers. Example: Are 282, 468, 215, and 1,017 divisible.
MA/CSSE 473 Day 08 Randomized Primality Testing Carmichael Numbers Miller-Rabin test.
Analyzing and Testing justified Prime Numbers
Sieve of Eratosthenes. The Sieve of Eratosthenes is a method that.
Prime Numbers and Prime Factorization. Factors Factors are the numbers you multiply together to get a product. For example, the product 24 has several.
Math Module 3 Multi-Digit Multiplication and Division
9/22/15UB Fall 2015 CSE565: S. Upadhyaya Lec 7.1 CSE565: Computer Security Lecture 7 Number Theory Concepts Shambhu Upadhyaya Computer Science & Eng. University.
Numerical Relationships
5 Minute Check Determine the missing digit to make the statement true. Complete on the back of your homework. 1. 6, ?59 is divisible by 3.   2.
6.3 Primality Testing. p2. (1) Prime numbers 1. How to generate large prime numbers? (1) Generate as candidate a random odd number n of appropriate size.
MTH 231 Section 4.1 Divisibility of Natural Numbers.
Primality Testing. Introduction The primality test provides the probability of whether or not a large number is prime. Several theorems including Fermat’s.
Implementation of Public Key Encryption Algorithms
MA/CSSE 473 Day 10 Primality Testing. MA/CSSE 473 Day 10 In-class exam: Friday, Sept 28 –You may bring a two-sided 8.5x11 inch piece of paper containing.
MA/CSSE 473 Day 09 Modular Division Revisited Fermat's Little Theorem Primality Testing.
Karl Heimbuck Dr. Siguna Mueller Department of Mathematics EPSCoR/Honors Program Using Lucas Sequences in Primality Testing.
MA/CSSE 473 Day 9 Primality Testing Encryption Intro.
RSA Encryption Greg Gronn Laura Trimmer. RSA Encryption  Requires two 30 digit prime numbers to create an encoding/decryption key.  Goal: analyze different.
MA/CSSE 473 Day 08 Randomized Primality Testing Carmichael Numbers
CSE565: Computer Security Lecture 7 Number Theory Concepts
PRIME NUMBERS PRESENTED BY : NANDAN GOEL.
Factors and Multiples.
Multiples and Factors Lesson 4.1.
Handbook of Applied Cryptography - CH4, from 4.1~4.3
DTTF/NB479: Dszquphsbqiz Day 22
Randomness and Computation: Some Prime Examples
Textbook: Introduction to Cryptography 2nd ed. By J.A. Buchmann
Introduction to Number Theory
Multiples and Factors Lesson 4.1.
Multiples and Factors Dr. Y. Calhoun.
MODIFIED SIEVE OF ERATOSTHENES
Cryptography and Network Security
RSA Cryptosystem Bits PCs Memory MB ,000 4GB 1,020
Parallel Quadratic Sieve
AP Java Warm-up Boolean Array.
Multiples and Factors Chapter 5.
Multiples and Factors Lesson 4.1.
Multiples and Factors Lesson 4.1.
Mathematical Background for Cryptography
Multiples and Factors Lesson 2.2.
Finding the LCM and the GCF Using Prime Factorization
Presentation transcript:

Chris MacLellan, and Daniel W. Peterson

Statistical Primality Testing Miller-Rabin and pseudoprimes Frobenius test and pseudoprimes Composites which fool both tests

Strong Candidates p-1|n-1 and p+1|n+1 for all p|n Must have at least 5 prime factors Prefer composites with odd numbers of factors.

Construction by Primes Implications of q|p-1 q^2|p-1 is harder to “regulate” Attempt to enforce restrictions on p

Regulating 2 2|p-1 and 2|p+1 Either 4|n-1 or 4|n+1 Restrict to 3 mod 8 or 5 mod 8 Check that congruences work 3*3 ≡ 5*5 ≡ 1 mod 8 3*3*3 = 27 ≡ 3 mod 8

Regulating 3 Either 3|p-1 or 3|p+1 We don’t want both

Sieve Conditions Sieve through primes Include only primes p ≡ 3 mod 8 Include only primes p ≡ 2 mod 3 Include only primes where p-1 and p+1 are square-free (excepting 2) ‏

Sieving Methods Sieve of Eratosthenes Jumping Sieve

Sieve of Eratosthenes The way that we sieved numbers was originally like the sieve of Eratosthenes. We would fill an array full of numbers and start moving through and crossing numbers off. When you use this method you run into memory problems, and it's slow.

Jumping Sieve This method is significantly more effective for this application. We use the probabilistic nextprime() function to give us the next prime number. We analyze that number and check it against the sieve conditions. If it passes we write it to file, if it doesn't we use the nextprime() function to get the next prime (and repeat test, etc...).

Psuedo-code n = 2; loop infinitely{ if testconditions(n) = true write n to file n = nextprime(n); }

Test the results Once we let the test run for an adequate amount of time we'd stop it and load the numbers into a hill climbing program. This program then takes random subsets of these numbers, multiplies them together, and test how likely they are to fool the Miller-Rabin and Frobenius primality tests.

Future Keep finding ways to tweak the test conditions Find ways to make the sieve run faster Run the sieve for extended periods of time Continue testing the sieved numbers