Cryptography Flashcards
Caesar cipher
Encrypt with x + 3
Decrypt with x - 3
Vigenere cipher
Given vector responding to keyword eg. ABC is 123
Then
Hello = 8,5,11,11,14
Goes to
8+1, 5+2, 11+3, 11+1, 14+2
9,7,14,12,16
In RSA one chooses
- 2 large primes p != q to form n=pq
- 2<=e<=φ(n) such that gcd(e, φ(n)) = 1
-compute 2<=s<=φ(n) such that es = 1 mod(φ(n))
e is encryption s is decryption
Public key in RSA
kp = (n,e)
RSA secret key
Ks = (n,s)
RSA encryption function
RSA decryption function
RSA plaintext and cipher text alphabets
RSA key space
Prove
To send plaintext, RSA
-Compute c = me mod(n)
Where m is message
To decipher c, RSA
Compute (by FLT and Euler’s Theorem)
Quick way to calculate φ(n) for RSA
Φ(n) = (p-1)(q-1) where pq=n (primes p!=q)
Basic principle
Proof of basic principle
Fermats primality test
Carmichael’s numbers
What implies that n is squarefree?
Implies n is squarefree
Let n>1 be an odd integer. n-1=2k * u (for odd u), then?
-n is prime <=>
Miller Rabin primality test
Miller Rabin witness to the compositness of n
Theorem that states that Miller Rabin test has a very high probability of deciding wether a given integer is composite
To compute p and q from n = pq and φ(n)