Is the private key static or variable key in the elgamal algorithm? I read about elgamal algorithm it work like the follow steps

Bashir chooses a large random prime p and a primitive root α modulo p.
Bashir then chooses a random integer a with 2 ≤ a &lt; p - 1 and computes α^a  mod p.
Bashir’s public key is (p,α,α^a) and his private session key is a.

Enciphering stage consists of the following steps:

Amina obtains Bashir’s public key (p,α,α^a).
She chooses a random natural number b &lt; p - 1.
She computes α^b  mod p and mα^ab  mod p.
Amina then sends the cipher text c = (α^b,mα^ab) to Bashir.

Deciphering stage consists of the following steps:

Bashir uses his private key to compute (α^b )^(-a)  mod p.

Then he deciphers m by computing (α^b )^(-a)  .mα^ab  mod p.
I understood this algorithm but I have Wondered simple


Imagine that we have a message consists of four parts (block data) and want Amina encrypted and sent to Bashir.
Is Amina used the same Private Key (b) Of four parts or generate a new private key for each part of the message During the session encryption.
I never thought Alice and Bob would get international counterparts. Anyway, in reading your question I've spotted some issues.


Bashir generates a public and a private key. The private key you call a private session key, which is a bit confusing and may lead to errors like the one below.
In order for Amina to encrypt something for Bashir, she has to use Bashir's public key and also generate another value, (b), which is called the ephemeral key  or session key, hence the confusion I mention above.


To answer your question: Amina has to generate a new ephemeral key (b) for each message. If she uses the same key for all messages, and two messages happen to be the same, the corresponding ciphertexts will be the same as well. Moreover if someone gets his hands  on a plaintext, he can figure out the ephemeral key and seriously compromise all the messages encrypted with the same ephemeral key. Therefore Amina must generate a new ephemeral key every time.