Handbook of Computer Science(cs) and IT

RSA Algorithm

RSA is an algorithm for public key cryptography RSA (RIvest Shamir Adleman) Algorithm was publicly described in 1977.

 

Mathematical Background of RSA Algorithm

Extended Eucledian algorithm Given x, find y, such that x.y=1 mod m. The extended Eucledian algorithm can efficiently find the solution to this problem.

Euler’s Theorem For any number, a relatively prime to

              N=pq.a(p-1)(q-1)=1modpq

  1. Why this is very useful?
  2. Let Z = k(p-1)(q-1)+r, we have

a2=ak(p-1)(q-1) x ar …. = ar mod pq

  • In other words, If z=r mod (P-1) (q-1), then az = a mod pq

 

Special case if Z= 1mod (p-1)(q-1),then az = a mod pq

 

We can use Euler’s theorem  to simplify az mod pq

 

 

RSA Algorithm

 

(i) Let n = pq , where p and q are 2 large primes.

  • Public key (e, n), where e is relative prime to

(P-1) (q-1)

  • Private key (d, n), such that

ed = 1 mod(p 1)•(q –1)

d can calculated using extended Euculidian Al

Encryption c = me mod n

Decryption cd = (me )d = med mod n

Security of RSA dependes on the hardness of factoring.

factoring n = p x q is hard when n is large.

DES Data Encryption Standard)

The data encryption standard was developed in IBM. DES is a symmetric key system which has a 56 bit key and encrypts 64 bit plaintext to 64 bit cipher texts improve DES, the concept of 3 DES was introduced.

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95

Leave a Reply

Your email address will not be published. Required fields are marked *