diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-07-30 03:51:17 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-07-30 03:51:17 -0400 |
commit | e507a4136e87cebbf59ad61d2ce27e99b294adf1 (patch) | |
tree | 613565fe27b1c7312883409c5d71c5051b8d9d96 /esign.cpp | |
parent | f61577af9da8bd24eb9e246adc1862f18dd8ce9c (diff) | |
download | cryptopp-git-e507a4136e87cebbf59ad61d2ce27e99b294adf1.tar.gz |
Fixed "signed/unsigned" conversion warning when "-DDEBUG" defined
Diffstat (limited to 'esign.cpp')
-rw-r--r-- | esign.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -75,8 +75,8 @@ void ESIGNFunction::AssignFrom(const NameValuePairs &source) void InvertibleESIGNFunction::GenerateRandom(RandomNumberGenerator &rng, const NameValuePairs ¶m) { - 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; } |