summaryrefslogtreecommitdiff
path: root/esign.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-30 03:51:17 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-30 03:51:17 -0400
commite507a4136e87cebbf59ad61d2ce27e99b294adf1 (patch)
tree613565fe27b1c7312883409c5d71c5051b8d9d96 /esign.cpp
parentf61577af9da8bd24eb9e246adc1862f18dd8ce9c (diff)
downloadcryptopp-git-e507a4136e87cebbf59ad61d2ce27e99b294adf1.tar.gz
Fixed "signed/unsigned" conversion warning when "-DDEBUG" defined
Diffstat (limited to 'esign.cpp')
-rw-r--r--esign.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/esign.cpp b/esign.cpp
index a4764ffa..1c3295a7 100644
--- a/esign.cpp
+++ b/esign.cpp
@@ -75,8 +75,8 @@ void ESIGNFunction::AssignFrom(const NameValuePairs &source)
void InvertibleESIGNFunction::GenerateRandom(RandomNumberGenerator &rng, const NameValuePairs &param)
{
- int modulusSize = 1023*2;
- param.GetIntValue("ModulusSize", modulusSize) || param.GetIntValue("KeySize", modulusSize);
+ unsigned int modulusSize = 1023*2;
+ param.GetAsUIntValue("ModulusSize", modulusSize) || param.GetAsUIntValue("KeySize", modulusSize);
if (modulusSize < 24)
throw InvalidArgument("InvertibleESIGNFunction: specified modulus size is too small");
@@ -167,14 +167,14 @@ Integer InvertibleESIGNFunction::CalculateRandomizedInverse(RandomNumberGenerato
CRYPTOPP_ASSERT(s < m_n);
/*
using namespace std;
- cout << "f = " << x << endl;
- cout << "r = " << r << endl;
- cout << "z = " << z << endl;
- cout << "a = " << a << endl;
- cout << "w0 = " << w0 << endl;
- cout << "w1 = " << w1 << endl;
- cout << "t = " << t << endl;
- cout << "s = " << s << endl;
+ std::cout << "f = " << x << std::endl;
+ std::cout << "r = " << r << std::endl;
+ std::cout << "z = " << z << std::endl;
+ std::cout << "a = " << a << std::endl;
+ std::cout << "w0 = " << w0 << std::endl;
+ std::cout << "w1 = " << w1 << std::endl;
+ std::cout << "t = " << t << std::endl;
+ std::cout << "s = " << s << std::endl;
*/
return s;
}