aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/elgamal
diff options
context:
space:
mode:
Diffstat (limited to 'src/pubkey/elgamal')
-rw-r--r--src/pubkey/elgamal/elgamal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pubkey/elgamal/elgamal.cpp b/src/pubkey/elgamal/elgamal.cpp
index b2ffe36f3..f55aeaa4c 100644
--- a/src/pubkey/elgamal/elgamal.cpp
+++ b/src/pubkey/elgamal/elgamal.cpp
@@ -119,7 +119,7 @@ ElGamal_Decryption_Operation::ElGamal_Decryption_Operation(const ElGamal_Private
mod_p = Modular_Reducer(p);
BigInt k = Blinder::choose_nonce(key.get_x(), p);
- blinder = Blinder(k, power_mod(k, key.get_x(), p), p);
+ blinder = Blinder(k, powermod_x_p(k), p);
}
SecureVector<byte>