<<

Rabin Crypto System Overview

Murat Kantarcioglu

The Rabin

• Computationally secure against a chosen attack – Provided that the modulus n = pq can not be factored. û o å ïbinXa @ @ • n is the public . The primes p and are the private key.

• Choose to simplify the computation of roots modulo p and q 2 The

• B encrypts a message m and sends the c to A

: – Obtain A’s public key n. – Represent the message as an integer m in the range {0, 1, . . . ,n-1}. – Compute ù F bN bin ò – Send the ciphertext c to A

3

The Rabin Cryptosystem

• A decrypts the ciphertext c as follows:

• Decryption: – Compute Aù bin ò – There are four square roots b Ç I b N I b å I b X of c modulo n. – The message m is equal to one of these four messages

4 The Rabin Cryptosystem

• When û å b i n X there is a simple formula to compute t@he square root of c in mod p.

ï ùïûiÇaÄXaN ùïûiÇaÄN bin û % @ ùïû ÇaÄN ù bin û @ . ù bin û @

• Here we have made use of Euler’s criterion to claim that ùïû ÇaÄN Ç bin û . @ 5

The Rabin Cryptosystem

• Hence the two square roots of c mod p are ùïûiÇaÄX bin û % • In a similar fashion, the two square roots of c mod q are ùïoiÇaÄX bin o %

• Then we can obtain the four square roots of c mod n using the Chinese Remainder Theorem

6 The Rabin Cryptosystem

• Example: ò F ùù F ù ÇÇ * – Suppose ù F bN bin ùù – Then for message m the ciphertext c is computed as Aù bin ùù

– And for decryption we need to compute ù ÇEN Nå bin ùù @ @ – Suppose Alice wants to send message m = 10

7

The Rabin Cryptosystem

• To find the square roots of 23 in mod 7 and in mod 11 we can use the formula since 7 and 11 are cogruent to 3 mod 4.

NåïùiÇaÄX NN X bin ù @ @ NåïÇÇiÇaÄX Çå Ç bin ÇÇ @ @

8 The Rabin Cryptosystem

• Using the Chinese Remainder Theorem, we compute the four square roots of 23 mod 77 to be ÇEI åN bin ùù % % • Therefore the four possible are

bÇ F ÇEI bN F bùI bå F åNI bX F Xñ

9