Correctness of cryptosystems is in many cases an important prerequisite for trusting security relevant systems. Even cryptosystems with tiny specifications are often hard for humans to understand. It can be difficult to reason about them and to convince oneself that distinct security properties do indeed hold. Even mathematical "proofs" - carried out with paper and pencil - which are intended to show the strength of a cryptosystem with respect to some attacker model have turned out to be error prone. In this paper we address the problem of establishing trusted properties of cryptosystems. We report on proving the security of the ElGamal and Hashed ElGamal encryption schemes within Coq. Security is shown with respect to Real-orRandom ...