From 4e4793cc591e26c788b53c487bee7cab2d377f5e Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 13 Feb 2009 12:18:26 +0000 Subject: port to Sun Studio 12's 64-bit C++ Compiler 5.9 Patch 124864-09 2008/12/16 git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@432 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- rw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rw.cpp') 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))); -- cgit v1.2.1