Naiara Sanchez - Rabin Cryptosystem
Naiara Sanchez - Rabin Cryptosystem
Universitt Paderborn
Complexity and Cryptography Seminar
Summer 2011
Index
Introduction
Rabin Cryptosystem
Basic mathematical concepts
The Rabin cryptosystem
Evaluation: security
Comparison with RSA cryptosystem
Conclusion
Introduction
What is a cryptosystem:
A cryptosystem is defined by the fivefold (P, C, K, E, D):
P: the set of all unencrypted messages (plaintext).
C: the set of all encrypted messages (ciphertext).
K: the set of keys that used by the cryptosystem.
E: the set of encryption transformations or functions applied to each
element of M to obtain an element of C.
D: D is the set of decryption transformations.
Dk (Ek (m)) = m
Introduction
Two main types of cryptosystem:
Symmetric Key Encryption: the
same private key is used to encrypt
and decrypt.
Asymmetric Key Encryption: two
keys, a private key and a public
key. The information is encrypted
with one of them and decrypted
with the other one.
Asymmetric cryptosystem
Based on the idea of the hardness of factorization
(along this presentation, we will assume that p and q are primes and N=pq)
and
N b mod s
x2 = y mod q
If there is no such y, then y is called a quadratic nonresidue (QNRq).
{1, 3, 4, 5, 9} QR11
{2, 6, 7, 8, 10} QNR11
7
One way to express if an element y is a quadratic or nonquadratic residue mod q is using the Legendre symbol:
+1 if y QRq
Lq(y) =
-1 if y QNRq
Example:
L11(4) = 45 mod 11 = 1 4 QR11
L11(2) = 25 mod 11 = 10 = -1 2 QNR11
10
+1 if y QRq
y (q-1)/2 mod q =
-1 if y QNRq
Example:
15 mod 11 = 1 mod 11 = 1 1 QR11
25 mod 11 = 32 mod 11 = 10 = -1 10 QNR11
35 mod 11 = 243 mod 11 = 1 1 QR11
11
y QRN
yp QRp
yq QRq
12
//
//
//
//
1: 12 mod 5 = 1
2: 22 mod 5 = 4
4: 42 mod 5 = 1
7: 72 mod 5 = 4
8: 81 mod 3 = 2
11: 111 mod 3 = 2
13: 131 mod 3 = 2
14: 141 mod 3 = 2
//
//
//
//
8: 82 mod 5 = 4
11: 112 mod 5 = 1
13: 132 mod 5 = 4
14: 142 mod 5 = 1
{1,4} QR15
13
14
15
-1 if y QNRN
Example:
(11 mod 3) = (12 mod 5) = 1 = 1 = 1 1 QR15
(21 mod 3) = (22 mod 5) = 2 4 1 2 QNR15
(41 mod 3) = (42 mod 5) = 1 = 1 = 1 4 QR15
... ... ... ...
16
K = {n, p, q}
where:
Public key: n = p q
mp =
m2
c(p+1)/4
c mod n
mq = c(q+1)/4
+ mp mod p
mod p - mp mod p
+ mq mod q
mod q - mq mod q
19
and x 1 mod 11 :
x = a1 b1 (M/m1) + a2 b2 (M/m2) = 11 x 2 x 3 + 7 x 8 x 1
x 122 = 45 mod 77 x = 45
For symmetry:
77 67 = 10 x = 10
77 45 = 32 x = 32
20
21
23
Thank you
for your attention
24