Docsity

RSA Public Key Cryptography and Integer Factorization, Exams of Electrical and Electronics Engineering

Partial preview of the text

Download RSA Public Key Cryptography and Integer Factorization and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

Explanation of selected topics: The RSA Public Key Cryptography Order Finding Algorithms Integer Factorization Quantum Circuit for Calculating f(x)mod( m ) Phase Estimation Algorithm

The RSA Public Key Cryptography The RSA Public Key Cryptography was invented by Ronald Rivest, Adi Shamir, and Leonard Adelman in 1978. The trick here is that encrypted messages can be passed from the sender to the receiver, and they can be decrypted by the receiver, without having to pass a secret decryption key between them. Instead a public/private key pair is used. The public key, which can be safely published for all to know, is used to encrypt the message. The private key, which is held by the owner, and which is never shown to anybody, is used to decrypt the message. We can describe this process symbolically as follows: where E is the encrypting function, D is the decryption function, m is the message, m ' is the encrypted message, k public is the public key and k private is the private key. In order for the public key encryption scheme to work, the private and the public keys must be linked in some way, but this way must be such that knowing the public key makes us none the wiser as to what the private key might be.

But assuming that n is really, very, very long, how hard can it be to find p and q such that ? This problem is called integer factoring. Although integer factoring seems to be a pretty trivial problem, it turns out that it is extremely hard. There is an algorithm for doing this called a Number Field Sieve algorithm. Let x be the number of bits needed to encode n. Then the time to factor n using the Number Field Sieve algorithm is proportional to The problem, as you see, scales sub-exponentially. This makes it hard, because the scaling is faster than polynomial.

Decryption

For our number 85, we take the prime 31 as our test number. Then, 31 i mod(85) generates the sequence 1, 31, 26, 41, 81, 46, 66, 6, 16, 71, 76, 61, 21, 56, 36,11, 1, 31,… Period r = 16 gcd[31^8 mod(85)-1,85] = gcd(16-1,85) = 5

Quantum Circuit for calculation of f(x)mod( m )

Phase Estimation – finding the period of a periodic function

Target register Index register to store the eigenvalue Unitary operator for which we calculate phase of eigenvalue using phase kickback we measure the phase We initialize to all states

Because e j ^ is an eigenvallue of U

We found phase Assume k an integer Number of bits