user A sends two messages to user B using ElGamal. user Clistens on the line and intercepts both messages, and got thedecryption of the first message. explain well if user C can decryptthe second message as well:
1)user A sends two messages E(m) and E(m'). to encrypt the firstmessage user A used the variable k and to encrypt the second k+5.User C knows that there's a difference of 5 between the k valueschosen. can he recover the second message?
2)user A sends two messages E(m) and E(m'). to encrypt the firstmessage user A used the variable k and to encrypt the second 2k.User C knows that the second k used is two times the first k used.can he recover the second message?
please explain mathematically and elaborate so i can understand andlearn from your answer. thank you very much.