aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-02-19 12:30:20 -0500
committerJack Lloyd <[email protected]>2018-02-19 12:30:20 -0500
commitb300eb0515b2a392793d887435b8ca44a1de7898 (patch)
tree44e6cdf1710f537a53098dad4e03d9caf6e79643 /src/lib/math
parent4dcff1874ad430269bb7d75818b906b34331d919 (diff)
Small fixes
Diffstat (limited to 'src/lib/math')
-rw-r--r--src/lib/math/numbertheory/monty_exp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/math/numbertheory/monty_exp.cpp b/src/lib/math/numbertheory/monty_exp.cpp
index 35f04fc5d..35d4cd668 100644
--- a/src/lib/math/numbertheory/monty_exp.cpp
+++ b/src/lib/math/numbertheory/monty_exp.cpp
@@ -101,7 +101,7 @@ BigInt Montgomery_Exponentation_State::exponentiation(const BigInt& k) const
for(size_t i = exp_nibbles; i > 0; --i)
{
- for(size_t k = 0; k != m_window_bits; ++k)
+ for(size_t j = 0; j != m_window_bits; ++j)
{
bigint_monty_sqr(z, x, m_p.data(), m_p_words, m_mod_prime,
workspace.data());