Finally, the Chinese Remainder Theorem implies now that. and this shows that 341 is a Fermat pseudoprime to base 2. n = ap 1
|
|
- Pierce Goodman
- 7 years ago
- Views:
Transcription
1 28 MA Pseudoprimes In the previous section we learnt that we need to find large prime numbers when we use the RSA cryptosystem. The question then arises how we can find large primes or if there are methods to test if a certain large integer is prime. The numbers N involved are so large that simply testing all primes up to the square root of N is not a practicable option. In this section we shall investigate a probabilistic method. Generally speaking, a pseudoprime is an integer which satisfies some arithmetical statement that is true for prime numbers. For example, an odd composite integer N will be called a Fermat pseudoprime to base a, if gcd(a,n) = 1 and a N 1 1 mod N. Fermat s Little Theorem tells us that each prime number which does not divide a would pass this test. It can be shown that the number of Fermat pseudoprimes to base a is small compared to the number of primes. Therefore, any number that passes such a test could be considered to be probably a prime. Example To see if 91 = 7 13 is a Fermat pseudoprime to base 3, we first observe that mod 7 by Fermat s Little Theorem. Next we calculate mod 13. Hence mod 13 and by the Chinese Remainder Theorem mod 91 and so also mod 91. Thus 91 is a pseudoprime to the base 3. On the other hand, using repeated squaring, we find that mod 91. Therefore, 91 is not a pseudoprime to base 2 and hence is not a prime number. Example The smallest Fermat pseudoprime to base 2 is the number N = 341 = To verify this, we first recall that Fermat s Little Theorem gives us Next we observe that mod 11 hence mod mod 31 hence mod 31. Finally, the Chinese Remainder Theorem implies now that mod 341 and this shows that 341 is a Fermat pseudoprime to base 2. Theorem For each integer a 2 there are infinitely many pseudoprimes to base a. Proof. Let p be an odd prime that does not divide a 2 1 then we claim that n = a2p 1 a 2 1 is a pseudoprime to base a. (The case a = 2 and p = 5 gives the example n = 341.) Because a 1 is a factor of a p 1 and a+1 is a factor of a p +1, the factorisation n = ap 1 a 1 ap +1 a+1
2 Week 5 29 shows that n is composite. We now prove that n is odd and that a n 1 1 mod n. Fermat s little Theorem implies that a 2p a 2 mod p. Thus p divides a 2p a 2. Since p does not divide a 2 1 it follows that p divides n 1 = a2p a 2 a 2 1 = a2p 2 +a 2p 4 + +a 2. The last expression shows that n 1 is the sum of an even number of terms of the same parity, thus n 1 is even. As p is odd, this implies that 2p is a divisor of n 1. Because a 2p 1 = n(a 2 1), we have a 2p 1 mod n and as n 1 is a multiple of 2p we see now that a n 1 1 mod n. We have seen above that 341 is a Fermat pseudoprime to base 2. On the other hand mod 341 and hence 341 is not a pseudoprime to base 3. This might look a hopeful avenue. After finding that a number N satisfies gcd(a,n) = 1 and a N 1 1 mod N for many randomly chosen numbers a we might get convinced that N is very likely a prime number. However, when we look at N = 561 = we find a mod 561 for any a with gcd(a,n) = 1. Such a number is called a Carmichael number. To see that 561 is a Carmichael number, first observe 560 = = = and so Fermat s Little Theorem implies that a mod 3 a mod 11 a mod 17 for each integer that is coprime to 561 = The Chinese Remainder Theorem now gives the result. Unfortunately there are an infinite number of Carmichael numbers. For all of them, the test suggested above using Fermat pseudoprimes would never detect that they are not prime. The first few Carmichael numbers are 561 = , 1105 = , 1729 = , 2465 = and2821 = All these areproducts ofthree distinct odd primes. However, this is not necessarily the case: = is also a Carmichael number. Carmichael numbers can be recognised from the following Korselt criterion. Theorem An integer n is a Carmichael number if and only if n is odd, composite, square-free and p 1 divides n 1 for each prime p dividing n. Proof. Recall that an integer is called square-free if it is not divisible by the square of an integer. In particular, all primes in its prime factorisation occur with exponent one. Suppose now that n is odd, composite, square-free and satisfies the condition above. Let n = p 1 p 2 p 3 p k be its prime factorisation. These primes are all different as n is square-free. As p i 1 divides n 1, we can write n 1 = (p i 1)b i.
3 30 MA6011 If a is coprime to n, then a is not divisible by p i. From Fermat s Little Theorem it follows that a n 1 a (p i 1)b i ( a p i 1 ) b i 1 mod p i. Hence a n 1 1 mod p i for i = 1,2,...,k. The Chinese Remainder Theorem implies now that a n 1 1 mod n. This is possible because all the primes are different. Conversely, suppose n is a Carmichael number. Then n is composite by definition. Wefirstprovethatnisodd. Takea = n 1. Thengcd(a,n) = gcd(n 1,n) = 1 and (n 1) n 1 1 mod n which implies ( 1) n 1 1 mod n from which it follows that n is odd. To prove that n is square-free and that for each prime p i dividing n we also have p i 1 n 1, we write the prime factorisation as n = p α 1 1 p α 2 2 p α 3 3 p α k k. We now need the concept of a primitive root modulo p α which will be discussed in the next section. We will see there that for each odd prime p there exists an integer a for which a ϕ(pα) 1 mod p α but for which a k 1 mod p α for positive integers k < ϕ(p α ). Clearly, we must have gcd(a,p α ) = 1. We will also show that for such a primitive root a the congruence a t 1 mod p α is only possible if t is a multiple of ϕ(p α ) = p α 1 (p 1). To continue with our proof, we let a i be a primitive root modulo p α i i. By the Chinese Remainder Theorem, there exists an integer a such that a a i mod p α i i for all i. Because gcd(a i,p i ) = 1 for all i, we also have gcd(a,n) = 1. As n was assumed to be a Carmichael number, we have a n 1 1 mod n. This implies that a n 1 1 mod p α i i. Because a i is a primitive root modulo p α i i, this is only possible if n 1 is divisible by ϕ(p α i i ) = p α i 1 i (p i 1). In particular, p i 1 n 1. Also, because p i does not divide n 1, this implies that α i = 1 for all i. This means that n is square-free. The existence of Carmichael numbers means that better primality tests are needed. The following theorem provides such an improvement. Theorem Let p be an odd prime and write p 1 = 2 k q where q is odd. Let a be a number not divisible by p. Then one of the following two statements is true. (i) a q 1 mod p. (ii) One of the numbers a q,a 2q,a 4q,...,a 2k 1q is congruent to 1 mod p. Proof. Fermat s Little Theorem tells us that a 2kq a p 1 1 mod p. Consider the numbers a q,a 2q,a 4q,...,a 2k 1q,a 2kq. Thenumbers inthislist aregotbysuccessive squaring. Ifaninteger bsatisfies b 2 1 mod p there are only two possibilities: b 1 mod p or b 1 mod p. This is so because p (b 1)(b+1) and p is prime. Thus, by going backwards through our list we see that, either all numbers are congruent to 1 mod p and we are in case (i), or one of them is congruent to 1 mod p, and this is case (ii).
4 Week 5 31 This result gives rise to the Rabin-Miller Primality Test: Let n be an odd number and write n 1 = 2 k q with q odd. Let a be an integer such that gcd(a,n) = 1. We say n passes the Rabin-Miller test to base a if one of the following conditions is satisfied: (i) a q 1 mod n; (ii) a 2iq 1 mod n for one i in the range 0 i k 1. Anumber a forwhich bothofthese conditions areviolated iscalled a Rabin-Miller witness. Theorem 15.5 means that the existence of a Rabin-Miller witness implies that the number n is composite. Example Let us apply the Rabin-Miller Test to the Carmichael number 561. We have 560 = , that is k = 4 and q = 35 in the notation used above. We find mod mod mod mod 561 Thus 2 is a Rabin-Miller witness which confirms that 561 is composite. If a composite numbers passes the Rabin-Miller Test for a certain number a it is called a strong pseudoprime to base a. For example, with n = 121, n 1 = and taking a = 3, we find mod 121. Thus n = 121 passes the Rabin-Miller Test to base a = 3 and we say 121 is a strong pseudoprime to base 3. However, these calculations mod mod mod mod 121 show that 121 fails the Rabin-Miller Test to base 2, thus 121 is composite. The question then arises as to whether there are numbers which are strong pseudoprimes to all relevant bases, what we might call strong Carmichael numbers. The answer is no. In other words, for every composite number n there is some base a which will prove the compositeness of n. Thus each application of the Rabin-Miller test not producing a composite answer, increases the likelihood that the number we start with is probably prime. It can be shown that for each odd composite number n at least 75% of the numbers from 1 to n 1 are Rabin-Miller witnesses. This means if we randomly choose a between 1 and n 1, a composite number passes the Rabin-Miller test with a probability less than If we carry out this test for 100 randomly chosen a and none of them is a Rabin-Miller witness, the probability that n is composite is less than which is approximately equal to
5 32 MA Primitive Roots We have used primitive roots in the previous section to prove Korselt s criterion. Primitive roots are also useful in calculations and in implementing fast multiplication. Let p be a prime number and suppose gcd(a,p) = 1 then a p 1 1 mod p. Taking p = 61 and successive powers of 2 mod 61 we find in turn 2,4,8,16,32,3,6,12,24,48,35,9,18,36,11,22,44,27,54,47, 33,5,10,20,40,19,38,15,30,60,59,57,53,45,29,58,55,49,37,13, 26,52,43,25,50,39,17,34,7,14,28,56,51,41,21,42,23,46,31,1 We have mod 61 but 2 m 1 mod 61 for any smaller positive value of m. Moreover, the list of powers of 2 contains all 60 non-zero residues modulo 61. Taking a = 3 or a = 11, things are different. The successive powers of these numbers modulo 61 are a a 1 a 2 a 3 a 4 a 5 a 6 a 7 a 8 a 9 a 10 a 11 a 12 a We now see that mod 61 and 3 m 1 mod 61 for any smaller m. Note that We also see that mod 61 and note that Taking a = 7 we find that mod 61 and for no smaller power. To understand what is going on here, we introduce the following definition. When a,m are integers with gcd(a,m) = 1, the order of a modulo m, denoted e m (a), is the smallest positive integer e such that a e 1 mod m. For example, we have shown above that e 61 (2) = 60, e 61 (3) = 10 and e 61 (11) = 4. Theorem Let a and m be coprime integers and suppose that a n 1 mod m for somepositive integer n. Thenthe order of adividesn. In particular e p (a) ϕ(m). Proof. Let d = gcd(e m (a),n). We can find integers r,s such that d = re m (a) sn. Then a d+sn a rem(a) mod p. Because a n 1 a em(a) mod m, this implies a d 1 mod m. As d is the greatest common divisor of e m (a) and n we must have d e m (a). This contradicts the definition of e m (a) unless d = e m (a). But then e m (a) divides n as required. Euler s Formula shows that n = ϕ(m) satisfies the assumptions made, which proves the particular case mentioned. An integer a with maximum order e p (a) = ϕ(m) is called a primitive root modulo m. For example, 2 and 7 are primitive roots modulo 19, but 3 and 11 are not. Not all numbers m have a primitive root (e.g. m = 15 and m = 16), but odd prime powers do. The following theorem, which we do not prove here, contains what we needed in the previous section. Theorem If p is an odd prime and α 1, then there exists a primitive root modulo m = p α. In fact, there are exactly ϕ(p 1) primitive roots modulo p.
6 Week 5 33 This Theorem tells us that we can find lots of primitive roots. Taking p = 13 we should have ϕ(12) = 4 primitive roots. Taking successive powers of 2 modulo 13 we obtain 2,4,8,3,6,12,11,9,5,10,7,1. Thus 2 is a primitive root. The other primitive roots are mod 13, mod 13 and mod 13 as 1,5,7,11 are the integers coprime with 12 and less than 12. Turning the problem round we can ask the question for which primes is a a primitive root. This is not so easy to answer. For a = 2, we can find the following primes work 3,5,11,13,19,29,37,53,59,61. However, no one has yet proved that there are an infinite number of such primes. Given a primitive rootg modulo a prime p then we can write each ofthe numbers 1,2,...,p 1 as a power of g. This leads to the following definition: Let 1 a < p and g a primitive root modulo p. The index of a modulo p for the base g is the unique 1 k p 1 such that g k a mod p. We write I(a) = k. For p = 13 and primitive root 2 we obtain the following table a I(a) The following properties of the index follow immediately from the laws of indices: I(ab) I(a)+I(b) mod p 1 I(a k ) ki(a) mod p 1 Because these resemble the properties of the logarithm function, the index is also known as the discrete logarithm and the notation log g (a) = I(a) is used for the discrete logarithm of a modulo p to the base g. With the aid of a table of indices, multiplication can be carried out easily, because indices turn multiplication into addition. For example, taking the primitive root g = 2 we obtain the following table of indices modulo 19. a I(a) Wecould then calculate asfollows: I(11 15) I(11)+I(15) mod 18. As I(13) = 5 it follows that mod 19. If many multiplications modulo the same large prime p are to be carried out, using a primitive root and a table of indices for this base may result in a speed-up of the calculations. Tables of indices can also be helpful in solving congruences by turning multiplication problems into addition problems, as illustrated in the following two examples. Example In order to solve 13x 11 mod 19, we use indices to find I(13x) I(13)+I(x) I(11) mod 18. Hence 5 + I(x) 12 mod 18. Therefore, I(x) = 7 and from our table we obtain the solution x = 14. Example To solve 3x 15 5 mod 19, we find I(3)+15I(x) I(5) mod 18. Hence I(x) 16 mod 18. This becomes 15I(x) 3 mod 18. Because gcd(15,18) = 3, this congruence has three solutions I(x) 5,11 or 17 mod 18. Looking up our table of indices we obtain the solutions x = 10,13,15.
7 34 MA The ElGamal Cryptosystem Suppose p is a large prime. Given g and a we can try to solve for k the congruence g k a mod p. This is called the discrete logarithm problem. Calculating g k mod p is quite easy using successive squaring. However, finding k from g and a is not so easy and can be used in cryptography. Of course, we have to use a prime p that is so large that setting up a table of indices is not feasible. The ElGamal Cryptosystem is based on the discrete logarithm problem. It works as follows: Suppose we have a large prime p and a primitive root g modulo p. Alice chooses a number k which will be her secret key. She calculates a g k mod p and publishes this number as her public key. Bob wishing to send Alice a message m which is a number less than p. He chooses randomly a number r and then computes e 1 g r mod p and e 2 ma r mod p and sends Alice the pair (e 1,e 2 ). In order to decrypt the message Alice uses her secret key k to compute c e k 1 mod p. Note that c g rk a r mod p. Next she finds u such that uc 1 mod p and then computes v ue 2 mod p. Because v is the original message. ue 2 uma r umc m mod p, Example Let p = and g = 2. Alice s secret key is k = and so her public key is a = mod Bob wishes to send the message He chooses the random number r = and calculates e mod and e mod Thus (e 1,e 2 ) = (101028,179696) is the message Bob sends. Alice decrypts by first calculating e k mod Next she calculates the inverse of mod , for example using inv mod in sage, to obtain She now calculates mod obtaining which was Bob s original message. 18 Solving the Discrete Logarithm Problem Theoretically one can solve the discrete logarithm problem by calculating all powers of the primitive root g modulo p. However, this is unpractical for large p. We will discuss Shanks Baby-step Giant-step algorithm which solves the discrete logarithm problem if the prime p is not too large. Given are a prime p and two integers a,g such that g is a primitive root modulo p and gcd(a,p) = 1. We wish to find an integer x such that g x a mod p.
8 Week 5 35 Instead of calculating all p 1 powers of g modulo p, the algorithm calculates only about 2 p such powers. The main idea is to write x = js i where s = p 1. As we can assume 1 x p 1, we only have to consider 0 i < s and 1 j s. One then produces two lists of powers of g with s elements each and looks for a number they have in common. Here are the details of the algorithm. 1) Calculate s = p 1. 2) (Baby step) Calculate the pairs (ag i mod p,i) for i = 0,1,2,...,s 1 to produce the set S which we then sort by the first element of the ordered pairs. 3) (Giant step) Compute the pairs (g js mod p,js) for j = 1,2,...,s. Sort the so obtained set T by the first element of the ordered pairs. 4) Search for a match between the first elements of the ordered pairs. If ag i = g js then calculate x = js i. This is the discrete logarithm of a to the base g modulo p. Example Let us solve 2 x 7 mod 19, so we have p = 19, g = 2 and a = 7. We first find s = 5, which is the smallest integer having a square that is not smaller than p 1 = 18. Baby step: We calculate 7 2 i mod 19 for i = 0,1,2,3,4 and store it as a pair with second component i. To go from one pair to the next, we just have to multiply the first entry by g = 2. We obtain S = {(7,0),(14,1),(9,2),(18,3),(17,4)} and order this set by first entry to get S = {(7,0),(9,2),(14,1),(17,4),(18,3)}. Giant step: We first calculate g s mod 19 and then raise this to powers j = 1,2,3,4,5. The second component in each pair is js. To go from one pair to the next, we need here to multiply the first entry by 13. We obtain T = {(13,5),(17,10),(12,15),(4,20),(14,25)}} and ordered by first entry T = {(4,20),(12,15),(13,5),(14,25),(17,10)}. We have a match in the number 14 with i = 1 and js = 25. This gives x = js i = 25 1 = 24. We also have a match in the number 17 with i = 4 and js = 10. This gives x = js i = 10 4 = 6. We know that x is determined modulo p 1 = 18 and 24 6 mod 18, hence x = 6 and mod 19. Example To solve 2 x 37 mod 83, we first find s = 10. Baby step: The ten pairs (37 2 i mod 83,i) are S = {(37,0),(74,1),(65,2),(47,3),(11,4),(22,5),(44,6),(5,7),(10,8),(20,9)} = {(5,7),(10,8),(11,4),(20,9),(22,5),(37,0),(44,6),(47,3),(65,2),(74,1)} Giant step: We only need nine pairs (2 10j mod 83,10j), because 9s = 90 > p 1. T = {(28,10),(37,20),(40,30),(41,40),(69,50),(23,60),(63,70),(21,80),(7,90)} = {(7,90),(21,80),(23,60),(28,10),(37,20),(40,30),(41,40),(63,70),(69,50)} Match is foundwith first component 37, so x = 20 0 = 20. Thus mod 83.
9 36 MA6011 We were able to solve the discrete logarithm problem in the two examples above as we were able to do all the calculations. If p is large one can carry out the Baby step and Giant step calculations in parallel until a match occurs. However, there is no guarantee that a match will occur sooner rather than later. There are other approaches to solving the discrete logarithm problem. For example, if p 1 does not have a large prime factor, an algorithm of Silver, Pohlig and Hellman calculates discrete logarithms modulo p efficiently. We will discuss this algorithm later. At this stage we just note that in order to ensure the security of the ElGamal Cryptosystem, it is important to avoid primes p for which p 1 is a product of relatively small primes. The safest primes from this perspective are those primes p for which (p 1)/2 is a prime number too. The first thirteen such primes are: 5,7,11,23,47,59,83,107,167,179,227,263,347. Currently (autumn 2014) the largest prime for which a discrete logarithm (of a random number) was computed is a 180 digit prime. For the computation a method known as the number field sieve was used.
U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009. Notes on Algebra
U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009 Notes on Algebra These notes contain as little theory as possible, and most results are stated without proof. Any introductory
More informationCryptography and Network Security Chapter 8
Cryptography and Network Security Chapter 8 Fifth Edition by William Stallings Lecture slides by Lawrie Brown (with edits by RHB) Chapter 8 Introduction to Number Theory The Devil said to Daniel Webster:
More informationNumber Theory. Proof. Suppose otherwise. Then there would be a finite number n of primes, which we may
Number Theory Divisibility and Primes Definition. If a and b are integers and there is some integer c such that a = b c, then we say that b divides a or is a factor or divisor of a and write b a. Definition
More informationPrimality - Factorization
Primality - Factorization Christophe Ritzenthaler November 9, 2009 1 Prime and factorization Definition 1.1. An integer p > 1 is called a prime number (nombre premier) if it has only 1 and p as divisors.
More informationLecture 13 - Basic Number Theory.
Lecture 13 - Basic Number Theory. Boaz Barak March 22, 2010 Divisibility and primes Unless mentioned otherwise throughout this lecture all numbers are non-negative integers. We say that A divides B, denoted
More informationDiscrete Mathematics, Chapter 4: Number Theory and Cryptography
Discrete Mathematics, Chapter 4: Number Theory and Cryptography Richard Mayr University of Edinburgh, UK Richard Mayr (University of Edinburgh, UK) Discrete Mathematics. Chapter 4 1 / 35 Outline 1 Divisibility
More informationBreaking The Code. Ryan Lowe. Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and
Breaking The Code Ryan Lowe Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and a minor in Applied Physics. As a sophomore, he took an independent study
More informationRSA and Primality Testing
and Primality Testing Joan Boyar, IMADA, University of Southern Denmark Studieretningsprojekter 2010 1 / 81 Correctness of cryptography cryptography Introduction to number theory Correctness of with 2
More informationPublic Key Cryptography: RSA and Lots of Number Theory
Public Key Cryptography: RSA and Lots of Number Theory Public vs. Private-Key Cryptography We have just discussed traditional symmetric cryptography: Uses a single key shared between sender and receiver
More informationMath 319 Problem Set #3 Solution 21 February 2002
Math 319 Problem Set #3 Solution 21 February 2002 1. ( 2.1, problem 15) Find integers a 1, a 2, a 3, a 4, a 5 such that every integer x satisfies at least one of the congruences x a 1 (mod 2), x a 2 (mod
More informationComputing exponents modulo a number: Repeated squaring
Computing exponents modulo a number: Repeated squaring How do you compute (1415) 13 mod 2537 = 2182 using just a calculator? Or how do you check that 2 340 mod 341 = 1? You can do this using the method
More informationThe application of prime numbers to RSA encryption
The application of prime numbers to RSA encryption Prime number definition: Let us begin with the definition of a prime number p The number p, which is a member of the set of natural numbers N, is considered
More information8 Primes and Modular Arithmetic
8 Primes and Modular Arithmetic 8.1 Primes and Factors Over two millennia ago already, people all over the world were considering the properties of numbers. One of the simplest concepts is prime numbers.
More informationPublic Key Cryptography and RSA. Review: Number Theory Basics
Public Key Cryptography and RSA Murat Kantarcioglu Based on Prof. Ninghui Li s Slides Review: Number Theory Basics Definition An integer n > 1 is called a prime number if its positive divisors are 1 and
More informationToday s Topics. Primes & Greatest Common Divisors
Today s Topics Primes & Greatest Common Divisors Prime representations Important theorems about primality Greatest Common Divisors Least Common Multiples Euclid s algorithm Once and for all, what are prime
More informationSome practice problems for midterm 2
Some practice problems for midterm 2 Kiumars Kaveh November 15, 2011 Problem: What is the remainder of 6 2000 when divided by 11? Solution: This is a long-winded way of asking for the value of 6 2000 mod
More informationCHAPTER 5. Number Theory. 1. Integers and Division. Discussion
CHAPTER 5 Number Theory 1. Integers and Division 1.1. Divisibility. Definition 1.1.1. Given two integers a and b we say a divides b if there is an integer c such that b = ac. If a divides b, we write a
More informationCryptography and Network Security Number Theory
Cryptography and Network Security Number Theory Xiang-Yang Li Introduction to Number Theory Divisors b a if a=mb for an integer m b a and c b then c a b g and b h then b (mg+nh) for any int. m,n Prime
More informationThe Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.
The Prime Numbers Before starting our study of primes, we record the following important lemma. Recall that integers a, b are said to be relatively prime if gcd(a, b) = 1. Lemma (Euclid s Lemma). If gcd(a,
More informationPrinciples of Public Key Cryptography. Applications of Public Key Cryptography. Security in Public Key Algorithms
Principles of Public Key Cryptography Chapter : Security Techniques Background Secret Key Cryptography Public Key Cryptography Hash Functions Authentication Chapter : Security on Network and Transport
More informationHomework until Test #2
MATH31: Number Theory Homework until Test # Philipp BRAUN Section 3.1 page 43, 1. It has been conjectured that there are infinitely many primes of the form n. Exhibit five such primes. Solution. Five such
More informationALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION
ALGEBRAIC APPROACH TO COMPOSITE INTEGER FACTORIZATION Aldrin W. Wanambisi 1* School of Pure and Applied Science, Mount Kenya University, P.O box 553-50100, Kakamega, Kenya. Shem Aywa 2 Department of Mathematics,
More informationk, then n = p2α 1 1 pα k
Powers of Integers An integer n is a perfect square if n = m for some integer m. Taking into account the prime factorization, if m = p α 1 1 pα k k, then n = pα 1 1 p α k k. That is, n is a perfect square
More information= 2 + 1 2 2 = 3 4, Now assume that P (k) is true for some fixed k 2. This means that
Instructions. Answer each of the questions on your own paper, and be sure to show your work so that partial credit can be adequately assessed. Credit will not be given for answers (even correct ones) without
More informationOverview of Number Theory Basics. Divisibility
Overview of Number Theory Basics Murat Kantarcioglu Based on Prof. Ninghui Li s Slides Divisibility Definition Given integers a and b, b 0, b divides a (denoted b a) if integer c, s.t. a = cb. b is called
More informationLecture Note 5 PUBLIC-KEY CRYPTOGRAPHY. Sourav Mukhopadhyay
Lecture Note 5 PUBLIC-KEY CRYPTOGRAPHY Sourav Mukhopadhyay Cryptography and Network Security - MA61027 Modern/Public-key cryptography started in 1976 with the publication of the following paper. W. Diffie
More informationOn Generalized Fermat Numbers 3 2n +1
Applied Mathematics & Information Sciences 4(3) (010), 307 313 An International Journal c 010 Dixie W Publishing Corporation, U. S. A. On Generalized Fermat Numbers 3 n +1 Amin Witno Department of Basic
More informationMATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS
MATH 537 (Number Theory) FALL 2016 TENTATIVE SYLLABUS Class Meetings: MW 2:00-3:15 pm in Physics 144, September 7 to December 14 [Thanksgiving break November 23 27; final exam December 21] Instructor:
More informationApplications of Fermat s Little Theorem and Congruences
Applications of Fermat s Little Theorem and Congruences Definition: Let m be a positive integer. Then integers a and b are congruent modulo m, denoted by a b mod m, if m (a b). Example: 3 1 mod 2, 6 4
More informationAn Overview of Integer Factoring Algorithms. The Problem
An Overview of Integer Factoring Algorithms Manindra Agrawal IITK / NUS The Problem Given an integer n, find all its prime divisors as efficiently as possible. 1 A Difficult Problem No efficient algorithm
More informationMATH10040 Chapter 2: Prime and relatively prime numbers
MATH10040 Chapter 2: Prime and relatively prime numbers Recall the basic definition: 1. Prime numbers Definition 1.1. Recall that a positive integer is said to be prime if it has precisely two positive
More informationRevised Version of Chapter 23. We learned long ago how to solve linear congruences. ax c (mod m)
Chapter 23 Squares Modulo p Revised Version of Chapter 23 We learned long ago how to solve linear congruences ax c (mod m) (see Chapter 8). It s now time to take the plunge and move on to quadratic equations.
More informationOverview of Public-Key Cryptography
CS 361S Overview of Public-Key Cryptography Vitaly Shmatikov slide 1 Reading Assignment Kaufman 6.1-6 slide 2 Public-Key Cryptography public key public key? private key Alice Bob Given: Everybody knows
More informationCIS 5371 Cryptography. 8. Encryption --
CIS 5371 Cryptography p y 8. Encryption -- Asymmetric Techniques Textbook encryption algorithms In this chapter, security (confidentiality) is considered in the following sense: All-or-nothing secrecy.
More informationSettling a Question about Pythagorean Triples
Settling a Question about Pythagorean Triples TOM VERHOEFF Department of Mathematics and Computing Science Eindhoven University of Technology P.O. Box 513, 5600 MB Eindhoven, The Netherlands E-Mail address:
More informationThe cyclotomic polynomials
The cyclotomic polynomials Notes by G.J.O. Jameson 1. The definition and general results We use the notation e(t) = e 2πit. Note that e(n) = 1 for integers n, e(s + t) = e(s)e(t) for all s, t. e( 1 ) =
More informationOutline. Computer Science 418. Digital Signatures: Observations. Digital Signatures: Definition. Definition 1 (Digital signature) Digital Signatures
Outline Computer Science 418 Digital Signatures Mike Jacobson Department of Computer Science University of Calgary Week 12 1 Digital Signatures 2 Signatures via Public Key Cryptosystems 3 Provable 4 Mike
More informationChapter. Number Theory and Cryptography. Contents
Chapter 10 Number Theory and Cryptography Contents 10.1 Fundamental Algorithms Involving Numbers..... 453 10.1.1 Some Facts from Elementary Number Theory.... 453 10.1.2 Euclid s GCD Algorithm................
More informationFactoring Algorithms
Factoring Algorithms The p 1 Method and Quadratic Sieve November 17, 2008 () Factoring Algorithms November 17, 2008 1 / 12 Fermat s factoring method Fermat made the observation that if n has two factors
More informationBasic Algorithms In Computer Algebra
Basic Algorithms In Computer Algebra Kaiserslautern SS 2011 Prof. Dr. Wolfram Decker 2. Mai 2011 References Cohen, H.: A Course in Computational Algebraic Number Theory. Springer, 1993. Cox, D.; Little,
More informationEvery Positive Integer is the Sum of Four Squares! (and other exciting problems)
Every Positive Integer is the Sum of Four Squares! (and other exciting problems) Sophex University of Texas at Austin October 18th, 00 Matilde N. Lalín 1. Lagrange s Theorem Theorem 1 Every positive integer
More informationMATH 289 PROBLEM SET 4: NUMBER THEORY
MATH 289 PROBLEM SET 4: NUMBER THEORY 1. The greatest common divisor If d and n are integers, then we say that d divides n if and only if there exists an integer q such that n = qd. Notice that if d divides
More informationMath 453: Elementary Number Theory Definitions and Theorems
Math 453: Elementary Number Theory Definitions and Theorems (Class Notes, Spring 2011 A.J. Hildebrand) Version 5-4-2011 Contents About these notes 3 1 Divisibility and Factorization 4 1.1 Divisibility.......................................
More informationECE 842 Report Implementation of Elliptic Curve Cryptography
ECE 842 Report Implementation of Elliptic Curve Cryptography Wei-Yang Lin December 15, 2004 Abstract The aim of this report is to illustrate the issues in implementing a practical elliptic curve cryptographic
More informationCS 103X: Discrete Structures Homework Assignment 3 Solutions
CS 103X: Discrete Structures Homework Assignment 3 s Exercise 1 (20 points). On well-ordering and induction: (a) Prove the induction principle from the well-ordering principle. (b) Prove the well-ordering
More informationSUM OF TWO SQUARES JAHNAVI BHASKAR
SUM OF TWO SQUARES JAHNAVI BHASKAR Abstract. I will investigate which numbers can be written as the sum of two squares and in how many ways, providing enough basic number theory so even the unacquainted
More information8 Divisibility and prime numbers
8 Divisibility and prime numbers 8.1 Divisibility In this short section we extend the concept of a multiple from the natural numbers to the integers. We also summarize several other terms that express
More informationI. GROUPS: BASIC DEFINITIONS AND EXAMPLES
I GROUPS: BASIC DEFINITIONS AND EXAMPLES Definition 1: An operation on a set G is a function : G G G Definition 2: A group is a set G which is equipped with an operation and a special element e G, called
More informationOn the generation of elliptic curves with 16 rational torsion points by Pythagorean triples
On the generation of elliptic curves with 16 rational torsion points by Pythagorean triples Brian Hilley Boston College MT695 Honors Seminar March 3, 2006 1 Introduction 1.1 Mazur s Theorem Let C be a
More informationFactoring & Primality
Factoring & Primality Lecturer: Dimitris Papadopoulos In this lecture we will discuss the problem of integer factorization and primality testing, two problems that have been the focus of a great amount
More informationCongruent Number Problem
University of Waterloo October 28th, 2015 Number Theory Number theory, can be described as the mathematics of discovering and explaining patterns in numbers. There is nothing in the world which pleases
More information3 0 + 4 + 3 1 + 1 + 3 9 + 6 + 3 0 + 1 + 3 0 + 1 + 3 2 mod 10 = 4 + 3 + 1 + 27 + 6 + 1 + 1 + 6 mod 10 = 49 mod 10 = 9.
SOLUTIONS TO HOMEWORK 2 - MATH 170, SUMMER SESSION I (2012) (1) (Exercise 11, Page 107) Which of the following is the correct UPC for Progresso minestrone soup? Show why the other numbers are not valid
More informationRSA Encryption. Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles October 10, 2003
RSA Encryption Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles October 10, 2003 1 Public Key Cryptography One of the biggest problems in cryptography is the distribution of keys.
More informationNumber Theory Hungarian Style. Cameron Byerley s interpretation of Csaba Szabó s lectures
Number Theory Hungarian Style Cameron Byerley s interpretation of Csaba Szabó s lectures August 20, 2005 2 0.1 introduction Number theory is a beautiful subject and even cooler when you learn about it
More informationFACTORING. n = 2 25 + 1. fall in the arithmetic sequence
FACTORING The claim that factorization is harder than primality testing (or primality certification) is not currently substantiated rigorously. As some sort of backward evidence that factoring is hard,
More informationAdvanced Cryptography
Family Name:... First Name:... Section:... Advanced Cryptography Final Exam July 18 th, 2006 Start at 9:15, End at 12:00 This document consists of 12 pages. Instructions Electronic devices are not allowed.
More informationComputer and Network Security
MIT 6.857 Computer and Networ Security Class Notes 1 File: http://theory.lcs.mit.edu/ rivest/notes/notes.pdf Revision: December 2, 2002 Computer and Networ Security MIT 6.857 Class Notes by Ronald L. Rivest
More informationCarmichael numbers and pseudoprimes
Carmichael numbers and pseudoprimes Notes by G.J.O. Jameson Introduction Recall that Fermat s little theorem says that if p is prime and a is not a multiple of p, then a p 1 1 mod p. This theorem gives
More informationLecture 13: Factoring Integers
CS 880: Quantum Information Processing 0/4/0 Lecture 3: Factoring Integers Instructor: Dieter van Melkebeek Scribe: Mark Wellons In this lecture, we review order finding and use this to develop a method
More informationFaster deterministic integer factorisation
David Harvey (joint work with Edgar Costa, NYU) University of New South Wales 25th October 2011 The obvious mathematical breakthrough would be the development of an easy way to factor large prime numbers
More informationRSA Question 2. Bob thinks that p and q are primes but p isn t. Then, Bob thinks Φ Bob :=(p-1)(q-1) = φ(n). Is this true?
RSA Question 2 Bob thinks that p and q are primes but p isn t. Then, Bob thinks Φ Bob :=(p-1)(q-1) = φ(n). Is this true? Bob chooses a random e (1 < e < Φ Bob ) such that gcd(e,φ Bob )=1. Then, d = e -1
More informationKevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm
MTHSC 412 Section 2.4 Prime Factors and Greatest Common Divisor Greatest Common Divisor Definition Suppose that a, b Z. Then we say that d Z is a greatest common divisor (gcd) of a and b if the following
More informationNumber Theory and Cryptography using PARI/GP
Number Theory and Cryptography using Minh Van Nguyen nguyenminh2@gmail.com 25 November 2008 This article uses to study elementary number theory and the RSA public key cryptosystem. Various commands will
More informationQuotient Rings and Field Extensions
Chapter 5 Quotient Rings and Field Extensions In this chapter we describe a method for producing field extension of a given field. If F is a field, then a field extension is a field K that contains F.
More informationWinter Camp 2011 Polynomials Alexander Remorov. Polynomials. Alexander Remorov alexanderrem@gmail.com
Polynomials Alexander Remorov alexanderrem@gmail.com Warm-up Problem 1: Let f(x) be a quadratic polynomial. Prove that there exist quadratic polynomials g(x) and h(x) such that f(x)f(x + 1) = g(h(x)).
More informationChapter 11 Number Theory
Chapter 11 Number Theory Number theory is one of the oldest branches of mathematics. For many years people who studied number theory delighted in its pure nature because there were few practical applications
More informationFactoring integers, Producing primes and the RSA cryptosystem Harish-Chandra Research Institute
RSA cryptosystem HRI, Allahabad, February, 2005 0 Factoring integers, Producing primes and the RSA cryptosystem Harish-Chandra Research Institute Allahabad (UP), INDIA February, 2005 RSA cryptosystem HRI,
More informationThe Mathematics of the RSA Public-Key Cryptosystem
The Mathematics of the RSA Public-Key Cryptosystem Burt Kaliski RSA Laboratories ABOUT THE AUTHOR: Dr Burt Kaliski is a computer scientist whose involvement with the security industry has been through
More information15 Prime and Composite Numbers
15 Prime and Composite Numbers Divides, Divisors, Factors, Multiples In section 13, we considered the division algorithm: If a and b are whole numbers with b 0 then there exist unique numbers q and r such
More informationPrimes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov
Lee 1 Primes in Sequences By: Jae Young Lee Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov Lee 2 Jae Young Lee MA341 Number Theory PRIMES IN SEQUENCES
More informationElementary Number Theory
Elementary Number Theory A revision by Jim Hefferon, St Michael s College, 2003-Dec of notes by W. Edwin Clark, University of South Florida, 2002-Dec L A TEX source compiled on January 5, 2004 by Jim Hefferon,
More informationElementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.
Elementary Number Theory and Methods of Proof CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 1 Number theory Properties: 2 Properties of integers (whole
More information2 Primality and Compositeness Tests
Int. J. Contemp. Math. Sciences, Vol. 3, 2008, no. 33, 1635-1642 On Factoring R. A. Mollin Department of Mathematics and Statistics University of Calgary, Calgary, Alberta, Canada, T2N 1N4 http://www.math.ucalgary.ca/
More informationSUBGROUPS OF CYCLIC GROUPS. 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by
SUBGROUPS OF CYCLIC GROUPS KEITH CONRAD 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by g = {g k : k Z}. If G = g, then G itself is cyclic, with g as a generator. Examples
More informationJust the Factors, Ma am
1 Introduction Just the Factors, Ma am The purpose of this note is to find and study a method for determining and counting all the positive integer divisors of a positive integer Let N be a given positive
More informationMATH 13150: Freshman Seminar Unit 10
MATH 13150: Freshman Seminar Unit 10 1. Relatively prime numbers and Euler s function In this chapter, we are going to discuss when two numbers are relatively prime, and learn how to count the numbers
More information11 Ideals. 11.1 Revisiting Z
11 Ideals The presentation here is somewhat different than the text. In particular, the sections do not match up. We have seen issues with the failure of unique factorization already, e.g., Z[ 5] = O Q(
More informationCHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY
January 10, 2010 CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY The set of polynomials over a field F is a ring, whose structure shares with the ring of integers many characteristics.
More informationMATH 168: FINAL PROJECT Troels Eriksen. 1 Introduction
MATH 168: FINAL PROJECT Troels Eriksen 1 Introduction In the later years cryptosystems using elliptic curves have shown up and are claimed to be just as secure as a system like RSA with much smaller key
More informationNotes on Factoring. MA 206 Kurt Bryan
The General Approach Notes on Factoring MA 26 Kurt Bryan Suppose I hand you n, a 2 digit integer and tell you that n is composite, with smallest prime factor around 5 digits. Finding a nontrivial factor
More informationNumber Theory: A Mathemythical Approach. Student Resources. Printed Version
Number Theory: A Mathemythical Approach Student Resources Printed Version ii Contents 1 Appendix 1 2 Hints to Problems 3 Chapter 1 Hints......................................... 3 Chapter 2 Hints.........................................
More informationInteger Factorization using the Quadratic Sieve
Integer Factorization using the Quadratic Sieve Chad Seibert* Division of Science and Mathematics University of Minnesota, Morris Morris, MN 56567 seib0060@morris.umn.edu March 16, 2011 Abstract We give
More informationTextbook: Introduction to Cryptography 2nd ed. By J.A. Buchmann Chap 12 Digital Signatures
Textbook: Introduction to Cryptography 2nd ed. By J.A. Buchmann Chap 12 Digital Signatures Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝 陽 科 技 大 學 資 工
More informationNEW DIGITAL SIGNATURE PROTOCOL BASED ON ELLIPTIC CURVES
NEW DIGITAL SIGNATURE PROTOCOL BASED ON ELLIPTIC CURVES Ounasser Abid 1, Jaouad Ettanfouhi 2 and Omar Khadir 3 1,2,3 Laboratory of Mathematics, Cryptography and Mechanics, Department of Mathematics, Fstm,
More informationElementary factoring algorithms
Math 5330 Spring 013 Elementary factoring algorithms The RSA cryptosystem is founded on the idea that, in general, factoring is hard. Where as with Fermat s Little Theorem and some related ideas, one can
More informationHow To Know If A Message Is From A Person Or A Machine
The RSA Algorithm Evgeny Milanov 3 June 2009 In 1978, Ron Rivest, Adi Shamir, and Leonard Adleman introduced a cryptographic algorithm, which was essentially to replace the less secure National Bureau
More informationShor s algorithm and secret sharing
Shor s algorithm and secret sharing Libor Nentvich: QC 23 April 2007: Shor s algorithm and secret sharing 1/41 Goals: 1 To explain why the factoring is important. 2 To describe the oldest and most successful
More informationCryptography and Network Security Department of Computer Science and Engineering Indian Institute of Technology Kharagpur
Cryptography and Network Security Department of Computer Science and Engineering Indian Institute of Technology Kharagpur Module No. # 01 Lecture No. # 05 Classic Cryptosystems (Refer Slide Time: 00:42)
More informationSession 6 Number Theory
Key Terms in This Session Session 6 Number Theory Previously Introduced counting numbers factor factor tree prime number New in This Session composite number greatest common factor least common multiple
More informationThe last three chapters introduced three major proof techniques: direct,
CHAPTER 7 Proving Non-Conditional Statements The last three chapters introduced three major proof techniques: direct, contrapositive and contradiction. These three techniques are used to prove statements
More information3 Some Integer Functions
3 Some Integer Functions A Pair of Fundamental Integer Functions The integer function that is the heart of this section is the modulo function. However, before getting to it, let us look at some very simple
More informationTheorem3.1.1 Thedivisionalgorithm;theorem2.2.1insection2.2 If m, n Z and n is a positive
Chapter 3 Number Theory 159 3.1 Prime Numbers Prime numbers serve as the basic building blocs in the multiplicative structure of the integers. As you may recall, an integer n greater than one is prime
More informationStupid Divisibility Tricks
Stupid Divisibility Tricks 101 Ways to Stupefy Your Friends Appeared in Math Horizons November, 2006 Marc Renault Shippensburg University Mathematics Department 1871 Old Main Road Shippensburg, PA 17013
More informationSecure Network Communication Part II II Public Key Cryptography. Public Key Cryptography
Kommunikationssysteme (KSy) - Block 8 Secure Network Communication Part II II Public Key Cryptography Dr. Andreas Steffen 2000-2001 A. Steffen, 28.03.2001, KSy_RSA.ppt 1 Secure Key Distribution Problem
More informationRSA Attacks. By Abdulaziz Alrasheed and Fatima
RSA Attacks By Abdulaziz Alrasheed and Fatima 1 Introduction Invented by Ron Rivest, Adi Shamir, and Len Adleman [1], the RSA cryptosystem was first revealed in the August 1977 issue of Scientific American.
More informationElements of Applied Cryptography Public key encryption
Network Security Elements of Applied Cryptography Public key encryption Public key cryptosystem RSA and the factorization problem RSA in practice Other asymmetric ciphers Asymmetric Encryption Scheme Let
More informationFinding Carmichael numbers
Finding Carmichael numbers Notes by G.J.O. Jameson Introduction Recall that Fermat s little theorem says that if p is prime and a is not a multiple of p, then a p 1 1 mod p. This theorem gives a possible
More informationPrimality Testing and Factorization Methods
Primality Testing and Factorization Methods Eli Howey May 27, 2014 Abstract Since the days of Euclid and Eratosthenes, mathematicians have taken a keen interest in finding the nontrivial factors of integers,
More informationDigitalCommons@University of Nebraska - Lincoln
University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln MAT Exam Expository Papers Math in the Middle Institute Partnership 7-1-007 Pythagorean Triples Diane Swartzlander University
More information1 Digital Signatures. 1.1 The RSA Function: The eth Power Map on Z n. Crypto: Primitives and Protocols Lecture 6.
1 Digital Signatures A digital signature is a fundamental cryptographic primitive, technologically equivalent to a handwritten signature. In many applications, digital signatures are used as building blocks
More information