Detailing Rabin’s Public-Key Cryptosystem.pptx

79 views 17 slides Dec 18, 2024
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

Detailing Rabin’s Public-Key Cryptosystem


Slide Content

Rabin’s Public-Key Cryptosystem

Rabin’s Public-Key Cryptosystem

Rabin’s Public-Key Cryptosystem: Key Generation.

Communication Bob’s public key n is now known to Alice.

Encryption

Example

Decryption: Rabin cryptosystem offers a high level of security, but it comes with the challenge of multiple possible decryptions. Decryption involves solving a quadratic congruence, which can be computationally expensive. The security of Rabin cryptosystem relies on the difficulty of factoring large composite numbers.

Decryption: Compute the four possible square roots: To decrypt, one needs to find the square roots of c modulo n . This involves solving the equation x^2 ≡ c (mod n) . There can be up to four possible solutions for the equations: x^2 ≡ c (mod p) . x^2 ≡ c (mod q) . 2. Test the solutions: The correct plaintext message is the one among the four solutions that is a valid integer.

The four solutions To solve the equation x^2 ≡ c (mod n) . The possible solutions must come from the equations: x^2 ≡ c (mod p) . x^2 ≡ c (mod q) . To solve these, the simplified form is given as: And  

Solution using CRT The equations can thus be written as: ; ; ; ; And thus solved using CRT to give the 4 possible solutions  

Example: Given the prime numbers p = 7 and q = 11 , create a Rabin cryptosystem. Encrypt the message m = 5 . Decrypt the ciphertext and verify Encryption: Ciphertext: c = m^2 mod n = 5^2 mod 77 = 25 mod 77 = 25. Decryption: Solve the equation x^2 ≡ 25 (mod 77) .

Since 77 = 7 * 11, solve the congruence modulo 7 and modulo 11 separately, and then combine the solutions using CRT. Solving modulo 7: x^2 ≡ 25 (mod 7) x^2 ≡ 4 (mod 7) thus, x≡ 4^(7+1)/4 (mod 11) x≡ ± 16(mod 7) The solutions are x ≡ ± 2 (mod 7). Solving modulo 11: x^2 ≡ 25 (mod 11) x^2 ≡ 3 (mod 11) thus, x≡ 3^(11+1)/4 (mod 11) x≡ ± 27(mod 11) The solutions are x ≡ ± 5 (mod 11).

Combining Solutions using CRT: We have the following systems of congruences: x ≡ 2 (mod 7) x ≡ 5 (mod 11) x ≡ 2 (mod 7) x ≡ -5 (mod 11) x ≡ -2 (mod 7) x ≡ 5 (mod 11) x ≡ -2 (mod 7) x ≡ -5 (mod 11)

Revisit CRT  

Using CRT x ≡ 2 (mod 7) x ≡ 5 (mod 11) Sol 16 x ≡ 2 (mod 7) x ≡ -5 (mod 11) Sol. 72 x ≡ -2 (mod 7) x ≡ 5 (mod 11) Sol 5 x ≡ -2 (mod 7) x ≡ -5 (mod 11) Sol. 61

Example: Given the prime numbers p = 7 and q = 11 , create a Rabin cryptosystem. Encrypt the message m = 10 . Decrypt the ciphertext and verify Encryption: Ciphertext: c = m^2 mod n = 10^2 mod 77 = 23 . Decryption: Solve the equation x^2 ≡ 23 (mod 77) . Solutions: x = 10, 67, 32, 45

Security of the Rabin Cryptosystem