Review Notes for Final Exam - Cryptography | MAT 447, Exams of Cryptography and System Security

Material Type: Exam; Class: Cryptography; Subject: Mathematics; University: Arizona State University - Tempe; Term: Unknown 1989;

Typology: Exams

Pre 2010

Uploaded on 09/02/2009

koofers-user-uj4-1
koofers-user-uj4-1 🇺🇸

7 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Cryptography
Review for Final
1. Examples of cryptosystems:
Shift:P=C=K=Zn,eK(x) = x+K, dK(y) = yK,|P| =
|C| =|K| =n
Affine:P=C=Zn,K={(a, b)|a, b Zngcd(a, n) = 1},eK(x) =
ax +b, dK(y) = a1(yb), |P| =|C| =n,|K| =φ(n)n(In
particular φ(26) = 12)
Substitution:P=C=Zn,K- all permutations of Zn,eπ(x) =
π(x), dπ(y) = π1(y), |P| =|C | =n,|K| =n!
Vigenere:P=C=K= (Zn)m,eK(x) = x+K, dK(y) = yK,
|P| =|C| =|K| =nm
Hill:P=C= (Zn)m,K- set of m×minvertible matrices over Zn,
eK(x) = xK, dK(y) = yK 1,|P| =|C| =nm,|K| nm2(when n
is prime, Qm1
i=0 (pmpi))
2. Friedman’s Test:
The index of coincidence Ic(x) = Pfi(fi1)
n(n1) Pp2
iand how to use
it to attack Vigenere Cipher.
Mg=Ppifi+g
n,n=n/m and how to use it to guess a key in
Vignenere Cipher.
3. Basic Probability:
Conditional probability.
Bayes’ Theorem.
4. Perfect Secrecy:
Check if a cryptosystem has perfect secrecy (compute conditional
probabilities).
Shift, Affine (check directly that they have perfect secrecy).
Characterization of cryptosystems with perfect secrecy (when |P | =
|C| =|K|) (with a proof).
1
pf3

Partial preview of the text

Download Review Notes for Final Exam - Cryptography | MAT 447 and more Exams Cryptography and System Security in PDF only on Docsity!

Cryptography Review for Final

  1. Examples of cryptosystems:
    • Shift: P = C = K = Zn, eK (x) = x + K, dK (y) = y − K, |P| = |C| = |K| = n
    • Affine: P = C = Zn, K = {(a, b)|a, b ∈ Zngcd(a, n) = 1}, eK (x) = ax + b, dK (y) = a−^1 (y − b), |P| = |C| = n, |K| = φ(n)n (In particular φ(26) = 12)
    • Substitution: P = C = Zn, K - all permutations of Zn, eπ(x) = π(x), dπ(y) = π−^1 (y), |P| = |C| = n, |K| = n!
    • Vigenere: P = C = K = (Zn)m, eK (x) = x + K, dK (y) = y − K, |P| = |C| = |K| = nm
    • Hill: P = C = (Zn)m, K - set of m×m invertible matrices over Zn, eK (x) = xK, dK (y) = yK−^1 , |P| = |C| = nm, |K| ≤ nm 2 (when n is prime,

∏m− 1 i=0 (p

m (^) − pi))

  1. Friedman’s Test:
    • The index of coincidence Ic(x) =

∑ (^) fi(fi−1) n(n−1) ≈^

∑ p^2 i and how to use it to attack Vigenere Cipher.

  • Mg = ∑ (^) pifi+g n′^ ,^ n

′ (^) = n/m and how to use it to guess a key in Vignenere Cipher.

  1. Basic Probability:
    • Conditional probability.
    • Bayes’ Theorem.
  2. Perfect Secrecy:
    • Check if a cryptosystem has perfect secrecy (compute conditional probabilities).
    • Shift, Affine (check directly that they have perfect secrecy).
    • Characterization of cryptosystems with perfect secrecy (when |P| = |C| = |K|) (with a proof).
  • One-time pad: P = C = K = (Z 2 )n, eK (x) = x + K, dK (y) = y + K, |P| = |C| = |K| = 2n
  1. Entropy function:
  • Entropy function and conditional entropies.
  • Find entropies of random variables.
  • Find H(P ), H(C), H(K|C), H(P |C) in a given cryptosystem.
  • Properties of the entropy function.
  • Formula for the equivocation: H(K|C) = H(K) + H(P ) − H(C) (with a proof)
  • Unicity distance, and the average number of spurious keys.
  1. Euclidean Algorithm and Chinese Remainder Theorem
  • Extended Euclidean Algorithm: ri = sia + tib and s 0 = 1, s 1 = 0 , t 0 = 0, t 1 = 1 and si = si− 2 − qi− 1 si− 1 , ti = ti− 2 − qi− 1 ti− 1.
  • Finding the inverse of a in Zn
  • Solving system of congruences xi ≡ ai (mod m)i by x =

∑ i aiMiyi (mod M) where M =

∏ mi, Mi = M/mi, yi = M i− 1 mod mi.

  • Why is the solution to the system unique?
  1. Facts and concepts from number theory and RSA
  • Lagrange Theorem, Fermat Theorem.
  • Order of an element in a group, primitive element, quadratic residue.
  • When b = αi^ is primitive if α is primitive? How to check if α is primitive? How to find a primitive element in Z p∗ (Theorem 5.8).
  • RSA including the fact that eK and dK are inverses of one another.
  1. Primality testing
  • Legendre and Jacobi symbols.
  • Solovay-Strassen Algorithm and the fact that if p is prime then the algorithm returns ”prime”.