The Mathematics of ElGamal
Let’s learn the basic mathematics behind ElGamal.
We'll cover the following
The version of the ElGamal cryptosystem also relies on modular arithmetic.
ElGamal public keys
Recall that each ElGamal public key involves three numbers. The first is a prime , while the second number has the special property of a primitive element. We’ll now explain the significance of this.
Primitive elements
Let be a prime. A number between 1 and is said to be primitive (or is a primitive element) modulo if the numbers:
are all different. If this is the case, since there are of them, they must consist of in some order.
Get hands-on with 1400+ tech skills courses.