ElGamal Encryption
ElGamal Encryption
Given a cyclic group of order and its generator , the encryption and decryption process for a message is defined as follows.
ElGamal Encryption Process
:
Select a secret key randomly from the range .
Compute the public key as follows:
:
Map the message to an element .
Select a random value from the range .
Compute the shared secret :
Generate the ciphertext as follows:
:
Recover the shared secret (This can only be done by the owner of ):
Retrieve the original message :
Convert back to the message .
References
Last updated