Docsity

Problem Set #6 for CMSC 456 at University of Maryland, Fall 2003 - Prof. Aravind Srinivasa, Assignments of Cryptography and System Security

Toggle sidebar
bg1
University Problem Set #6 CMSC 456
of Maryland Due: 20 Nov 2003 Fall 2003
Homework is due at the start of class, on the date listed above.
0. This problem is a reading exercise, and will not be graded. Read the proof of Theorem 1 in Jonathan Katz’s
Lecture 31.
1. Suppose we are using El-Gamal encryption for messages from some known cyclic group G; recall that to
encrypt a message m∈G, we choose a random r∈ {0,1, . . . , |G| − 1}and send (gr, hrm) as ciphertext.
(Also, gis a randomly chosen generator for G, and is publicly known.) Now suppose the adversary has been
able to see two ciphertexts for the same plaintext M, and that these two ciphertexts are of the form (u, v)
and (u2, w) for some elements u, v, w of G. Show how the adversary can infer the plaintext Mfrom this
information.
2. Consider Theorem 1 in Jonathan Katz’s Lecture 32, on two different notions of security for public-key
cryptosystems. Katz’s Lecture 32, as well as our discussion in class, only prove the theorem for the case
`= 2. Prove the theorem for an arbitrary value of `.
3. (For graduate students, and extra credit for undergraduate students.) Suppose nis composite
and is not a Carmichael number; i.e., there exists some m∈Z∗
nsuch that mn−16≡ 1 mod n. Then, show
that the simple primality test for nshown in class succeeds with probability at least 1/2. In more detail,
suppose we choose an aat random from the set {1,2, . . . , n −1}. We output “composite” if at least one
of the following two conditions hold: (i) gcd(a, n)6= 1, or (ii) an−16≡ 1 mod n. Show that we will output
“composite” with probability at least 1/2.
Hint: Suppose Gis a group. Then, a subset Sof the elements of Gis a subgroup of Gif and only if the
following two conditions hold: (i) ∀a∈S, a−1∈S, and (ii) ∀a, b ∈S, ab ∈S. (The values a−1and ab here
are computed in the group Gas usual.) Then, Lagrange’s Theorem says that if Gis a finite group and Sis
a subgroup of G, then the cardinality of Gis divisible by the cardinality of S. Now, in the given problem,
apply Lagrange’s Theorem to the group G=Z∗
nand to a suitably chosen subgroup S.

Partial preview of the text

Download Problem Set #6 for CMSC 456 at University of Maryland, Fall 2003 - Prof. Aravind Srinivasa and more Assignments Cryptography and System Security in PDF only on Docsity!

University Problem Set #6 CMSC 456 of Maryland Due: 20 Nov 2003 Fall 2003

Homework is due at the start of class, on the date listed above.

  1. This problem is a reading exercise, and will not be graded. Read the proof of Theorem 1 in Jonathan Katz’s Lecture 31.
  2. Suppose we are using El-Gamal encryption for messages from some known cyclic group G; recall that to encrypt a message m ∈ G, we choose a random r ∈ { 0 , 1 ,... , |G| − 1 } and send (gr, hrm) as ciphertext. (Also, g is a randomly chosen generator for G, and is publicly known.) Now suppose the adversary has been able to see two ciphertexts for the same plaintext M , and that these two ciphertexts are of the form (u, v) and (u^2 , w) for some elements u, v, w of G. Show how the adversary can infer the plaintext M from this information.
  3. Consider Theorem 1 in Jonathan Katz’s Lecture 32, on two different notions of security for public-key cryptosystems. Katz’s Lecture 32, as well as our discussion in class, only prove the theorem for the case = 2. Prove the theorem for an arbitrary value of.
  4. (For graduate students, and extra credit for undergraduate students.) Suppose n is composite and is not a Carmichael number; i.e., there exists some m ∈ Z∗ n such that mn−^1 6 ≡ 1 mod n. Then, show that the simple primality test for n shown in class succeeds with probability at least 1/2. In more detail, suppose we choose an a at random from the set { 1 , 2 ,... , n − 1 }. We output “composite” if at least one of the following two conditions hold: (i) gcd(a, n) 6 = 1, or (ii) an−^1 6 ≡ 1 mod n. Show that we will output “composite” with probability at least 1/2. Hint: Suppose G is a group. Then, a subset S of the elements of G is a subgroup of G if and only if the following two conditions hold: (i) ∀a ∈ S, a−^1 ∈ S, and (ii) ∀a, b ∈ S, ab ∈ S. (The values a−^1 and ab here are computed in the group G as usual.) Then, Lagrange’s Theorem says that if G is a finite group and S is a subgroup of G, then the cardinality of G is divisible by the cardinality of S. Now, in the given problem, apply Lagrange’s Theorem to the group G = Z n∗ and to a suitably chosen subgroup S.