This is a post in a series called the Cosic Guide To Crypto. Our aim is to give quick overviews of some areas of cryptography which we find interesting.
The first post of this series introduced the concept of provable security. The conclusion was that to prove a scheme secure one needs to construct a security reduction. There are mainly two techniques for formally writing a security reduction: game-based and simulation-based proof. The former has been discussed here and the latter is the topic of this post.
We first briefly recall what the security game for the basic notion of IND-CPA looks like :
– The challenger generates a key \(k\)
– The adversary can query an encryption oracle \(O_k\) with \(m\) to obtain \(Enc(k,m)\)
– The adversary chooses two distinct \(m_0,m_1\) and send them to the challenger
– The challenger selects \(b \in \{0,1\}\) at random and send \(Enc(k,m_b)\) to the adversary
– The adversary can still query the oracle \(O_k\), and finally outputs a guess for \(b\).
Now an encryption scheme is said to be IND-CPA only if we can prove that every adversary that can do polynomially many operations (in the size of the security parameter) can NOT do much better than randomly guessing the answer of the game.
But these game-based proofs are not the only options one has to prove security. Indeed, in this blog post we are interested in the simulation paradigm. In this paradigm, the security of a protocol is proved by showing that an adversary can do no more in the real execution of the protocol compared to what he can do in an ideal scenario, secure by definition. To illustrate the difference between the two paradigms we will use Lindell’s example from his tutorial on Simulation [1] . That is we will compare the IND-CPA game-based definition to its equivalent definition of semantic security which is better expressed in the simulation paradigm.
Let us consider the (informal) semantic security definition of Goldwasser and Micali [2] (which they proved to be equivalent to the IND-CPA one):
“Informally, a system is semantically secure if whatever an eavesdropper can compute about the cleartext given the cyphertext, he can also compute without the cyphertext. “
From the definition, we can clearly identify the two worlds. First the real world where the eavesdropper can compute whatever “given the cyphertext”. Second the ideal world where the eavesdropper has to do “without the cyphertext”.
Now that our two worlds are defined, we want to show that they are somehow equivalent in the eyes of the adversary. That is for every possible adversary in the real world, we want to be able to simulate its behaviour in the ideal world. However, an attentive reader would have noticed that while the real world adversary has access to the ciphertext, this information is lacking in the ideal world. This therefore means that if the output of our simulation is indistinguishable from the output of the real adversary, then there must be no information at all that is derived from the ciphertext itself.
In practice to prove the indistinguishability of the two worlds, the goal is to exhibit an ideal world adversary (Simulator) for each real world adversary, such that the output of the Simulator is indistinguishable from the output of the real world adversary. The difficulty of the proof relies in building a Simulator such that if the output distributions are different in the two worlds, we can use the real world adversary as a distinguisher to break one of the scheme’s assumption.
In the semantic security simulation, the Simulator executes the real world adversary on an encryption of e.g. \(0s\) with a random (but correct) key. It is then left to prove that the real world adversary can not distinguish between encryption of the message \(m\) and encryption of \(0s\) of the same length. This is done by proving that being able to distinguish between the two ciphertexts would break assumptions on the encryption scheme.
As pointed out above, the two definitions are equivalent. However the simulation based proof seems intuitively much closer to the informal idea we have about what encryption should provide. Indeed, in the game-based definition it seems as if we had only shown that an adversary can not distinguish between two ciphertexts, whereas in the simulation proof it is clear that having access to an encryption provides you with no more information on the plaintext than not having access to the encryption at all.
In practice, the simulation paradigm is very popular in the context of secure MultiParty Computation (MPC). Very roughly, the ideal world that every MPC protocol tries to emulate is one where all the parties communicate only with a trusted third party. The trusted third party receives the private inputs from the parties and outputs the result of an agreed function on these inputs. The goal is then to build a MPC protocol in the real world, specifying how each party should behave and what they should communicate to each other. To prove the protocol secure, as before, one has to exhibit a Simulator that can only interact with the ideal trusted third party as defined by the ideal functionality to create a convincing (but fake!) real world view for the adversary. That is no adversary should be able to tell if the computation was executed by a trusted third party or via the MPC protocol.
However this blog post only considered the case of standalone simulation, whereas most of recent MPC protocols use the Universal Composability framework from Canetti [3]. The major difference between the standalone and UC models is that the former allows only for sequential composition protocols, whereas the latter allows for concurrent executions. In other words, once a protocol \(\Pi\) is proven to be indistiguishable from its ideal functionality \(\mathcal{F}\) in the UC framework, any protocol that makes call to \(\Pi\) need only to be proven secure in a so-called hybrid model where all calls to \(\Pi\) are replaced by calls to its ideal functionality \(\mathcal{F}\) making proofs much easier to write. For interested readers, the introduction on Universal Composability in Wood’s thesis [4] (Section 2.2) is a very good resource.
REFERENCES
[1] Lindell, Yehuda. “How to simulate it–a tutorial on the simulation proof technique.” Tutorials on the Foundations of Cryptography. Springer, Cham, 2017. 277-346.
[2] Goldwasser, Shafi, and Silvio Micali. “Probabilistic encryption.” Journal of computer and system sciences 28.2 (1984): 270-299.
[3] Canetti, Ran. “Universally composable security: A new paradigm for cryptographic protocols.” Proceedings 42nd IEEE Symposium on Foundations of Computer Science. IEEE, 2001.
[4] Wood, T. N. (2019). Reducing Communication Costs in Multi-Party Computation (Doctoral dissertation, University of Bristol).


