- ElGamal encryption
In
cryptography , the ElGamal encryption system is anasymmetric key encryption algorithm forpublic-key cryptography which is based on theDiffie-Hellman key agreement . It was described byTaher Elgamal in1984 [Taher ElGamal, "A Public-Key Cryptosystem and a Signature Scheme Based on Discrete Logarithms", IEEE Transactions on Information Theory, v. IT-31, n. 4, 1985, pp469–472 "or" CRYPTO 84, pp10–18, Springer-Verlag.] . ElGamal encryption is used in the freeGNU Privacy Guard software, recent versions of PGP, and othercryptosystem s. TheDigital Signature Algorithm is a variant of theElGamal signature scheme , which should not be confused with ElGamal encryption.ElGamal encryption can be defined over any
cyclic group . Its security depends upon the difficulty of a certain problem in related to computingdiscrete logarithm s (see below).The algorithm
ElGamal encryption consists of three components: the key generator, the encryption algorithm, and the decryption algorithm.
The key generator works as follows:
* Alice generates an efficient description of a multiplicative cyclic group of order with generator . See below for a discussion on the required properties of this group.
* Alice chooses a random from .
* Alice computes .
* Alice publishes , along with the description of , as herpublic key . Alice retains as her private key which must be kept secret.The encryption algorithm works as follows: to encrypt a message to Alice under her public key ,
* Bob converts into an element of .
* Bob chooses a random from , then calculates and .
* Bob sends the ciphertext to Alice.The decryption algorithm works as follows: to decrypt a ciphertext with her private key ,
* Alice computes as the plaintext message.
The decryption algorithm produces the intended message, since
:
If the space of possible messages is larger than the size of , then the message can be split into several pieces and each piece can be encrypted independently. Alternately, ElGamal may be used in a
hybrid cryptosystem to improve efficiency on long messages.Security
The security of the ElGamal scheme depends on the properties of the underlying group as well as any padding scheme used on the messages.
If the
computational Diffie-Hellman assumption holds the underlying cyclic group , then the encryption function is one-way"CRYPTUTOR", " [http://crypto.cs.uiuc.edu/wiki/index.php/Elgamal_encryption_scheme Elgamal encryption scheme] "] .If the
decisional Diffie-Hellman assumption (DDH) holds in , thenElGamal achievessemantic security . Semantic security is not implied by the computational Diffie-Hellman assumption aloneM. Abdalla, M. Bellare, P. Rogaway, "DHAES, An encryption scheme based on the Diffie-Hellman Problem" (Appendix A)] . Seedecisional Diffie-Hellman assumption for a discussion of groups where the assumption is believed to hold.ElGamal encryption is unconditionally malleable, and therefore is not secure under
chosen ciphertext attack . For example, given an encryption of some (possibly unknown) message , one can easily construct a valid encryption of the message .To achieve chosen-ciphertext security, the scheme must be further modified, or an appropriate padding scheme must be used. Depending on the modification, the DDH assumption may or may not be necessary.
Other schemes related to ElGamal which achieve security against chosen ciphertext attacks have also been proposed.The
Cramer-Shoup system is secure under chosen ciphertext attack assuming DDH holds for . Its proof does not use therandom oracle model . Another proposed scheme is DHAES, whose proof requires an assumption that is weaker than the DDH assumption.Efficiency
ElGamal encryption is probabilistic, meaning that a single
plaintext can be encrypted to many possible ciphertexts, with the consequence that a general ElGamal encryption produces a 2:1 expansion in size from plaintext to ciphertext.Encryption under ElGamal requires two
exponentiation s; however, these exponentiations are independent of the message and can be computed ahead of time if need be. Decryption only requires one exponentiation (instead of division, exponentiate to ). Unlike in theRSA and Rabin systems, ElGamal decryption "cannot" be sped up via theChinese remainder theorem .ee also
*
ElGamal signature scheme
*Homomorphic encryption References
* cite conference
first = Taher
last = Elgamal
title = A public key cryptosystem and a signature scheme based on discrete logarithms
booktitle = Proceedings of CRYPTO 84 on Advances in cryptology
pages = 10-18
publisher = Springer-Verlag New York, Inc.
date =1985
location = Santa Barbara, California, United States
url = http://groups.csail.mit.edu/cis/crypto/classes/6.857/papers/elgamal.pdf
accessdate = 2008-09-30
* [http://www.cacr.math.uwaterloo.ca/hac/ Handbook of Applied Cryptography] , contains a detailed description of the ElGamal algorithm in [http://www.cacr.math.uwaterloo.ca/hac/about/chap8.pdf Chapter 8] (PDF file).
*Dan Boneh , The Decision Diffie-Hellman Problem, ANTS 1998, pp. 48–63 [http://crypto.stanford.edu/~dabo/abstracts/DDH.html] .
Wikimedia Foundation. 2010.