Course:Fall 2006 Exercises 1
From CRYPTUTOR
This is the first set of exercises for the Fall 2006 introductory course.
The solutions are due in class on Friday, September 15.
Below, the message space is denoted by
, the key space by
and the ciphertext space by
.
will be the encryption algorithm in a Private-key encryption scheme.
Exercises on Perfect Secrecy of (Private-key) Encryption
- Let
be some set of N elements. Let
. Arrange the elements of
in a circle, and define, for
and
,
to be the element of
which is
places clockwise from
in the circle.
- [5 pts] Show that
yields a perfectly secret one-time encryption scheme.
- [5 pts] Can you think of a set
and a circular ordering for its elements, so that
can be calculated efficiently (i.e., in
time)? For extra credit, can this be extended to work efficiently on all possible circular orderings? Elaborate.
- [5 pts] Note that above,
, and that for any given k, the function
is a permutation. For perfect secrecy, does the former always imply the latter? Can you think of a situation where these conditions do not hold?
- [5 pts] Show that
- [10 pts] Prove that
is perfectly secret if and only if it is SIM-onetime secure.
- [20 pts] Prove that
is perfectly secret, if and only if, for all distributions over the message space
, the ciphertext distribution is the same. That is, for any two distributions
and
, the distributions
and
are identical.
- [15 pts] For
to be perfectly secret, show that we require
.
- Consider a "two-message encryption scheme"
.
- [5 pts] Define perfect secrecy for such an encryption.
- [5 pts] Let
be the set of n-bit strings. Let
, where
is bit-wise xor-ing. Prove that this is not perfectly secret, according to your definition.
- [10 pts] Define perfect simulatability for
. Modify this definition to argue that the only information leaked by the above encryption scheme is
.
- (Extra Credit Problem)Recall the definitions of SIM-onetime security and IND-onetime security. Now consider a modification of IND-onetime, which we will call 3IND-onetime. In this variant, the adversary outputs 3 messages,
, we choose a random
and send an encryption of
. The adversary outputs
, and its advantage is defined now as
.
- Show that if Enc is
-SIM-onetime secure, then it is also
-3IND-onetime secure.
- What is the best
for which you can show that
-IND-onetime security implies
-3IND-onetime security? Show this by assuming there exists a 3IND-onetime adversary with advantage
and use it to construct a IND-onetime adversary with advantage
.
- Does
-3IND-onetime security imply
-SIM-onetime security? If so, then what is the best
you can show? Give proof either way.
- Show that if Enc is
More Exercises on Security Definitions of (Private-key) Encryption
- [10 pts] Consider two distributions
and
over some space
. Show that if
, then there is a boolean function,
on
(i.e.,
) such that
. How large can you make the difference
? (This quantity equals a measure of distance between the two distributions
and
, called the statistical difference.)
- [10 pts] Recall the definitions of IND-CPA and SIM-CPA given in the class. Show that there is an environment in the SIM-CPA definition such that for any given adversary and simulator, the difference
equals the advantage of that adversary in the IND-CPA experiment. With your environment, does it matter how the simulator behaves?

