From de5f9303ff34ba249b599f131f2e190bf8164f6e Mon Sep 17 00:00:00 2001 From: GabrielTofvesson Date: Mon, 5 Mar 2018 08:02:47 +0100 Subject: [PATCH] Accidentally forgot to dereference the BigInteger pointers in mod_pow() --- XMath/BigInteger.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/XMath/BigInteger.cpp b/XMath/BigInteger.cpp index acf67e5..43a09b3 100644 --- a/XMath/BigInteger.cpp +++ b/XMath/BigInteger.cpp @@ -230,9 +230,9 @@ namespace CryptoCPP { BIGINT_API BigInteger* BigInteger::mod_pow(BigInteger* base, BigInteger* exp, BigInteger* mod) { // Declare new versions that we can manipulate to our heart's content - BigInteger * b = new BigInteger(base); - BigInteger * e = new BigInteger(exp); - BigInteger * m = new BigInteger(mod); + BigInteger * b = new BigInteger(*base); + BigInteger * e = new BigInteger(*exp); + BigInteger * m = new BigInteger(*mod); // Allocate a result BigInteger * res = new BigInteger(1);