aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/numbertheory
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-30 14:34:49 -0500
committerJack Lloyd <[email protected]>2016-12-30 14:34:49 -0500
commit4f8cb1ed243ecb1775fb12744f269101dd5df68b (patch)
treec8c51ab8284bdfb916331c8f48b37d6c235a354b /src/lib/math/numbertheory
parentc25ed34e28323c1e8e300513931ee8e150a099a5 (diff)
Tiny code simplification
Diffstat (limited to 'src/lib/math/numbertheory')
-rw-r--r--src/lib/math/numbertheory/powm_mnt.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/math/numbertheory/powm_mnt.cpp b/src/lib/math/numbertheory/powm_mnt.cpp
index ba7fddef2..ad3038e5d 100644
--- a/src/lib/math/numbertheory/powm_mnt.cpp
+++ b/src/lib/math/numbertheory/powm_mnt.cpp
@@ -88,9 +88,7 @@ BigInt Montgomery_Exponentiator::execute() const
const uint32_t nibble = m_exp.get_substring(m_window_bits*(i-1), m_window_bits);
- const BigInt& y = m_g[nibble];
-
- bigint_monty_mul(z, x, y,
+ bigint_monty_mul(z, x, m_g[nibble],
m_modulus.data(), m_mod_words, m_mod_prime,
workspace.data());