Number Theory and Public Key Cryptography Kathryn Sommers
|
|
- Tyler Lee
- 6 years ago
- Views:
Transcription
1 Page!1 Math 409H Fall 2016 Texas A&M University Professor: David Larson Introduction Number Theory and Public Key Cryptography Kathryn Sommers Number theory is a very broad and encompassing subject. At its base, number theory is the study of integers, focusing mainly on the positive integers, also referred to as natural numbers, and the mathematical relationships between these numbers ( What ). Number theory includes many subjects, such as prime numbers and congruences. Many of the concepts and mathematical relationships of number theory are crucial elements to many methods of cryptography. Cryptography is the process of using ciphers or codes, often composed of algorithms, for encryption and decryption. Encryption is using ciphers to make information unreadable while decryption is using ciphers to make information readable again. One method of cryptography that is deeply rooted in number theory is Public Key Cryptography. Public Key Cryptography is a special type of cryptography where the encryption cipher is known to the public, but the cipher needed to decrypt the information is either impossible or nearly impossible to find (Manfredi). There are many types of Public Key Cryptography such as the RSA Public Key Cryptographic System and the Diffie-Hellman Public Key Cryptographic System both methods heavily rely on multiple areas of number theory.
2 Page!2 Number Theory As explained in the introduction, number theory is the study of integers and the relationships between these integers. Specifically, number theory deals with the set of natural numbers 1, 2, 3, 4, 5, 6, 7, 8, which are the positive integers. Since number theory focuses on the relationships between these numbers, this set of numbers is often broken down into smaller sets of numbers based on a common mathematical relationship between the numbers of the new set. We will take a look at types of numbers, congruences, and then primitive roots. Types of Numbers Each natural number can be categorized into one of three types: prime numbers, composite numbers, and unity. A prime number is a positive integer that has only two distinct divisors, namely 1 and the integer itself. Using this definition, one can find the set of prime numbers: 2, 3, 5, 7, 11, 13, 17,. Prime numbers play a key role in multiple areas of study within number theory. A composite number is a positive integer that has more than two distinct divisors. Using this definition, one can find the set of composite numbers: 4, 6, 8, 9, 10, 12, 14,. The last category of number is unity. 1 is the only number that can be categorized as unity since it is neither a prime number nor a composite number. Congruences Congruences refer to the congruential relationship between integers. Specifically, congruences refer to the remainders that result from dividing a number by an integer referred to as a modulus (Hershey). We will take a look at the basic written notation for congruences,
3 Page!3 a b (mod m) (Notation 1) where a is an integer, m is the modulus used to divide the integer, and b is the remainder. Here is an example of how congruences work and how to correctly write the notation. Let a = 11 and m = 2. Next, divide 11 by 2. This results in the remainder, b, equal to 1. Therefore the notation for this example is 11 1 (mod 2). With similar notation, further integers and mathematical processes can be implemented. It is important to note that there can be a different notation for instances when the number being divided is raised to a power. In these cases the rule might be written as an equation so the notation might look like this, b = (a)^d (mod m) (Equation 2) where d is the power to which the integer a has been raised, m is the modulus that will divide (a)^d with b as the remainder. For further examples and explanations of congruences, see the Exercises section. Primitive Roots Primitive roots can be used to greatly increase the ease of solving congruences where a is raised to a large integer d (See Equation 2). In this type of congruence, the primitive root of d would be the smallest factor of d, we will call it r, that if a was raised to the r power, the remainder b would stay the same. This means that b = (a)^d (mod m) and b = (a)^r (mod m) (Equation 3) are equal to each other with the exact same remainder.
4 Page!4 Public Key Cryptography Public key cryptography derives its name from the fact that part of the cipher used to encrypt information is known to the public. As previously stated, even though the encryption key is known to the public, the information is still very hard to decrypt, unless the decryption key is already known, since the decryption key is nearly or completely impossible to find when one only knows the encryption key (Gunnells). Within public key cryptography, there are many methods of encryption, each relying heavily on number theory. The Diffie-Hellman Public Key Cryptographic System This type of public key cryptography relies on the use of multiple parts of number theory including prime numbers, primitive roots, and congruences. This method is designed for two groups to contribute numbers to the public key. Publicly, both groups decide on a prime number, m, and a primitive root, a, of that prime number to use in their key. Privately, each of the groups choose an integer between 1 and m to use as an exponent for a. For Group 1, we will call their chosen integer A and we will call Group 2 s integer B. To encrypt information, Group 1 computes the remainder, x, using x = (a)^a (mod m) (Equation 4) and sends the resulting integer for x to Group 2. Similarly, Group 2 computers their remainder, y, using y = (a)^b (mod m) (Equation 5)
5 Page!5 and sends their result for y to Group 1. In order to decrypt the received integer, each group then takes the new integer that they have received and raises it to their original chosen integer and the reduces the result using (mod m). Hence, Group 1 would want to compute X, their decrypted integer, using X = (y)^a (mod m) (Equation 6) and Group 2 would want to compute Y, their decrypted integer, using Y = (x)^b (mod m). (Equation 7) This completes the encryption and decryption process for the Diffie-Hellman Public Key Cryptographic System. For further explanation and an example, see the Exercises section. The RSA Public Key Cryptographic System RSA Public Key Cryptographic System relies heavily on prime numbers and their unique characteristics. Specifically, RSA Public Key Cryptography utilizes the fact that multiplying together two large prime numbers results in an integer that is often extremely hard to factor (Welsh). For RSA Public Key Encryption, we utilize a version of Equation 2, C = (M)^e (mod n) (Equation 8) where M represents the information to be encrypted, e represents an integer chosen by the sender as part of the public key, n represents the other part of the public key, which is made up of two large prime numbers multiplied together, called p and q, and C represents the encrypted information. A similar equation is used to decrypt, D = (C)^d (mod n) (Equation 9)
6 Page!6 where C is the encrypted information, n is the same public key used to encrypt, d is the private key, and D is the decrypted message. Similarly, another equation can be used to decrypt a message. This alternate equation is as follows, ed 1 (mod (p-1)(q-1)) (Equation 10) where e is again part of the public key, d is the private key, 1 is the remainder, and p and q are the large prime numbers used to find n when encrypting the message. For further explanation and examples, see the Exercises section. Conclusion It is now clear to see that Public Key Cryptography relies heavily on many aspects of number theory. Since number theory is such an expansive subject, the cryptographic systems that can be derived from the concepts and relationships of number theory are great in number. In a world that is constantly looking for new ways to protect information for unwanted readers, public key cryptography and its underlying number theory are an important and growing field.
7 Page!7 Exercises 1. Does 3X 7 (mod 12) have a solution? (Hershey) Proof: By definition of notation for congruences, the modulus is 12, the integer that will be divided is 3X, and 7 is the remainder. Therefore, in order for 7 to be the remainder, X must be an integer that when multiplied by 3 and divided by 12 would leave a remainder of 7. However, since 12 is a composite number and can be factored into (3 x 4), (3X)/12 is equal to (3X)/(3 x 4). Cancelling out the 3 s, we get X/4, rendering it impossible to find an integer X such that the remainder is 7. Therefore, 3X 7 (mod 12) does not have a solution. 2. Does 6X 3 (mod 15) have a solution? (Hershey) Proof: By definition of notation for congruences, the modulus is 15, the integer that will be divided is 6X, and the remainder is 3. Therefore, for 3 to be the remainder, X must be an integer that when multiplied by 6 and then divided by 15 would leave a remainder of 7. Therefore, X=8 would be a solution since (6 x 8)/15 leaves a remainder of 3. Therefore 6X 3 (mod 15) has a solution. 3. What is (47)^1395 (mod 48)? (Hershey) Solution: Using known laws of exponents and primitive roots, (47)^1395 = (47)^1392 x (47)^3. Therefore, (47)^1395 (mod 48) = ((47)^1392 x (47)^3) (mod 48). Solving for the remainder, we find it to be 47. Hence, (47)^ (mod 48).
8 Page!8 4. What is (4)^3207 (mod 1024)? (Hershey) Solution: Using known laws of exponents and primitive roots, (4)^3207 = (4)^3202 x (4)^5. Therefore, (4)^3207 (mod 1024) = ((4)^3202 x (4)^5) (mod 1024). However, it is clear that (4)^5 0 (mod 1024). Therefore, the remainder will be 0 since multiplying anything by 0 is 0. Hence, (4)^ (mod 1024). 5. What is (2)^57 (mod 123)? (Hershey) Solution: Using known laws of exponents and primitive roots, (2)^57 = (2)^14 x (2)^42 x (2)^1. Therefore, (2)^57 (mod 123) = ((2)^14 x (2)^42 x (2)^1) (mod 123). Using the fact that both (2)^14 and (2)^42 are (2)^7 raised to a power, we will first find (2)^7 (mod 123). It is clear that (2)^7 = 5 (mod 123). Hence, (2)^57 (mod 123) = ((((2)^7)^2) x (((2)^7)^6) x ((2)^1)) (mod 123) = (((5)^2) x ((5)^6) x (2)) (mod 123) = (mod 123) = 77 Therefore, the remainder is 77 and (2)^57 77 (mod 123).
9 Page!9 6. Parties A and B decide upon the prime p = 101 and the primitive root a = 3. Suppose that Party A picks A = 70 and Party B picks B = 87. What quantity is developed in common by Parties A and B? (Hershey) Solution: Using the Diffie-Hellman Public Key Cryptographic System, we will first compute what Party A sends using Equation 4. Using the given values, x = (3)^70 (mod 101). Solving, we find x = 17. Next, we will compute what Party B sends using Equation 5. Again using given values, y = (3)^87 (mod 101). Solving, we find y = 8. It is clear that x does not equal y so we will now decrypt the messages. Now, using Equation 6 and the given values to find Party A s decrypted message, we get X = (8)^70 (mod 101) and we find X = 14. Next, using Equation 7 and the given values we find Party B s decrypted message. We find Y = (17)^87 (mod 101). Solving, we find that Y = 14. Clearly, X = Y so the quantity developed in common by Parties A and B is the decrypted messages by both parties, which shows that the use of the Diffie-Hellman Public Key Cryptographic System was successful.
10 Page!10 7. In a public-key cryptosystem using the RSA method, you intercept the cryptogram C = 10 sent to a receiver whose public key is e = 5 and n = 35. Find the integer M which was sent. (Welsh) Solution: Using the RSA Public Key Cryptographic System, we will start by applying the given values to Equation 8. Then, 10 = (M)^5 (mod 35). Therefore, 10 is the remainder when (M)^5 is divided by 35. Solving for M, we find M = 5. Hence, the initial integer that was sent was In an RSA system the public key of a given user is e = 31 and n = What is the private key of the user? (Welsh) Solution: Using the RSA Public Key Cryptographic System, we will want to use Equation 10. However, all the parts needed for equation 10 have not been given to us; specifically, we are missing p and q. Since we were given n = 3599 and we know that p and q are prime numbers due to the fact that RSA Encryption was used we must find a p and q such that pq = Solving, p and q are found to equal 59 and 61. Now we have all the parts needed to use Equation 10. Using Equation 10 we get, 31d 1 (mod (59-1)(61-1)) 31d 1 (mod 3480) Solving for d, we find d = Therefore the private key of the user is This example shows us why the RSA method is usually done with extremely large prime
11 Page!11 numbers, because in this example, I could easily find the primes used through a few attempts of multiplying prime numbers since the n was relatively small. For n much larger than this one, attempting to find n by multiplying prime numbers would take an extremely long time and could even be impossible.
12 Page!12 References [1] Gunnells, Paul E.. The mathematics of cryptology. Department of Mathematics and Statistics, University of Massachusetts, Amherst, Web. 12 October people.math.umass.edu/~gunnells/talks/crypt.pdf [2] Hershey, John E.. Cryptography Demystified. The McGraw-Hill Companies, Inc., Print. [3] Manfredi, Michael. Modern Cryptography and Mathematics. The University of Warwick. Web. 11 October < [4] Sommers, Kathryn. The Mathematics of Cryptography Print. [5] Welsh, Dominic. Codes and Cryptography. Oxford University Press, New York, Print. [6] What is Number Theory? Brown University. Web. 08 December <
Public Key Encryption
Math 210 Jerry L. Kazdan Public Key Encryption The essence of this procedure is that as far as we currently know, it is difficult to factor a number that is the product of two primes each having many,
More informationData security (Cryptography) exercise book
University of Debrecen Faculty of Informatics Data security (Cryptography) exercise book 1 Contents 1 RSA 4 1.1 RSA in general.................................. 4 1.2 RSA background.................................
More informationCryptography Lecture 1: Remainders and Modular Arithmetic Spring 2014 Morgan Schreffler Office: POT 902
Cryptography Lecture 1: Remainders and Modular Arithmetic Spring 2014 Morgan Schreffler Office: POT 902 http://www.ms.uky.edu/~mschreffler Topic Idea: Cryptography Our next topic is something called Cryptography,
More informationEE 418: Network Security and Cryptography
EE 418: Network Security and Cryptography Homework 3 Solutions Assigned: Wednesday, November 2, 2016, Due: Thursday, November 10, 2016 Instructor: Tamara Bonaci Department of Electrical Engineering University
More informationMathematics Explorers Club Fall 2012 Number Theory and Cryptography
Mathematics Explorers Club Fall 2012 Number Theory and Cryptography Chapter 0: Introduction Number Theory enjoys a very long history in short, number theory is a study of integers. Mathematicians over
More informationLecture 32. Handout or Document Camera or Class Exercise. Which of the following is equal to [53] [5] 1 in Z 7? (Do not use a calculator.
Lecture 32 Instructor s Comments: This is a make up lecture. You can choose to cover many extra problems if you wish or head towards cryptography. I will probably include the square and multiply algorithm
More informationPublic Key Cryptography Great Ideas in Theoretical Computer Science Saarland University, Summer 2014
7 Public Key Cryptography Great Ideas in Theoretical Computer Science Saarland University, Summer 2014 Cryptography studies techniques for secure communication in the presence of third parties. A typical
More informationDiffie-Hellman key-exchange protocol
Diffie-Hellman key-exchange protocol This protocol allows two users to choose a common secret key, for DES or AES, say, while communicating over an insecure channel (with eavesdroppers). The two users
More informationThe number theory behind cryptography
The University of Vermont May 16, 2017 What is cryptography? Cryptography is the practice and study of techniques for secure communication in the presence of adverse third parties. What is cryptography?
More informationDiscrete Mathematics & Mathematical Reasoning Multiplicative Inverses and Some Cryptography
Discrete Mathematics & Mathematical Reasoning Multiplicative Inverses and Some Cryptography Colin Stirling Informatics Some slides based on ones by Myrto Arapinis Colin Stirling (Informatics) Discrete
More informationPrimitive Roots. Chapter Orders and Primitive Roots
Chapter 5 Primitive Roots The name primitive root applies to a number a whose powers can be used to represent a reduced residue system modulo n. Primitive roots are therefore generators in that sense,
More informationAssignment 2. Due: Monday Oct. 15, :59pm
Introduction To Discrete Math Due: Monday Oct. 15, 2012. 11:59pm Assignment 2 Instructor: Mohamed Omar Math 6a For all problems on assignments, you are allowed to use the textbook, class notes, and other
More informationLinear Congruences. The solutions to a linear congruence ax b (mod m) are all integers x that satisfy the congruence.
Section 4.4 Linear Congruences Definition: A congruence of the form ax b (mod m), where m is a positive integer, a and b are integers, and x is a variable, is called a linear congruence. The solutions
More informationMath 319 Problem Set #7 Solution 18 April 2002
Math 319 Problem Set #7 Solution 18 April 2002 1. ( 2.4, problem 9) Show that if x 2 1 (mod m) and x / ±1 (mod m) then 1 < (x 1, m) < m and 1 < (x + 1, m) < m. Proof: From x 2 1 (mod m) we get m (x 2 1).
More informationCryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017
Name: Cryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017 INSTRUCTIONS Read Carefully Time: 50 minutes There are 5 problems. Write your name legibly at the top of this page. No calculators
More informationApplication: Public Key Cryptography. Public Key Cryptography
Application: Public Key Cryptography Suppose I wanted people to send me secret messages by snail mail Method 0. I send a padlock, that only I have the key to, to everyone who might want to send me a message.
More informationCHAPTER 2. Modular Arithmetic
CHAPTER 2 Modular Arithmetic In studying the integers we have seen that is useful to write a = qb + r. Often we can solve problems by considering only the remainder, r. This throws away some of the information,
More informationCollection of rules, techniques and theorems for solving polynomial congruences 11 April 2012 at 22:02
Collection of rules, techniques and theorems for solving polynomial congruences 11 April 2012 at 22:02 Public Polynomial congruences come up constantly, even when one is dealing with much deeper problems
More informationSolutions for the Practice Final
Solutions for the Practice Final 1. Ian and Nai play the game of todo, where at each stage one of them flips a coin and then rolls a die. The person who played gets as many points as the number rolled
More informationFermat s little theorem. RSA.
.. Computing large numbers modulo n (a) In modulo arithmetic, you can always reduce a large number to its remainder a a rem n (mod n). (b) Addition, subtraction, and multiplication preserve congruence:
More information1 Introduction to Cryptology
U R a Scientist (CWSF-ESPC 2017) Mathematics and Cryptology Patrick Maidorn and Michael Kozdron (Department of Mathematics & Statistics) 1 Introduction to Cryptology While the phrase making and breaking
More informationMA 111, Topic 2: Cryptography
MA 111, Topic 2: Cryptography Our next topic is something called Cryptography, the mathematics of making and breaking Codes! In the most general sense, Cryptography is the mathematical ideas behind changing
More informationSOLUTIONS TO PROBLEM SET 5. Section 9.1
SOLUTIONS TO PROBLEM SET 5 Section 9.1 Exercise 2. Recall that for (a, m) = 1 we have ord m a divides φ(m). a) We have φ(11) = 10 thus ord 11 3 {1, 2, 5, 10}. We check 3 1 3 (mod 11), 3 2 9 (mod 11), 3
More informationCryptography CS 555. Topic 20: Other Public Key Encryption Schemes. CS555 Topic 20 1
Cryptography CS 555 Topic 20: Other Public Key Encryption Schemes Topic 20 1 Outline and Readings Outline Quadratic Residue Rabin encryption Goldwasser-Micali Commutative encryption Homomorphic encryption
More informationCryptography. 2. decoding is extremely difficult (for protection against eavesdroppers);
18.310 lecture notes September 2, 2013 Cryptography Lecturer: Michel Goemans 1 Public Key Cryptosystems In these notes, we will be concerned with constructing secret codes. A sender would like to encrypt
More informationPublic Key Cryptography
Public Key Cryptography How mathematics allows us to send our most secret messages quite openly without revealing their contents - except only to those who are supposed to read them The mathematical ideas
More informationDUBLIN CITY UNIVERSITY
DUBLIN CITY UNIVERSITY SEMESTER ONE EXAMINATIONS 2013 MODULE: (Title & Code) CA642 Cryptography and Number Theory COURSE: M.Sc. in Security and Forensic Computing YEAR: 1 EXAMINERS: (Including Telephone
More informationDegree project NUMBER OF PERIODIC POINTS OF CONGRUENTIAL MONOMIAL DYNAMICAL SYSTEMS
Degree project NUMBER OF PERIODIC POINTS OF CONGRUENTIAL MONOMIAL DYNAMICAL SYSTEMS Author: MD.HASIRUL ISLAM NAZIR BASHIR Supervisor: MARCUS NILSSON Date: 2012-06-15 Subject: Mathematics and Modeling Level:
More informationNumber Theory and Security in the Digital Age
Number Theory and Security in the Digital Age Lola Thompson Ross Program July 21, 2010 Lola Thompson (Ross Program) Number Theory and Security in the Digital Age July 21, 2010 1 / 37 Introduction I have
More informationGrade 7 & 8 Math Circles October 12, 2011 Modular Arithmetic
1 University of Waterloo Faculty of Mathematics Centre for Education in Mathematics and Computing Grade 7 & 8 Math Circles October 12, 2011 Modular Arithmetic To begin: Before learning about modular arithmetic
More informationMultiples and Divisibility
Multiples and Divisibility A multiple of a number is a product of that number and an integer. Divisibility: A number b is said to be divisible by another number a if b is a multiple of a. 45 is divisible
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 informationThe Chinese Remainder Theorem
The Chinese Remainder Theorem 8-3-2014 The Chinese Remainder Theorem gives solutions to systems of congruences with relatively prime moduli The solution to a system of congruences with relatively prime
More informationCryptography, Number Theory, and RSA
Cryptography, Number Theory, and RSA Joan Boyar, IMADA, University of Southern Denmark November 2015 Outline Symmetric key cryptography Public key cryptography Introduction to number theory RSA Modular
More informationAlgorithmic Number Theory and Cryptography (CS 303)
Algorithmic Number Theory and Cryptography (CS 303) Modular Arithmetic and the RSA Public Key Cryptosystem Jeremy R. Johnson 1 Introduction Objective: To understand what a public key cryptosystem is and
More informationSheet 1: Introduction to prime numbers.
Option A Hand in at least one question from at least three sheets Sheet 1: Introduction to prime numbers. [provisional date for handing in: class 2.] 1. Use Sieve of Eratosthenes to find all prime numbers
More informationDistribution of Primes
Distribution of Primes Definition. For positive real numbers x, let π(x) be the number of prime numbers less than or equal to x. For example, π(1) = 0, π(10) = 4 and π(100) = 25. To use some ciphers, we
More informationMA/CSSE 473 Day 9. The algorithm (modified) N 1
MA/CSSE 473 Day 9 Primality Testing Encryption Intro The algorithm (modified) To test N for primality Pick positive integers a 1, a 2,, a k < N at random For each a i, check for a N 1 i 1 (mod N) Use the
More informationNUMBER THEORY AMIN WITNO
NUMBER THEORY AMIN WITNO.. w w w. w i t n o. c o m Number Theory Outlines and Problem Sets Amin Witno Preface These notes are mere outlines for the course Math 313 given at Philadelphia
More informationSolutions to Problem Set 6 - Fall 2008 Due Tuesday, Oct. 21 at 1:00
18.781 Solutions to Problem Set 6 - Fall 008 Due Tuesday, Oct. 1 at 1:00 1. (Niven.8.7) If p 3 is prime, how many solutions are there to x p 1 1 (mod p)? How many solutions are there to x p 1 (mod p)?
More informationImplementation / Programming: Random Number Generation
Introduction to Modeling and Simulation Implementation / Programming: Random Number Generation OSMAN BALCI Professor Department of Computer Science Virginia Polytechnic Institute and State University (Virginia
More informationDUBLIN CITY UNIVERSITY
DUBLIN CITY UNIVERSITY SEMESTER ONE EXAMINATIONS 2013/2014 MODULE: CA642/A Cryptography and Number Theory PROGRAMME(S): MSSF MCM ECSA ECSAO MSc in Security & Forensic Computing M.Sc. in Computing Study
More informationMultiple : The product of a given whole number and another whole number. For example, some multiples of 3 are 3, 6, 9, and 12.
1.1 Factor (divisor): One of two or more whole numbers that are multiplied to get a product. For example, 1, 2, 3, 4, 6, and 12 are factors of 12 1 x 12 = 12 2 x 6 = 12 3 x 4 = 12 Factors are also called
More informationSolution: Alice tosses a coin and conveys the result to Bob. Problem: Alice can choose any result.
Example - Coin Toss Coin Toss: Alice and Bob want to toss a coin. Easy to do when they are in the same room. How can they toss a coin over the phone? Mutual Commitments Solution: Alice tosses a coin and
More informationSection 1.6 Factors. To successfully complete this section,
Section 1.6 Factors Objectives In this section, you will learn to: To successfully complete this section, you need to understand: Identify factors and factor pairs. The multiplication table (1.1) Identify
More informationFinal exam. Question Points Score. Total: 150
MATH 11200/20 Final exam DECEMBER 9, 2016 ALAN CHANG Please present your solutions clearly and in an organized way Answer the questions in the space provided on the question sheets If you run out of room
More informationSolutions for the Practice Questions
Solutions for the Practice Questions Question 1. Find all solutions to the congruence 13x 12 (mod 35). Also, answer the following questions about the solutions to the above congruence. Are there solutions
More informationWilson s Theorem and Fermat s Theorem
Wilson s Theorem and Fermat s Theorem 7-27-2006 Wilson s theorem says that p is prime if and only if (p 1)! = 1 (mod p). Fermat s theorem says that if p is prime and p a, then a p 1 = 1 (mod p). Wilson
More informationL29&30 - RSA Cryptography
L29&30 - RSA Cryptography CSci/Math 2112 20&22 July 2015 1 / 13 Notation We write a mod n for the integer b such that 0 b < n and a b (mod n). 2 / 13 Calculating Large Powers Modulo n Example 1 What is
More informationIntroduction to Modular Arithmetic
1 Integers modulo n 1.1 Preliminaries Introduction to Modular Arithmetic Definition 1.1.1 (Equivalence relation). Let R be a relation on the set A. Recall that a relation R is a subset of the cartesian
More informationEE 418 Network Security and Cryptography Lecture #3
EE 418 Network Security and Cryptography Lecture #3 October 6, 2016 Classical cryptosystems. Lecture notes prepared by Professor Radha Poovendran. Tamara Bonaci Department of Electrical Engineering University
More informationFoundations of Cryptography
Foundations of Cryptography Ville Junnila viljun@utu.fi Department of Mathematics and Statistics University of Turku 2015 Ville Junnila viljun@utu.fi Lecture 10 1 of 17 The order of a number (mod n) Definition
More informationMAT199: Math Alive Cryptography Part 2
MAT199: Math Alive Cryptography Part 2 1 Public key cryptography: The RSA algorithm After seeing several examples of classical cryptography, where the encoding procedure has to be kept secret (because
More informationPublic-key Cryptography: Theory and Practice
Public-key Cryptography Theory and Practice Department of Computer Science and Engineering Indian Institute of Technology Kharagpur Chapter 5: Cryptographic Algorithms Common Encryption Algorithms RSA
More informationModular Arithmetic. Kieran Cooney - February 18, 2016
Modular Arithmetic Kieran Cooney - kieran.cooney@hotmail.com February 18, 2016 Sums and products in modular arithmetic Almost all of elementary number theory follows from one very basic theorem: Theorem.
More informationIntroduction. and Z r1 Z rn. This lecture aims to provide techniques. CRT during the decription process in RSA is explained.
THE CHINESE REMAINDER THEOREM INTRODUCED IN A GENERAL KONTEXT Introduction The rst Chinese problem in indeterminate analysis is encountered in a book written by the Chinese mathematician Sun Tzi. The problem
More informationp 1 MAX(a,b) + MIN(a,b) = a+b n m means that m is a an integer multiple of n. Greatest Common Divisor: We say that n divides m.
Great Theoretical Ideas In Computer Science Steven Rudich CS - Spring Lecture Feb, Carnegie Mellon University Modular Arithmetic and the RSA Cryptosystem p- p MAX(a,b) + MIN(a,b) = a+b n m means that m
More informationQuantitative Aptitude Preparation Numbers. Prepared by: MS. RUPAL PATEL Assistant Professor CMPICA, CHARUSAT
Quantitative Aptitude Preparation Numbers Prepared by: MS. RUPAL PATEL Assistant Professor CMPICA, CHARUSAT Numbers Numbers In Hindu Arabic system, we have total 10 digits. Namely, 0, 1, 2, 3, 4, 5, 6,
More informationMath 1111 Math Exam Study Guide
Math 1111 Math Exam Study Guide The math exam will cover the mathematical concepts and techniques we ve explored this semester. The exam will not involve any codebreaking, although some questions on the
More informationMATH 135 Algebra, Solutions to Assignment 7
MATH 135 Algebra, Solutions to Assignment 7 1: (a Find the smallest non-negative integer x such that x 41 (mod 9. Solution: The smallest such x is the remainder when 41 is divided by 9. We have 41 = 9
More informationAn interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g.,
Binary exponentiation An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g., What are the last two digits of the number 2 284? In the absence
More informationUniversity of British Columbia. Math 312, Midterm, 6th of June 2017
University of British Columbia Math 312, Midterm, 6th of June 2017 Name (please be legible) Signature Student number Duration: 90 minutes INSTRUCTIONS This test has 7 problems for a total of 100 points.
More informationMath 1111 Math Exam Study Guide
Math 1111 Math Exam Study Guide The math exam will cover the mathematical concepts and techniques we ve explored this semester. The exam will not involve any codebreaking, although some questions on the
More informationElGamal Public-Key Encryption and Signature
ElGamal Public-Key Encryption and Signature Çetin Kaya Koç koc@cs.ucsb.edu Çetin Kaya Koç http://koclab.org Winter 2017 1 / 10 ElGamal Cryptosystem and Signature Scheme Taher ElGamal, originally from Egypt,
More informationMAT 302: ALGEBRAIC CRYPTOGRAPHY. Department of Mathematical and Computational Sciences University of Toronto, Mississauga.
MAT 302: ALGEBRAIC CRYPTOGRAPHY Department of Mathematical and Computational Sciences University of Toronto, Mississauga February 27, 2013 Mid-term Exam INSTRUCTIONS: The duration of the exam is 100 minutes.
More informationNumber Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory
- Divisibility - Congruences June 23, 2014 Primes - Divisibility - Congruences Definition A positive integer p is prime if p 2 and its only positive factors are itself and 1. Otherwise, if p 2, then p
More informationIntroduction to Cryptography CS 355
Introduction to Cryptography CS 355 Lecture 25 Mental Poker And Semantic Security CS 355 Fall 2005 / Lecture 25 1 Lecture Outline Review of number theory The Mental Poker Protocol Semantic security Semantic
More informationClass 8: Factors and Multiples (Lecture Notes)
Class 8: Factors and Multiples (Lecture Notes) If a number a divides another number b exactly, then we say that a is a factor of b and b is a multiple of a. Factor: A factor of a number is an exact divisor
More informationModular arithmetic Math 2320
Modular arithmetic Math 220 Fix an integer m 2, called the modulus. For any other integer a, we can use the division algorithm to write a = qm + r. The reduction of a modulo m is the remainder r resulting
More informationCMath 55 PROFESSOR KENNETH A. RIBET. Final Examination May 11, :30AM 2:30PM, 100 Lewis Hall
CMath 55 PROFESSOR KENNETH A. RIBET Final Examination May 11, 015 11:30AM :30PM, 100 Lewis Hall Please put away all books, calculators, cell phones and other devices. You may consult a single two-sided
More information1.6 Congruence Modulo m
1.6 Congruence Modulo m 47 5. Let a, b 2 N and p be a prime. Prove for all natural numbers n 1, if p n (ab) and p - a, then p n b. 6. In the proof of Theorem 1.5.6 it was stated that if n is a prime number
More informationExample Enemy agents are trying to invent a new type of cipher. They decide on the following encryption scheme: Plaintext converts to Ciphertext
Cryptography Codes Lecture 4: The Times Cipher, Factors, Zero Divisors, and Multiplicative Inverses Spring 2014 Morgan Schreffler Office: POT 902 http://www.ms.uky.edu/~mschreffler New Cipher Times Enemy
More informationON THE EQUATION a x x (mod b) Jam Germain
ON THE EQUATION a (mod b) Jam Germain Abstract. Recently Jimenez and Yebra [3] constructed, for any given a and b, solutions to the title equation. Moreover they showed how these can be lifted to higher
More informationNumber Theory/Cryptography (part 1 of CSC 282)
Number Theory/Cryptography (part 1 of CSC 282) http://www.cs.rochester.edu/~stefanko/teaching/11cs282 1 Schedule The homework is due Sep 8 Graded homework will be available at noon Sep 9, noon. EXAM #1
More informationMATH LEVEL 2 LESSON PLAN 3 FACTORING Copyright Vinay Agarwala, Checked: 1/19/18
MATH LEVEL 2 LESSON PLAN 3 FACTORING 2018 Copyright Vinay Agarwala, Checked: 1/19/18 Section 1: Exact Division & Factors 1. In exact division there is no remainder. Both Divisor and quotient are factors
More informationMath 255 Spring 2017 Solving x 2 a (mod n)
Math 255 Spring 2017 Solving x 2 a (mod n) Contents 1 Lifting 1 2 Solving x 2 a (mod p k ) for p odd 3 3 Solving x 2 a (mod 2 k ) 5 4 Solving x 2 a (mod n) for general n 9 1 Lifting Definition 1.1. Let
More informationThe Chinese Remainder Theorem
The Chinese Remainder Theorem Theorem. Let m and n be two relatively prime positive integers. Let a and b be any two integers. Then the two congruences x a (mod m) x b (mod n) have common solutions. Any
More informationLecture 8. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. 3. Euclid s GCD Algorithm
Lecture 8. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. 3. Euclid s GCD Algorithm Clock Math If it is 1:00 now. What time is it in 5 hours?
More informationCMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012
CMPSCI 250: Introduction to Computation Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012 The Chinese Remainder Theorem Infinitely Many Primes Reviewing Inverses and the
More informationIn this paper, we discuss strings of 3 s and 7 s, hereby dubbed dreibens. As a first step
Dreibens modulo A New Formula for Primality Testing Arthur Diep-Nguyen In this paper, we discuss strings of s and s, hereby dubbed dreibens. As a first step towards determining whether the set of prime
More informationThe Chinese Remainder Theorem
The Chinese Remainder Theorem Theorem. Let n 1,..., n r be r positive integers relatively prime in pairs. (That is, gcd(n i, n j ) = 1 whenever 1 i < j r.) Let a 1,..., a r be any r integers. Then the
More informationFall. Spring. Possible Summer Topics
Fall Paper folding: equilateral triangle (parallel postulate and proofs of theorems that result, similar triangles), Trisect a square paper Divisibility by 2-11 and by combinations of relatively prime
More informationTeacher s Notes. Problem of the Month: Courtney s Collection
Teacher s Notes Problem of the Month: Courtney s Collection Overview: In the Problem of the Month, Courtney s Collection, students use number theory, number operations, organized lists and counting methods
More informationNumber Theory. Konkreetne Matemaatika
ITT9131 Number Theory Konkreetne Matemaatika Chapter Four Divisibility Primes Prime examples Factorial Factors Relative primality `MOD': the Congruence Relation Independent Residues Additional Applications
More informationExample Enemy agents are trying to invent a new type of cipher. They decide on the following encryption scheme: Plaintext converts to Ciphertext
Cryptography Codes Lecture 3: The Times Cipher, Factors, Zero Divisors, and Multiplicative Inverses Spring 2015 Morgan Schreffler Office: POT 902 http://www.ms.uky.edu/~mschreffler New Cipher Times Enemy
More informationMODULAR ARITHMETIC II: CONGRUENCES AND DIVISION
MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION MATH CIRCLE (BEGINNERS) 02/05/2012 Modular arithmetic. Two whole numbers a and b are said to be congruent modulo n, often written a b (mod n), if they give
More informationDrill Time: Remainders from Long Division
Drill Time: Remainders from Long Division Example (Drill Time: Remainders from Long Division) Get some practice finding remainders. Use your calculator (if you want) then check your answers with a neighbor.
More informationTo be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we. The first (and most delicate) case concerns 2
Quadratic Reciprocity To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we need to be able to evaluate q for any prime q. The first (and most delicate) case
More informationSuccessful Implementation of the Hill and Magic Square Ciphers: A New Direction
Successful Implementation of the Hill and Magic Square Ciphers: A New Direction ISSN:319-7900 Tomba I. : Dept. of Mathematics, Manipur University, Imphal, Manipur (INDIA) Shibiraj N, : Research Scholar
More informationRelated Ideas: DHM Key Mechanics
Related Ideas: DHM Key Mechanics Example (DHM Key Mechanics) Two parties, Alice and Bob, calculate a key that a third person Carl will never know, even if Carl intercepts all communication between Alice
More informationChapter 3 LEAST SIGNIFICANT BIT STEGANOGRAPHY TECHNIQUE FOR HIDING COMPRESSED ENCRYPTED DATA USING VARIOUS FILE FORMATS
44 Chapter 3 LEAST SIGNIFICANT BIT STEGANOGRAPHY TECHNIQUE FOR HIDING COMPRESSED ENCRYPTED DATA USING VARIOUS FILE FORMATS 45 CHAPTER 3 Chapter 3: LEAST SIGNIFICANT BIT STEGANOGRAPHY TECHNIQUE FOR HIDING
More informationUNIVERSITY OF MANITOBA DATE: December 7, FINAL EXAMINATION TITLE PAGE TIME: 3 hours EXAMINER: M. Davidson
TITLE PAGE FAMILY NAME: (Print in ink) GIVEN NAME(S): (Print in ink) STUDENT NUMBER: SEAT NUMBER: SIGNATURE: (in ink) (I understand that cheating is a serious offense) INSTRUCTIONS TO STUDENTS: This is
More informationTMA4155 Cryptography, Intro
Trondheim, December 12, 2006. TMA4155 Cryptography, Intro 2006-12-02 Problem 1 a. We need to find an inverse of 403 modulo (19 1)(31 1) = 540: 540 = 1 403 + 137 = 17 403 50 540 + 50 403 = 67 403 50 540
More informationJournal of Discrete Mathematical Sciences & Cryptography Vol. ( ), No., pp. 1 10
Dynamic extended DES Yi-Shiung Yeh 1, I-Te Chen 2, Ting-Yu Huang 1, Chan-Chi Wang 1, 1 Department of Computer Science and Information Engineering National Chiao-Tung University 1001 Ta-Hsueh Road, HsinChu
More information6. Find an inverse of a modulo m for each of these pairs of relatively prime integers using the method
Exercises Exercises 1. Show that 15 is an inverse of 7 modulo 26. 2. Show that 937 is an inverse of 13 modulo 2436. 3. By inspection (as discussed prior to Example 1), find an inverse of 4 modulo 9. 4.
More information#27: Number Theory, Part II: Modular Arithmetic and Cryptography May 1, 2009
#27: Number Theory, Part II: Modular Arithmetic and Cryptography May 1, 2009 This week you will study modular arithmetic arithmetic where we make the natural numbers wrap around by only considering their
More informationThe congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation.
Congruences A congruence is a statement about divisibility. It is a notation that simplifies reasoning about divisibility. It suggests proofs by its analogy to equations. Congruences are familiar to us
More informationCalculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.
Midterm #2: practice MATH 311 Intro to Number Theory midterm: Thursday, Oct 20 Please print your name: Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating
More informationMath 412: Number Theory Lecture 6: congruence system and
Math 412: Number Theory Lecture 6: congruence system and classes Gexin Yu gyu@wm.edu College of William and Mary Chinese Remainder Theorem Chinese Remainder Theorem: let m 1, m 2,..., m k be pairwise coprimes.
More informationMATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005
MATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005 Deartment of Mathematical and Statistical Sciences University of Alberta Question 1. Find integers
More information