I'm just looking for a bit of clarification on a question I've found on ElGamal:
You want to let people send you messages using ElGamal. You begin by choosing $p =101, g =2$ and $a =12.$
(a) Calculate your public key and then decrypt Bob's message $(B = 54, C = 13)$
I think I've calculated the key but I'm unsure:
$$ d=g^a(mod\space p) $$ $$ d=2^{12}(mod\space 101) $$ $$ d=56 $$ public key = $$(101, 2, 56) $$
If anyone can clarify if this is correct or how I can rectify this. Thanks