Due to two cancellations of my flight, I was trapped in the USA with a lonely X’mas. To cheer me up, I self-learned the lecture notes of 6.875 in MIT, taught by Prof Silvio Micali in 2010. I’m not a crypto person, but it’s never a bad idea to spend a beautiful X’mas with some knowledge I’m not good at.

## Lecture 1-5: Intro

Lectures 1-2 are just some basic number theory. Lectures 3-5 start with two average-case hardness assumptions, the Discrete Logarithm Assumption (DLA) and the Integer Factorization Assumption (IFA). The constraint of “average-case” has been emphasized and will be later compared to the worst-case assumption in lattice. Next comes the details of the RSA trapdoor permutation and the critisisms upon its unsecurity: e.g. RSA might be easier than IFA.

## Lecture 5-8: Goldwasser-Micali Cryptosystem based on QRA

Starting from the end of Lecture 5, the notes start to focus on the Goldwasser-Micali cryptosystem based on the Quadratic Residuosity (QR) Assumption. Lecture 6 proves that solving the QR with a probability of 1/2+e (in average-case) is equivalent to solving it nearly perfectly. The explicit public-key 1-bit cryptosystem adopts a composite n=pq, and the encryption is simply a random residue (or non-residue) according to the message bit. Breaking this cryptosystem will violate the QRA assumption for such n=pq. The multi-bit counterpart is simply the trivial concatenation of 1-bit systems using the same public/private key. If there are two messages to be distinguished by a poly-size circuit family, then it can also break the security of 1-bit system, using hybrid argument analysis.

Notice that the security of multi-bit cryptosystems has been defined in many ways. The polynomial-security assumes that for two messages , the encryption distribution and are polynomial-time indistinguishable; the GM-security states that if some message is randomly chosen from , then any polynomial adversary cannot tell which message it is w.p. better than 1/2; the semantic-security says that for all function over the message , and a message randomly drawn from the distribution, no poly-time circuit family guesses the value of with probability better than , where is the probability of the most frequent message in the distribution. Interestingly, these three definitions are equivalent and GM-security is the one that is often adopted for its simplicity.

## Lecture 9-14: Pseudorandomness

Starting from Lecture 9 the notes have been discussing the pseudorandom generator (PRG). We want the generator to be unpredicted: giving the first bits, the -th cannot be predicted w.p. better than 1/2. Next, lecture 9 proves that if friendship-pairs exist, then PRG exist. Here is a one-way permutation and is the hard-core predicate for : is hard to compute given , but easy given . This PRG is simply the sequence of .

A candidate of the friendship-pair is to let and . Indeed, it is based on the discrete log assumption DLA. The proof is that under DLA, f is a one-way permutation. furthermore, if is not a hard-core predicate, then one can use that subroutine to calculate the principal square root, and then even the discrete log directly. The major difficulty of the proof is to amplify the average success rate of the routine.

In Lecture 11, the notes prove the Yao’s Theorem saying that the next-bit-unpredictability is equivalent to passing all statistical tests: no poly-time algorithm can distinguish between the generated distribution and the uniform distribution. This is again using some hybrid argument. In particular, the reverse-order generation of the random sequence is not necessary; one can directly output .

In Lecture 12, the pseudorandom function family is defined. We are only interested in the PRF as follows:

- can be indexed easily;
- can be calculated efficiently, for all ;
- looks like truly random functions (no poly-time algorithm can distinguish them).

The construction of PRF from PRG is easy. Given a PRG with expansion factor , and define to be the first/second half of , then . This construction is a PRF because of a tree-style hybrid argument, which is ignored here.

Some history and applications of PRF/PRG are mentioned in Lecture 13 and 14, including the fact that if one-way function exists, then PRG exists (and also PRF). Also, with the help of PRG, one can build an (communication) efficient public-key cryptosystem based on the existence of trapdoor permutation (but not a specific number-theory assumption), using the Goldreich-Levin theorem. The PRG gets rid of the random vectors that will be sent in the traditional Goldreich-Levin theorem.

However, this cryptosystem is not computational efficient enough. The Blum-Goldwassar public-key encryption scheme has been studied at the very ending of Lecture 14. Consider the trapdoor function (under IFA) where and are primes congruent to 3 module 4. The least-significant bit of is unpredictable as the hard-core predicate. This enables us to get rid of the Goldreich-Levin theorem and obtain better computational complexity. Details are ignored here.