summaryrefslogtreecommitdiff
path: root/rw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rw.cpp')
-rw-r--r--rw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rw.cpp b/rw.cpp
index c1306b3..cdd9f2d 100644
--- a/rw.cpp
+++ b/rw.cpp
@@ -93,7 +93,7 @@ void InvertibleRWFunction::GenerateRandom(RandomNumberGenerator &rng, const Name
if (modulusSize < 16)
throw InvalidArgument("InvertibleRWFunction: specified modulus length is too small");
- const NameValuePairs &primeParam = MakeParametersForTwoPrimesOfEqualSize(modulusSize);
+ AlgorithmParameters primeParam = MakeParametersForTwoPrimesOfEqualSize(modulusSize);
m_p.GenerateRandom(rng, CombinedNameValuePairs(primeParam, MakeParameters("EquivalentTo", 3)("Mod", 8)));
m_q.GenerateRandom(rng, CombinedNameValuePairs(primeParam, MakeParameters("EquivalentTo", 7)("Mod", 8)));