Primzahltests und das Faktorisierungsproblem
|
|
- Angelica Jacobs
- 6 years ago
- Views:
Transcription
1 Primzahltests und das Faktorisierungsproblem Ausgewählte Folien zur Vorlesung Wintersemester 2007/2008 Dozent: Prof. Dr. J. Rothe Heinrich-Heine-Universität Düsseldorf rothe/primes 1
2 Literatur Jörg Rothe:,,Complexity Theory and Cryptology. An Introduction to Cryptocomplexity, Springer-Verlag, 2005 Martin Dietzfelbinger:,,Primality Testing in Polynomial Time, Springer-Verlag, 2004 Douglas R. Stinson:,,Cryptography: Theory and Practice, Chapman & Hall/CRC, 2. Auflage, 2002 Johannes Buchmann:,,Einführung in die Kryptographie, Springer-Verlag, 2. Auflage,
3 Erweiterter Algorithmus von Euklid berechnet die Vielfachsummendarstellung zweier Zahlen m und n: ggt(m, n) = xm + yn, aus der man insbesondere Inverse in Z 26 bestimmen kann; ist in vielen Anwendungen sehr nützlich, zum Beispiel beim RSA-Verschlüsselungsverfahren. Der,,Merge -Schritt besteht nun in der Berechnung der Werte x und y aus den rekursiv berechneten Werten x und y. EXTENDED-EUCLID(n, m) { } if (m = 0)return (n, 1, 0); else { (g, x, y ) := EXTENDED-EUCLID(m, n mod m); x := y ; y := x y n m ; return (g, x, y); } Abbildung 1: Extended Euclidean Algorithm 3
4 Der Chinesische Restesatz (CRS) Satz 1 (Chinese Remainder Theorem) Let m 1,m 2,...,m k be k positive integers that are pairwise relatively prime (i.e.,gcd(m i, m j ) = 1 for i j), let M = k m i, i=1 and let a 1,a 2,...,a k be any integers. For each i with 1 i k, define q i = M/m i, and let qi 1 denote the inverse element of q i in Z m i. Then, the system of k congruences x a i mod m i, where 1 i k, has the unique solution k x = a i q i qi 1 mod M. i=1 4
5 RSA Protocol Rivest, Shamir, and Adleman; 1978 c = m e mod n (n,e) c chooses primes p and q at random; computes n = pq, ϕ(n) = (p 1)(q 1); public key: (n,e), private key: d, satisfying (1) and (2) m = c d = (m e ) d mod n 5
6 RSA: Key Generation 1. Bob chooses randomly two large primes p and q with p q, and computes n = pq. 2. Bob chooses a number e N with 1 < e < ϕ(n) = (p 1)(q 1) and gcd(e, ϕ(n)) = 1. (1) 3. Bob computes the unique number d satisfying 1 < d < ϕ(n) and e d 1 mod ϕ(n). (2) That is, d is the inverse of e modulo ϕ(n). 4. Bob s public key: (n,e); Bob s private key: d. 6
7 RSA: Encryption Given a message m, with 1 < m < n, Alice computes the ciphertext: c = E (n,e) (m) = m e mod n. To speed up encryption, she uses which is explained below. Fast Exponentiation, Let the binary expansion of e be given by e = k e i 2 i, where e i {0, 1}. i=0 Alice computes (modulo n): m e = m k i=0 e i 2 i = k (m 2i) e i k = m 2i. (3) i=0 i = 0 e i =1 7
8 Method Square-and-multiply 1. Successively compute m 2i, where 0 i k, using the equality ( m 2i+1 = m 2i) According to Equation (3), compute k m e = m 2i. i = 0 e i =1 Instead of e multiplications, Alice need compute no more than 2 log e multiplications. 8
9 Example: Square-and-multiply Suppose Alice wants to compute c = 6 17 mod 100. The binary expansion of the exponent is 17 = = Alice successively computes: 6 20 = 6 1 = 6; 6 21 = 6 2 = 36; 6 22 = mod 100; 6 23 ( 4) 2 mod mod 100; mod mod Alice computes her ciphertext c = 6 17 mod mod mod mod 100. Only four squarings and one multiplication are needed for her to compute the ciphertext. 9
10 RSA: Decryption Let c, 0 c < n, be the ciphertext sent to Bob: c = E (n,e) (m) = m e mod n. Bob decrypts c using his private key d and the decryption function: D d (c) = c d mod n. Again, fast exponentiation ensures efficient decryption. Theorem (Rivest, Shamir, and Adleman; 1978): Let (n,e) and d be Bob s public and private key in the RSA protocol. Then, for each message m with 0 m < n, (m e ) d mod n = m. That is, RSA is a public-key cryptosystem. 10
11 Proof of RSA Theorem Since e d 1 mod ϕ(n) by choice of d, there exists an integer t such that where n = pq. It follows that e d = 1 + t(p 1)(q 1), (m e ) d = m e d = m 1+t(p 1)(q 1) = m ( m t(p 1)(q 1)) = m ( m p 1) t(q 1). Hence: since (m e ) d m mod p, (4) if p divides m then both sides of Equation (4) are 0 mod p, and if p does not divide m (i.e., gcd(p,m) = 1) then by Fermat s Little Theorem, we have m p 1 1 mod p. 11
12 Proof of RSA Theorem Continued By a symmetric argument: (m e ) d m mod q, Since p and q are primes with p q: (m e ) d m mod n, Since m < n, the claim follows. 12
13 Example RSA R S A I S T H E K E Y T O P U B L I m b c b C K E Y C R Y P T O G R A P H Y m b c b
14 Sieb des Eratosthenes i Primzahlen unterhalb von 1000:
15 Probedivision TRIAL-DIVISION(n) { // n N with n 2 } for (i = 2, 3,..., n ) { if (i divides n) return n is composite and halt; } return n is prime and halt; 15
16 Fermat Test n n 1 mod n n n 1 mod n
17 Fermat Witnesses and Fermat Liars for n = 143 Multiples of Multiples of Fermat witnesses in Z Fermat liars
18 Fermat Test FERMAT(n) { } // n 3 is an odd integer Randomly choose a number a {2, 3,...,n 2} under the uniform distribution; if (a n 1 1 mod n)return n is composite and halt; elsereturn n is prime and halt; 18
19 Miller Rabin Test MILLER-RABIN(n) { } // n 3 is an odd integer Determine the representation n 1 = 2 k m, where m is odd; Randomly choose a number a {1, 2,...,n 1} under the uniform distribution; x := a m mod n; if (x 1 mod n)return n is prime and halt; for (j = 0, 1,...,k 1) { if (x 1 mod n)return n is prime and halt; else x := x 2 mod n; } return n is composite and halt; 19
20 MR-witnesses and MR-liars for the Carmichael number n = 561 a a 35 mod 561 a 70 mod 561 a 140 mod 561 a 280 mod 561 a 560 mod
21 Solovay Strassen Test SOLOVAY-STRASSEN(n) { } // n 3 is an odd integer Randomly choose a number a {1, 2,...,n 1} under the uniform distribution; x := ( a n) ; if (x = 0) return n is composite and halt; y := a (n 1)/2 mod n; if (x y mod n)return n is prime and halt; elsereturn n is composite and halt; 21
22 Computing the Jacobi Symbol ( a n ) Given any integer a and an odd number n 3 with prime power factorization n = p e 1 1 pe k k, compute the Jacobi symbol ( a k ( ) ei a = n) i=1 as follows: 1. If a {1, 2,...,n 1}, the result is ( ) a mod n n. 2. If a = 0, the result is If a = 1, the result is 1. ( ) 4. If 4 a, the result is a/4 n. ( ) 5. If 2 a, the result is a/2 if n mod 8 {1, 7}, n ( ) and is a/2 if n mod 8 {3, 5}. n 6. If a > 1 and a 1 or n 1 mod 4, the result is ( ) n mod a a. 7. If a 3 and n 3 mod 4, the result is ( ) n mod a a. p i 22
23 Properties of the Jacobi Symbol ( a n ) 1. Law of Quadratic Reciprocity (C. F. Gauß): If m and n are odd positive integers, then ( m ) { ( n ) = m) if m n 3 mod 4 n otherwise. ( n m 2. If n is an odd positive integer and a b mod n, then ( ( ) a b =. n) n 3. Multiplicativity: If n is an odd positive integer and a and b are integers, then (a ) b ( a ) ( ) b =. n n n In particular, if m = a 2 k and a is odd, then ( m ) ( a ) ( ) k 2 =. n n n 4. If n is an odd positive integer, then ( ) { 2 1 if n ±1 mod 8 = n 1 if n ±3 mod If n is an odd positive integer, then ( ) ( ) 1 0 = 1 and n n = 0. 23
24 Computing the Jacobi Symbol ( ) Now consider the case that SOLOVAY-STRASSEN(6399) has picked the number a = 1111 at random. Again computing the Jacobi symbol gives: ( ) (1) = ( (3) 211 = (1) = (3) = (1) = (5) = 1, ( ) ( ) 6399 (2) 844 = ) ( ) 2 2 (4) = ( ) ( ) 1111 (2) 56 = ( )( ) (4) = 211 ( ) (2) = 211 ( ) 1 7 ( ) ( ) where (i) = denotes that Property i from the previous transparency is applied. 24
25 Computing a (n 1)/2 mod n for a = 1111 and n = 6399 Compute mod 6399 by fast exponentiation. The binary expansion of the exponent is 3199 = , The table below shows the values a 2i mod n computed sequentially by the square-and-multiply algorithm. a 20 a 21 a 22 a 23 a 24 a 25 a 26 a 27 a 28 a 29 a 210 a Multiplying the values in the gray boxes and reducing modulo 6399, we obtain mod Thus, (1111 ) = mod 6399, 6399 and SOLOVAY-STRASSEN(6399) correctly outputs 6399 is composite, for the random number a =
26 Trivial Solovay Strassen Liars: 1 and n 1 On the other hand, if SOLOVAY-STRASSEN(6399) picks a number a {1, 6398} at random, then it incorrectly outputs since and 6399 is prime, ( ) ( ) (3) = (4) = (5) = 1 = mod 6399, (1) = (2) = ( )( ) ( ) ( ) ( ) (5) = 1 = ( 1) 3199 mod
27 Trial Division To find the prime factors of a given integer n 2, do the following: 1. Compute all primes less than or equal to some prespecified bound b. This can be done using the sieve of Eratosthenes. 2. For each prime p in this list, determine the maximum power of p dividing n, i.e., the maximum exponent e p such that p e p divides n, and output the corresponding prime factors of n in increasing order. i = i = i = i = i =
28 Pollard s p 1 Factoring Algorithm POLLARD(n, B) { } // n 3 is an odd integer and B is a prespecified bound x := 2; for (i = 2, 3...,B) { x := x i mod n; } d := gcd(n,x 1); if (1 < d < n) { return d; Recurse by calling POLLARD(d, B) and POLLARD(n/d, B); } else return failure and restart with a new bound B > B; Computing x i mod n for Pollard s p 1 factoring algorithm: i x
29 Quadratic Sieve: Computing σ(x) x σ(x) x σ(x)
30 Quadratic Sieve: Determining B-smooth values σ(x) using sieves with p x σ(x) sieve with sieve with sieve with sieve with sieve with
31 Quadratic Sieve: Overview 1. Let n be the number to be factored. Choose a factor base B consisting of 1 and prime numbers small enough, i.e., for some small prespecified bound B, define B = { 1} {p p is a prime number with p B}. 2. Let s = n. A function value σ(x) satisfying σ(x) (x + s) 2 mod n (5) is said to be B-smooth if and only if all its prime factors are contained in B. 3. Determine B integers x such that σ(x) is B-smooth. 4. Solve the corresponding system of B congruences to select suitable congruences of the form (5) such that their product yields a square on both sides 5. Determine the values of a and b satisfying a 2 b 2 mod n and a ±b mod n. (6) by taking the product of the congruences selected. 6. Determine the nontrivial factors of n = d 1 d 2 by d 1 = gcd(n,a b) d 2 = gcd(n,a + b). 7. Recursively apply this procedure to d 1 and d 2 until the prime factorization of n has been found. 31
32 Running Times of Selected Factoring Algorithms Algorithm Running time Pollard s p 1 algorithm O(B log B(log n) 2 + (log n) 3 ) ( ) Quadratic sieve O e (1+o(1)) ln n lnlnn Number field sieve O (e (1.92+o(1)) 3 ln n 3 (lnlnn) 2) ( ) Elliptic curve method O e (1+o(1)) 2 lnplnln p 32
33 Factoring RSA-d Numbers Challenge Factoring method Year RSA-129 quadratic sieve 1994 RSA-130 number field sieve 1996 RSA-140 number field sieve 1999 RSA-155 number field sieve
10 Modular Arithmetic and Cryptography
10 Modular Arithmetic and Cryptography 10.1 Encryption and Decryption Encryption is used to send messages secretly. The sender has a message or plaintext. Encryption by the sender takes the plaintext and
More informationFactorization & Primality Testing
Factorization & Primality Testing C etin Kaya Koc http://cs.ucsb.edu/~koc koc@cs.ucsb.edu Koc (http://cs.ucsb.edu/~ koc) ucsb ccs 130h explore crypto fall 2014 1/1 Primes Natural (counting) numbers: N
More informationCryptography CS 555. Topic 18: RSA Implementation and Security. CS555 Topic 18 1
Cryptography CS 555 Topic 18: RSA Implementation and Security Topic 18 1 Outline and Readings Outline RSA implementation issues Factoring large numbers Knowing (e,d) enables factoring Prime testing Readings:
More informationMathematics of Cryptography
UNIT - III Mathematics of Cryptography Part III: Primes and Related Congruence Equations 1 Objectives To introduce prime numbers and their applications in cryptography. To discuss some primality test algorithms
More informationCPSC 467b: Cryptography and Computer Security
Outline Quadratic residues Useful tests Digital Signatures CPSC 467b: Cryptography and Computer Security Lecture 14 Michael J. Fischer Department of Computer Science Yale University March 1, 2010 Michael
More informationNumber Theory and Algebra: A Brief Introduction
Number Theory and Algebra: A Brief Introduction Indian Statistical Institute Kolkata May 15, 2017 Elementary Number Theory: Modular Arithmetic Definition Let n be a positive integer and a and b two integers.
More information1 Recommended Reading 1. 2 Public Key/Private Key Cryptography Overview RSA Algorithm... 2
Contents 1 Recommended Reading 1 2 Public Key/Private Key Cryptography 1 2.1 Overview............................................. 1 2.2 RSA Algorithm.......................................... 2 3 A Number
More informationIntroduction to Modern Cryptography. Benny Chor
Introduction to Modern Cryptography Benny Chor RSA Public Key Encryption Factoring Algorithms Lecture 7 Tel-Aviv University Revised March 1st, 2008 Reminder: The Prime Number Theorem Let π(x) denote the
More informationLecture 1: Introduction to Public key cryptography
Lecture 1: Introduction to Public key cryptography Thomas Johansson T. Johansson (Lund University) 1 / 44 Key distribution Symmetric key cryptography: Alice and Bob share a common secret key. Some means
More informationUniversity of Tokyo: Advanced Algorithms Summer Lecture 6 27 May. Let s keep in mind definitions from the previous lecture:
University of Tokyo: Advanced Algorithms Summer 2010 Lecture 6 27 May Lecturer: François Le Gall Scribe: Baljak Valentina As opposed to prime factorization, primality testing is determining whether a given
More informationLemma 1.2. (1) If p is prime, then ϕ(p) = p 1. (2) If p q are two primes, then ϕ(pq) = (p 1)(q 1).
1 Background 1.1 The group of units MAT 3343, APPLIED ALGEBRA, FALL 2003 Handout 3: The RSA Cryptosystem Peter Selinger Let (R, +, ) be a ring. Then R forms an abelian group under addition. R does not
More informationTheme : Cryptography. Instructor : Prof. C Pandu Rangan. Speaker : Arun Moorthy CS
1 C Theme : Cryptography Instructor : Prof. C Pandu Rangan Speaker : Arun Moorthy 93115 CS 2 RSA Cryptosystem Outline of the Talk! Introduction to RSA! Working of the RSA system and associated terminology!
More informationMa/CS 6a Class 4: Primality Testing
Ma/CS 6a Class 4: Primality Testing By Adam Sheffer Reminder: Euler s Totient Function Euler s totient φ(n) is defined as follows: Given n N, then φ n = x 1 x < n and GCD x, n = 1. In more words: φ n is
More informationLECTURE 5: APPLICATIONS TO CRYPTOGRAPHY AND COMPUTATIONS
LECTURE 5: APPLICATIONS TO CRYPTOGRAPHY AND COMPUTATIONS Modular arithmetics that we have discussed in the previous lectures is very useful in Cryptography and Computer Science. Here we discuss several
More information10 Public Key Cryptography : RSA
10 Public Key Cryptography : RSA 10.1 Introduction The idea behind a public-key system is that it might be possible to find a cryptosystem where it is computationally infeasible to determine d K even if
More informationECE 646 Lecture 8. RSA: Genesis, Security, Implementation & Key Generation
ECE 646 Lecture 8 RSA: Genesis, Security, Implementation & Key Generation Public Key (Asymmetric) Cryptosystems Public key of Bob - K B Private key of Bob - k B Network Alice Encryption Decryption Bob
More informationRSA: Genesis, Security, Implementation & Key Generation
ECE 646 Lecture 8 RSA: Genesis, Security, Implementation & Key Generation Public Key (Asymmetric) Cryptosystems Public key of Bob - K B Private key of Bob - k B Network Alice Encryption Decryption Bob
More informationSecurity Issues in Cloud Computing Modern Cryptography II Asymmetric Cryptography
Security Issues in Cloud Computing Modern Cryptography II Asymmetric Cryptography Peter Schwabe October 21 and 28, 2011 So far we assumed that Alice and Bob both have some key, which nobody else has. How
More informationRSA Key Generation. Required Reading. W. Stallings, "Cryptography and Network-Security, Chapter 8.3 Testing for Primality
ECE646 Lecture RSA Key Generation Required Reading W. Stallings, "Cryptography and Network-Security, Chapter 8.3 Testing for Primality A.Menezes, P. van Oorschot, and S. Vanstone, Handbook of Applied Cryptography
More informationDefinition: For a positive integer n, if 0<a<n and gcd(a,n)=1, a is relatively prime to n. Ahmet Burak Can Hacettepe University
Number Theory, Public Key Cryptography, RSA Ahmet Burak Can Hacettepe University abc@hacettepe.edu.tr The Euler Phi Function For a positive integer n, if 0
More informationCSE 521: Design and Analysis of Algorithms I
CSE 521: Design and Analysis of Algorithms I Randomized Algorithms: Primality Testing Paul Beame 1 Randomized Algorithms QuickSelect and Quicksort Algorithms random choices make them fast and simple but
More informationLecture 5: Arithmetic Modulo m, Primes and Greatest Common Divisors Lecturer: Lale Özkahya
BBM 205 Discrete Mathematics Hacettepe University http://web.cs.hacettepe.edu.tr/ bbm205 Lecture 5: Arithmetic Modulo m, Primes and Greatest Common Divisors Lecturer: Lale Özkahya Resources: Kenneth Rosen,
More informationCryptography. Course 1: Remainder: RSA. Jean-Sébastien Coron. September 21, Université du Luxembourg
Course 1: Remainder: RSA Université du Luxembourg September 21, 2010 Public-key encryption Public-key encryption: two keys. One key is made public and used to encrypt. The other key is kept private and
More informationChapter 8 Public-key Cryptography and Digital Signatures
Chapter 8 Public-key Cryptography and Digital Signatures v 1. Introduction to Public-key Cryptography 2. Example of Public-key Algorithm: Diffie- Hellman Key Exchange Scheme 3. RSA Encryption and Digital
More informationCourse 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography
Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography David R. Wilkins Copyright c David R. Wilkins 2006 Contents 9 Introduction to Number Theory and Cryptography 1 9.1 Subgroups
More informationAddition. Ch1 - Algorithms with numbers. Multiplication. al-khwārizmī. al-khwārizmī. Division 53+35=88. Cost? (n number of bits) 13x11=143. Cost?
Ch - Algorithms with numbers Addition Basic arithmetic Addition ultiplication Division odular arithmetic factoring is hard Primality testing 53+35=88 Cost? (n number of bits) O(n) ultiplication al-khwārizmī
More informationCryptography. P. Danziger. Transmit...Bob...
10.4 Cryptography P. Danziger 1 Cipher Schemes A cryptographic scheme is an example of a code. The special requirement is that the encoded message be difficult to retrieve without some special piece of
More informationRSA RSA public key cryptosystem
RSA 1 RSA As we have seen, the security of most cipher systems rests on the users keeping secret a special key, for anyone possessing the key can encrypt and/or decrypt the messages sent between them.
More informationAlgorithmic Number Theory and Public-key Cryptography
Algorithmic Number Theory and Public-key Cryptography Course 3 University of Luxembourg March 22, 2018 The RSA algorithm The RSA algorithm is the most widely-used public-key encryption algorithm Invented
More informationAsymmetric Encryption
-3 s s Encryption Comp Sci 3600 Outline -3 s s 1-3 2 3 4 5 s s Outline -3 s s 1-3 2 3 4 5 s s Function Using Bitwise XOR -3 s s Key Properties for -3 s s The most important property of a hash function
More informationPublic-Key Cryptosystems CHAPTER 4
Public-Key Cryptosystems CHAPTER 4 Introduction How to distribute the cryptographic keys? Naïve Solution Naïve Solution Give every user P i a separate random key K ij to communicate with every P j. Disadvantage:
More informationThe RSA cryptosystem and primality tests
Mathematics, KTH Bengt Ek November 2015 Supplementary material for SF2736, Discrete mathematics: The RSA cryptosystem and primality tests Secret codes (i.e. codes used to make messages unreadable to outsiders
More informationThe RSA public encryption scheme: How I learned to stop worrying and love buying stuff online
The RSA public encryption scheme: How I learned to stop worrying and love buying stuff online Anthony Várilly-Alvarado Rice University Mathematics Leadership Institute, June 2010 Our Goal Today I will
More informationIRREDUCIBILITY TESTS IN F p [T ]
IRREDUCIBILITY TESTS IN F p [T ] KEITH CONRAD 1. Introduction Let F p = Z/(p) be a field of prime order. We will discuss a few methods of checking if a polynomial f(t ) F p [T ] is irreducible that are
More informationPublic Key Cryptography
Public Key Cryptography Spotlight on Science J. Robert Buchanan Department of Mathematics 2011 What is Cryptography? cryptography: study of methods for sending messages in a form that only be understood
More informationbasics of security/cryptography
RSA Cryptography basics of security/cryptography Bob encrypts message M into ciphertext C=P(M) using a public key; Bob sends C to Alice Alice decrypts ciphertext back into M using a private key (secret)
More informationIntroduction to Modern Cryptography. Lecture RSA Public Key CryptoSystem 2. One way Trapdoor Functions
Introduction to Modern Cryptography Lecture 7 1. RSA Public Key CryptoSystem 2. One way Trapdoor Functions Diffie and Hellman (76) New Directions in Cryptography Split the Bob s secret key K to two parts:
More informationKTH, NADA , and D1449 Kryptografins grunder. Lecture 6: RSA. Johan Håstad, transcribed by Martin Lindkvist
Lecture 6: RSA Johan Håstad, transcribed by Martin Lindkvist 2006-01-31, 2006-02-02 and 2006-02-07 1 Introduction Using an ordinary cryptosystem, encryption uses a key K and decryption is performed by
More informationCourse MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography
Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography David R. Wilkins Copyright c David R. Wilkins 2000 2013 Contents 9 Introduction to Number Theory 63 9.1 Subgroups
More informationMa/CS 6a Class 3: The RSA Algorithm
Ma/CS 6a Class 3: The RSA Algorithm By Adam Sheffer Reminder: Putnam Competition Signup ends Wednesday 10/08. Signup sheets available in all Sloan classrooms, Math office, or contact Kathy Carreon, kcarreon@caltech.edu.
More informationDiscrete Mathematics GCD, LCM, RSA Algorithm
Discrete Mathematics GCD, LCM, RSA Algorithm Abdul Hameed http://informationtechnology.pk/pucit abdul.hameed@pucit.edu.pk Lecture 16 Greatest Common Divisor 2 Greatest common divisor The greatest common
More informationDiscrete mathematics I - Number theory
Discrete mathematics I - Number theory Emil Vatai (based on hungarian slides by László Mérai) 1 January 31, 2018 1 Financed from the financial support ELTE won from the Higher Education
More informationCryptography: Joining the RSA Cryptosystem
Cryptography: Joining the RSA Cryptosystem Greg Plaxton Theory in Programming Practice, Fall 2005 Department of Computer Science University of Texas at Austin Joining the RSA Cryptosystem: Overview First,
More informationECE596C: Handout #11
ECE596C: Handout #11 Public Key Cryptosystems Electrical and Computer Engineering, University of Arizona, Loukas Lazos Abstract In this lecture we introduce necessary mathematical background for studying
More informationApplied Cryptography and Computer Security CSE 664 Spring 2018
Applied Cryptography and Computer Security Lecture 12: Introduction to Number Theory II Department of Computer Science and Engineering University at Buffalo 1 Lecture Outline This time we ll finish the
More informationMa/CS 6a Class 4: Primality Testing
Ma/CS 6a Class 4: Primality Testing By Adam Sheffer Send anonymous suggestions and complaints from here. Email: adamcandobetter@gmail.com Password: anonymous2 There aren t enough crocodiles in the presentations
More informationCOMP4109 : Applied Cryptography
COMP409 : Applied Cryptography Fall 203 M. Jason Hinek Carleton University Applied Cryptography Day 3 public-key encryption schemes some attacks on RSA factoring small private exponent 2 RSA cryptosystem
More informationIntroduction to Public-Key Cryptosystems:
Introduction to Public-Key Cryptosystems: Technical Underpinnings: RSA and Primality Testing Modes of Encryption for RSA Digital Signatures for RSA 1 RSA Block Encryption / Decryption and Signing Each
More informationSlides by Kent Seamons and Tim van der Horst Last Updated: Oct 1, 2013
RSA Slides by Kent Seamons and Tim van der Horst Last Updated: Oct 1, 2013 Recap Recap Number theory o What is a prime number? o What is prime factorization? o What is a GCD? o What does relatively prime
More informationTHE CUBIC PUBLIC-KEY TRANSFORMATION*
CIRCUITS SYSTEMS SIGNAL PROCESSING c Birkhäuser Boston (2007) VOL. 26, NO. 3, 2007, PP. 353 359 DOI: 10.1007/s00034-006-0309-x THE CUBIC PUBLIC-KEY TRANSFORMATION* Subhash Kak 1 Abstract. This note proposes
More informationMathematical Foundations of Public-Key Cryptography
Mathematical Foundations of Public-Key Cryptography Adam C. Champion and Dong Xuan CSE 4471: Information Security Material based on (Stallings, 2006) and (Paar and Pelzl, 2010) Outline Review: Basic Mathematical
More informationThe security of RSA (part 1) The security of RSA (part 1)
The modulus n and its totient value φ(n) are known φ(n) = p q (p + q) + 1 = n (p + q) + 1 The modulus n and its totient value φ(n) are known φ(n) = p q (p + q) + 1 = n (p + q) + 1 i.e. q = (n φ(n) + 1)
More informationUniv.-Prof. Dr. rer. nat. Rudolf Mathar. Written Examination. Cryptography. Tuesday, August 29, 2017, 01:30 p.m.
Cryptography Univ.-Prof. Dr. rer. nat. Rudolf Mathar 1 2 3 4 15 15 15 15 60 Written Examination Cryptography Tuesday, August 29, 2017, 01:30 p.m. Name: Matr.-No.: Field of study: Please pay attention to
More informationEncryption: The RSA Public Key Cipher
Encryption: The RSA Public Key Cipher Michael Brockway March 5, 2018 Overview Transport-layer security employs an asymmetric public cryptosystem to allow two parties (usually a client application and a
More informationCPSC 467b: Cryptography and Computer Security
CPSC 467b: Cryptography and Computer Security Michael J. Fischer Lecture 8 February 1, 2012 CPSC 467b, Lecture 8 1/42 Number Theory Needed for RSA Z n : The integers mod n Modular arithmetic GCD Relatively
More informationduring transmission safeguard information Cryptography: used to CRYPTOGRAPHY BACKGROUND OF THE MATHEMATICAL
THE MATHEMATICAL BACKGROUND OF CRYPTOGRAPHY Cryptography: used to safeguard information during transmission (e.g., credit card number for internet shopping) as opposed to Coding Theory: used to transmit
More informationMath/Mthe 418/818. Review Questions
Math/Mthe 418/818 Review Questions 1. Show that the number N of bit operations required to compute the product mn of two integers m, n > 1 satisfies N = O(log(m) log(n)). 2. Can φ(n) be computed in polynomial
More informationElementary Number Theory Review. Franz Luef
Elementary Number Theory Review Principle of Induction Principle of Induction Suppose we have a sequence of mathematical statements P(1), P(2),... such that (a) P(1) is true. (b) If P(k) is true, then
More informationMath.3336: Discrete Mathematics. Mathematical Induction
Math.3336: Discrete Mathematics Mathematical Induction Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu Fall 2018
More informationRSA Algorithm. Factoring, EulerPhi, Breaking RSA. Çetin Kaya Koç Spring / 14
RSA Algorithm http://koclab.org Çetin Kaya Koç Spring 2018 1 / 14 Well-Known One-Way Functions Discrete Logarithm: Given p, g, and x, computing y in y = g x (mod p) is EASY Given p, g, y, computing x in
More informationInstructor: Bobby Kleinberg Lecture Notes, 25 April The Miller-Rabin Randomized Primality Test
Introduction to Algorithms (CS 482) Cornell University Instructor: Bobby Kleinberg Lecture Notes, 25 April 2008 The Miller-Rabin Randomized Primality Test 1 Introduction Primality testing is an important
More informationThéorie de l'information et codage. Master de cryptographie Cours 10 : RSA. 20,23 et 27 mars Université Rennes 1
Théorie de l'information et codage Master de cryptographie Cours 10 : RSA 20,23 et 27 mars 2009 Université Rennes 1 Master Crypto (2008-2009) Théorie de l'information et codage 20,23 et 27 mars 2009 1
More informationCongruence of Integers
Congruence of Integers November 14, 2013 Week 11-12 1 Congruence of Integers Definition 1. Let m be a positive integer. For integers a and b, if m divides b a, we say that a is congruent to b modulo m,
More informationICS141: Discrete Mathematics for Computer Science I
ICS141: Discrete Mathematics for Computer Science I Dept. Information & Computer Sci., Jan Stelovsky based on slides by Dr. Baek and Dr. Still Originals by Dr. M. P. Frank and Dr. J.L. Gross Provided by
More informationCPSC 467: Cryptography and Computer Security
CPSC 467: Cryptography and Computer Security Michael J. Fischer Lecture 14 October 23, 2017 CPSC 467, Lecture 14 1/42 Computing in Z n Modular multiplication Modular inverses Extended Euclidean algorithm
More informationCryptography IV: Asymmetric Ciphers
Cryptography IV: Asymmetric Ciphers Computer Security Lecture 7 David Aspinall School of Informatics University of Edinburgh 31st January 2011 Outline Background RSA Diffie-Hellman ElGamal Summary Outline
More informationPublic Key Algorithms
Public Key Algorithms Raj Jain Washington University in Saint Louis Saint Louis, MO 63130 Jain@cse.wustl.edu Audio/Video recordings of this lecture are available at: http://www.cse.wustl.edu/~jain/cse571-09/
More informationLecture 22: RSA Encryption. RSA Encryption
Lecture 22: Recall: RSA Assumption We pick two primes uniformly and independently at random p, q $ P n We define N = p q We shall work over the group (Z N, ), where Z N is the set of all natural numbers
More informationCRYPTOGRAPHY AND NUMBER THEORY
CRYPTOGRAPHY AND NUMBER THEORY XINYU SHI Abstract. In this paper, we will discuss a few examples of cryptographic systems, categorized into two different types: symmetric and asymmetric cryptography. We
More informationLecture Notes, Week 6
YALE UNIVERSITY DEPARTMENT OF COMPUTER SCIENCE CPSC 467b: Cryptography and Computer Security Week 6 (rev. 3) Professor M. J. Fischer February 15 & 17, 2005 1 RSA Security Lecture Notes, Week 6 Several
More informationCryptosystem. Traditional Cryptosystems: The two parties agree on a secret (one to one) function f. To send a message M, thesendersendsthemessage
Cryptosystem Traditional Cryptosystems: The two parties agree on a secret (one to one) function f. To send a message M, thesendersendsthemessage f(m). The receiver computes f 1 (f(m)). Advantage: Cannot
More informationCIS 551 / TCOM 401 Computer and Network Security
CIS 551 / TCOM 401 Computer and Network Security Spring 2008 Lecture 15 3/20/08 CIS/TCOM 551 1 Announcements Project 3 available on the web. Get the handout in class today. Project 3 is due April 4th It
More informationCPSC 467b: Cryptography and Computer Security
CPSC 467b: Cryptography and Computer Security Michael J. Fischer Lecture 9 February 14, 2013 CPSC 467b, Lecture 9 1/42 Integer Division (cont.) Relatively prime numbers, Z n, and φ(n) Computing in Z n
More informationOWO Lecture: Modular Arithmetic with Algorithmic Applications
OWO Lecture: Modular Arithmetic with Algorithmic Applications Martin Otto Winter Term 2008/09 Contents 1 Basic ingredients 1 2 Modular arithmetic 2 2.1 Going in circles.......................... 2 2.2
More informationChapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations
Chapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 9.1 Chapter 9 Objectives
More informationIntroduction to Number Theory
INTRODUCTION Definition: Natural Numbers, Integers Natural numbers: N={0,1,, }. Integers: Z={0,±1,±, }. Definition: Divisor If a Z can be writeen as a=bc where b, c Z, then we say a is divisible by b or,
More informationCPSC 467b: Cryptography and Computer Security
CPSC 467b: Cryptography and Computer Security Michael J. Fischer Lecture 9 February 6, 2012 CPSC 467b, Lecture 9 1/53 Euler s Theorem Generating RSA Modulus Finding primes by guess and check Density of
More informationPublic Key Cryptography
Public Key Cryptography Ali El Kaafarani 1 Mathematical Institute 2 PQShield Ltd. 1 of 44 Outline 1 Public Key Encryption: security notions 2 RSA Encryption Scheme 2 of 44 Course main reference 3 of 44
More informationOverview. Background / Context. CSC 580 Cryptography and Computer Security. March 21, 2017
CSC 580 Cryptography and Computer Security Math for Public Key Crypto, RSA, and Diffie-Hellman (Sections 2.4-2.6, 2.8, 9.2, 10.1-10.2) March 21, 2017 Overview Today: Math needed for basic public-key crypto
More informationCryptography. pieces from work by Gordon Royle
Cryptography pieces from work by Gordon Royle The set-up Cryptography is the mathematics of devising secure communication systems, whereas cryptanalysis is the mathematics of breaking such systems. We
More informationNumber Theory & Modern Cryptography
Number Theory & Modern Cryptography Week 12 Stallings: Ch 4, 8, 9, 10 CNT-4403: 2.April.2015 1 Introduction Increasing importance in cryptography Public Key Crypto and Signatures Concern operations on
More informationTopics in Cryptography. Lecture 5: Basic Number Theory
Topics in Cryptography Lecture 5: Basic Number Theory Benny Pinkas page 1 1 Classical symmetric ciphers Alice and Bob share a private key k. System is secure as long as k is secret. Major problem: generating
More informationCryptography and RSA. Group (1854, Cayley) Upcoming Interview? Outline. Commutative or Abelian Groups
Great Theoretical Ideas in CS V. Adamchik CS 15-251 Upcoming Interview? Lecture 24 Carnegie Mellon University Cryptography and RSA How the World's Smartest Company Selects the Most Creative Thinkers Groups
More informationPublic-Key Encryption: ElGamal, RSA, Rabin
Public-Key Encryption: ElGamal, RSA, Rabin Introduction to Modern Cryptography Benny Applebaum Tel-Aviv University Fall Semester, 2011 12 Public-Key Encryption Syntax Encryption algorithm: E. Decryption
More informationNUMBER THEORY AND CODES. Álvaro Pelayo WUSTL
NUMBER THEORY AND CODES Álvaro Pelayo WUSTL Talk Goal To develop codes of the sort can tell the world how to put messages in code (public key cryptography) only you can decode them Structure of Talk Part
More informationAttacks on RSA & Using Asymmetric Crypto
Attacks on RSA & Using Asymmetric Crypto Luke Anderson luke@lukeanderson.com.au 7 th April 2017 University Of Sydney Overview 1. Crypto-Bulletin 2. Breaking RSA 2.1 Chinese Remainder Theorem 2.2 Common
More informationNumber theory. Myrto Arapinis School of Informatics University of Edinburgh. October 9, /29
Number theory Myrto Arapinis School of Informatics University of Edinburgh October 9, 2014 1/29 Division Definition If a and b are integers with a 6= 0, then a divides b if there exists an integer c such
More informationCPSC 467b: Cryptography and Computer Security
CPSC 467b: Cryptography and Computer Security Michael J. Fischer Lecture 10 February 19, 2013 CPSC 467b, Lecture 10 1/45 Primality Tests Strong primality tests Weak tests of compositeness Reformulation
More informationCarmen s Core Concepts (Math 135)
Carmen s Core Concepts (Math 135) Carmen Bruni University of Waterloo Week 8 1 The following are equivalent (TFAE) 2 Inverses 3 More on Multiplicative Inverses 4 Linear Congruence Theorem 2 [LCT2] 5 Fermat
More informationRSA Cryptosystem and Factorization
RSA Cryptosystem and Factorization D. J. Guan Department of Computer Science National Sun Yat Sen University Kaoshiung, Taiwan 80424 R. O. C. guan@cse.nsysu.edu.tw August 25, 2003 RSA Cryptosystem was
More informationPublic Key Encryption
Public Key Encryption 3/13/2012 Cryptography 1 Facts About Numbers Prime number p: p is an integer p 2 The only divisors of p are 1 and p s 2, 7, 19 are primes -3, 0, 1, 6 are not primes Prime decomposition
More informationPublic Key Encryption
Public Key Encryption KG October 17, 2017 Contents 1 Introduction 1 2 Public Key Encryption 2 3 Schemes Based on Diffie-Hellman 3 3.1 ElGamal.................................... 5 4 RSA 7 4.1 Preliminaries.................................
More informationNUMBER THEORY FOR CRYPTOGRAPHY
1 CHAPTER 4. NUMBER THEORY FOR CRYPTOGRAPHY 1 INSTITÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW NUMBER THEORY FOR CRYPTOGRAPHY Contents 1 Number Theory for Cryptography 2 1.1 Linear
More informationThe ray attack on RSA
The ray attack on RSA Andreas de Vries Talk at the societas universalis and BIG ev, Ruhr-Universität Bochum May 16, 2002 Survey 1. RSA cryptosystems 2. Classical attacks on RSA 3. The ray attack 4. Another
More informationPublic Key 9/17/2018. Symmetric Cryptography Review. Symmetric Cryptography: Shortcomings (1) Symmetric Cryptography: Analogy
Symmetric Cryptography Review Alice Bob Public Key x e K (x) y d K (y) x K K Instructor: Dr. Wei (Lisa) Li Department of Computer Science, GSU Two properties of symmetric (secret-key) crypto-systems: The
More informationPublic Key Cryptography. All secret key algorithms & hash algorithms do the same thing but public key algorithms look very different from each other.
Public Key Cryptography All secret key algorithms & hash algorithms do the same thing but public key algorithms look very different from each other. The thing that is common among all of them is that each
More informationIntroduction to Cryptography. Lecture 6
Introduction to Cryptography Lecture 6 Benny Pinkas page 1 Public Key Encryption page 2 Classical symmetric ciphers Alice and Bob share a private key k. System is secure as long as k is secret. Major problem:
More informationA Guide to Arithmetic
A Guide to Arithmetic Robin Chapman August 5, 1994 These notes give a very brief resumé of my number theory course. Proofs and examples are omitted. Any suggestions for improvements will be gratefully
More informationCPSC 467b: Cryptography and Computer Security
CPSC 467b: Cryptography and Computer Security Michael J. Fischer Lecture 11 February 21, 2013 CPSC 467b, Lecture 11 1/27 Discrete Logarithm Diffie-Hellman Key Exchange ElGamal Key Agreement Primitive Roots
More informationMy brief introduction to cryptography
My brief introduction to cryptography David Thomson dthomson@math.carleton.ca Carleton University September 7, 2013 introduction to cryptography September 7, 2013 1 / 28 Outline 1 The general framework
More information