aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/numbertheory
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-29 15:15:30 +0000
committerlloyd <[email protected]>2010-10-29 15:15:30 +0000
commit66b163323d39ac5c0be30fd0b1c0fd91b64a55f3 (patch)
treee745b4824105f600ec5452e591a112229bc01478 /src/math/numbertheory
parent89a2e78d2ff2f0266825708a0294b13a4c370a29 (diff)
Make MemoryRegion::set protected, change all callers
Diffstat (limited to 'src/math/numbertheory')
-rw-r--r--src/math/numbertheory/powm_mnt.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/math/numbertheory/powm_mnt.cpp b/src/math/numbertheory/powm_mnt.cpp
index 4f626ac9d..421470364 100644
--- a/src/math/numbertheory/powm_mnt.cpp
+++ b/src/math/numbertheory/powm_mnt.cpp
@@ -41,7 +41,7 @@ void Montgomery_Exponentiator::set_base(const BigInt& base)
&workspace[0],
modulus.data(), mod_words, mod_prime);
- g[0].get_reg().set(&z[0], mod_words + 1);
+ g[0].assign(&z[0], mod_words + 1);
const BigInt& x = g[0];
const size_t x_sig = x.sig_words();
@@ -60,7 +60,7 @@ void Montgomery_Exponentiator::set_base(const BigInt& base)
&workspace[0],
modulus.data(), mod_words, mod_prime);
- g[i].get_reg().set(&z[0], mod_words + 1);
+ g[i].assign(&z[0], mod_words + 1);
}
}
@@ -87,7 +87,7 @@ BigInt Montgomery_Exponentiator::execute() const
&workspace[0],
modulus.data(), mod_words, mod_prime);
- x.get_reg().set(&z[0], mod_words + 1);
+ x.assign(&z[0], mod_words + 1);
}
if(u32bit nibble = exp.get_substring(window_bits*(i-1), window_bits))
@@ -103,7 +103,7 @@ BigInt Montgomery_Exponentiator::execute() const
&workspace[0],
modulus.data(), mod_words, mod_prime);
- x.get_reg().set(&z[0], mod_words + 1);
+ x.assign(&z[0], mod_words + 1);
}
}