aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/numbertheory/powm_mnt.cpp
diff options
context:
space:
mode:
authorDaniel Seither <[email protected]>2015-06-20 18:27:06 +0200
committerDaniel Seither <[email protected]>2015-06-20 19:05:07 +0200
commitf19604516c0138ffc240388073af2ce0735c48aa (patch)
tree007b800a51542e11dabcc72250d9c5ee2d56d9f2 /src/lib/math/numbertheory/powm_mnt.cpp
parentde51fccc5ad04ca734ee91a829298ee06ee948f4 (diff)
lib/math: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/math/numbertheory/powm_mnt.cpp')
-rw-r--r--src/lib/math/numbertheory/powm_mnt.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/math/numbertheory/powm_mnt.cpp b/src/lib/math/numbertheory/powm_mnt.cpp
index 5e797b195..5c441db3a 100644
--- a/src/lib/math/numbertheory/powm_mnt.cpp
+++ b/src/lib/math/numbertheory/powm_mnt.cpp
@@ -38,7 +38,7 @@ void Montgomery_Exponentiator::set_base(const BigInt& base)
m_g[0].data(), m_g[0].size(), m_g[0].sig_words(),
m_R2_mod.data(), m_R2_mod.size(), m_R2_mod.sig_words(),
m_modulus.data(), m_mod_words, m_mod_prime,
- &workspace[0]);
+ workspace.data());
m_g[0] = z;
@@ -48,7 +48,7 @@ void Montgomery_Exponentiator::set_base(const BigInt& base)
m_g[1].data(), m_g[1].size(), m_g[1].sig_words(),
m_R2_mod.data(), m_R2_mod.size(), m_R2_mod.sig_words(),
m_modulus.data(), m_mod_words, m_mod_prime,
- &workspace[0]);
+ workspace.data());
m_g[1] = z;
@@ -64,7 +64,7 @@ void Montgomery_Exponentiator::set_base(const BigInt& base)
x.data(), x.size(), x_sig,
y.data(), y.size(), y_sig,
m_modulus.data(), m_mod_words, m_mod_prime,
- &workspace[0]);
+ workspace.data());
m_g[i] = z;
}
@@ -91,7 +91,7 @@ BigInt Montgomery_Exponentiator::execute() const
bigint_monty_sqr(z.mutable_data(), z_size,
x.data(), x.size(), x.sig_words(),
m_modulus.data(), m_mod_words, m_mod_prime,
- &workspace[0]);
+ workspace.data());
x = z;
}
@@ -104,7 +104,7 @@ BigInt Montgomery_Exponentiator::execute() const
x.data(), x.size(), x.sig_words(),
y.data(), y.size(), y.sig_words(),
m_modulus.data(), m_mod_words, m_mod_prime,
- &workspace[0]);
+ workspace.data());
x = z;
}
@@ -113,7 +113,7 @@ BigInt Montgomery_Exponentiator::execute() const
bigint_monty_redc(x.mutable_data(),
m_modulus.data(), m_mod_words, m_mod_prime,
- &workspace[0]);
+ workspace.data());
return x;
}