aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/datastor.cpp2
-rw-r--r--src/powm_fw.cpp2
-rw-r--r--src/powm_mnt.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/datastor.cpp b/src/datastor.cpp
index 69afd3ce2..c62edcb0a 100644
--- a/src/datastor.cpp
+++ b/src/datastor.cpp
@@ -88,7 +88,7 @@ std::string Data_Store::get1(const std::string& key) const
if(vals.size() > 1)
throw Invalid_State("Data_Store::get1: More than one value for " + key);
- return vals.at(0);
+ return vals[0];
}
/*************************************************
diff --git a/src/powm_fw.cpp b/src/powm_fw.cpp
index 16f9c6623..577f4968d 100644
--- a/src/powm_fw.cpp
+++ b/src/powm_fw.cpp
@@ -83,7 +83,7 @@ BigInt Fixed_Window_Exponentiator::execute() const
u32bit nibble = exp.get_substring(window_bits*(j-1), window_bits);
if(nibble)
- x = reducer.multiply(x, g.at(nibble-1));
+ x = reducer.multiply(x, g[nibble-1]);
}
return x;
}
diff --git a/src/powm_mnt.cpp b/src/powm_mnt.cpp
index c90cb7e20..ad1ac312c 100644
--- a/src/powm_mnt.cpp
+++ b/src/powm_mnt.cpp
@@ -122,7 +122,7 @@ BigInt Montgomery_Exponentiator::execute() const
u32bit nibble = exp.get_substring(window_bits*(j-1), window_bits);
if(nibble)
{
- const BigInt& y = g.at(nibble-1);
+ const BigInt& y = g[nibble-1];
z.clear();
bigint_mul(z.begin(), z.size(), workspace,