11.07.2014 Views

Cryptanalysis of RSA Factorization - Library(ISI Kolkata) - Indian ...

Cryptanalysis of RSA Factorization - Library(ISI Kolkata) - Indian ...

Cryptanalysis of RSA Factorization - Library(ISI Kolkata) - Indian ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2: Mathematical Preliminaries 20<br />

Input: x,y,N<br />

Output: x y mod N<br />

1 z = y,u = 1,v = x;<br />

2 while z > 0 do<br />

3 if z ≡ 1 (mod 2) then<br />

4 u = uv mod N;<br />

end<br />

5 = v<br />

endv 2 mod N; z = ⌊ z⌋ ; 2<br />

6<br />

return u.<br />

Algorithm 5: Square and Multiply Algorithm.<br />

2.2.3 Variants <strong>of</strong> <strong>RSA</strong><br />

CRT-<strong>RSA</strong><br />

Tospeedupthedecryptionphase<strong>of</strong><strong>RSA</strong>,QuisquaterandCouvreur[103]proposed<br />

the use <strong>of</strong> Chinese Remainder Theorem (CRT) in the decryption phase. This<br />

variant <strong>of</strong> <strong>RSA</strong> is known as CRT-<strong>RSA</strong>, and it is the most widely accepted version<br />

<strong>of</strong> <strong>RSA</strong> in practice. The backbone <strong>of</strong> the scheme is CRT, stated as follows.<br />

Theorem 2.6 (CRT). Suppose p 1 ,p 2 ,...,p k (k ≥ 2) are pairwise relatively prime<br />

positive integers. Then for any set <strong>of</strong> integers a 1 ,a 2 ,...,a k , there exists a unique<br />

x < p 1 p 2···p k such that<br />

x ≡ a 1 (mod p 1 ), x ≡ a 2 (mod p 2 ), ..., x ≡ a k (mod p k ).<br />

In case <strong>of</strong> CRT-<strong>RSA</strong>, we consider the special case <strong>of</strong> k = 2. In this scenario, x<br />

can be deduced as follows.<br />

x ≡ a 2 (mod p 2 ) ⇒ x = a 2 +lp 2 for some integer l, and thus<br />

x ≡ a 1 (mod p 1 ) ⇒ a 2 +lp 2 ≡ a 1 (mod p 1 )<br />

⇒ l ≡ (a 1 −a 2 )× ( p −1<br />

2 mod p 1<br />

)<br />

mod p1 .<br />

This value <strong>of</strong> l, put back into the first congruence, gives the formula for x as<br />

x = a 2 +lp 2 = ( a 2 +((a 1 −a 2 )×(p −1<br />

2 mod p 1 ) mod p 1 )×p 2<br />

)<br />

mod p1 p 2 .<br />

Example 2.7. Take p 1 = 2, p 2 = 3 and a 1 = 1, a 2 = 2. The goal is to find an

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!