ElGamal encryption
In cryptography, the ElGamal encryption system is a public-key encryption algorithm based on the Diffie–Hellman key exchange. It was described by Taher Elgamal in 1985. ElGamal encryption is used in the free GNU Privacy Guard software, recent versions of PGP, and other cryptosystems. The Digital Signature Algorithm (DSA) is a variant of the ElGamal signature scheme, which should not be confused with ElGamal encryption. ElGamal encryption can be defined over any cyclic group G , like multiplicative group of integers modulo n if and only if n is 1, 2, 4, p k or 2p k , where p is an odd prime and . Its security depends upon the difficulty of the Decisional Diffie Hellman Problem in G. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
In cryptography, the ElGamal encryption system is a public-key encryption algorithm based on the Diffie–Hellman key exchange. It was described by Taher Elgamal in 1985. ElGamal encryption is used in the free GNU Privacy Guard software, recent versions of PGP, and other cryptosystems. The Digital Signature Algorithm (DSA) is a variant of the ElGamal signature scheme, which should not be confused with ElGamal encryption. ElGamal encryption can be defined over any cyclic group G , like multiplicative group of integers modulo n if and only if n is 1, 2, 4, p k or 2p k , where p is an odd prime and . Its security depends upon the difficulty of the Decisional Diffie Hellman Problem in G . Compute h := g^x . The public key consists of the values (G,q,g,h) . Alice publishes this public key and retains x as her private key, which must be kept secret. Compute s := h^y . This is called the shared secret. Compute c_1 := g^y . Compute c_2 := m \cdot s . Bob sends the ciphertext (c_1,c_2) to Alice. Note that if one knows both the ciphertext (c_1,c_2) and the plaintext m , one can easily find the shared secret s , since c_2 \cdot m^{-1} = s . Therefore, a new y and hence a new s is generated for every message to improve security. For this reason, y is also called an ephemeral key. Compute s := c_1^x . Since c_1 = g^y , c_1^x = g^{xy} = h^y , and thus it is the same shared secret that was used by Bob in encryption. Compute s^{-1} , the inverse of s in the group G . This can be computed in one of several ways. If G is a subgroup of a multiplicative group of integers modulo n , where n is prime, the modular multiplicative inverse can be computed using the extended Euclidean algorithm. An alternative is to compute s^{-1} as c_1^{q-x} . This is the inverse of s because of Lagrange's theorem, since s \cdot c_1^{q-x} = g^{xy} \cdot g^{(q-x)y} = (g^{q})^y = e^y = e . Compute m := c_2 \cdot s^{-1} . This calculation produces the original message m , because c_2 = m \cdot s ; hence c_2 \cdot s^{-1} = (m \cdot s) \cdot s^{-1} = m \cdot e = m . Map m back to the plaintext message M .
Cite this
"ElGamal encryption". 1788528990. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1373205550 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy