diff options
author | lloyd <[email protected]> | 2012-07-31 23:06:51 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-07-31 23:06:51 +0000 |
commit | 943c647e7d049a9b00261bbf34aa1443bca0ab02 (patch) | |
tree | 8720b3ac09169f01ed9fa5a74ed8914eb7afc5b4 /src/math/numbertheory/powm_mnt.cpp | |
parent | 759a5cc81a59c5315144c332aea412213fc58960 (diff) |
Remove the mutable version of BigInt::get_reg
Diffstat (limited to 'src/math/numbertheory/powm_mnt.cpp')
-rw-r--r-- | src/math/numbertheory/powm_mnt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/numbertheory/powm_mnt.cpp b/src/math/numbertheory/powm_mnt.cpp index 39cf690ce..e565d9368 100644 --- a/src/math/numbertheory/powm_mnt.cpp +++ b/src/math/numbertheory/powm_mnt.cpp @@ -151,13 +151,13 @@ BigInt Montgomery_Exponentiator::execute() const } } - x.get_reg().resize(2*m_mod_words+1); + x.grow_to(2*m_mod_words + 1); bigint_monty_redc(&x[0], x.size(), m_modulus.data(), m_mod_words, m_mod_prime, &workspace[0]); - x.get_reg().resize(m_mod_words+1); + x.mask_bits(MP_WORD_BITS * (m_mod_words + 1)); return x; } |