diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-07-26 16:03:14 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-07-26 16:03:14 -0400 |
commit | b7de164d6251dc066123b59bc15d30c74e920756 (patch) | |
tree | 650e67242386d55616a2038c5cbc7042568ed377 /esign.cpp | |
parent | 7b64ca489a7e1da36b02b4a35d149275914d8268 (diff) | |
download | cryptopp-git-b7de164d6251dc066123b59bc15d30c74e920756.tar.gz |
Cut-in CRYPTOPP_ASSERT in all remaining header and source files
Diffstat (limited to 'esign.cpp')
-rw-r--r-- | esign.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -115,7 +115,7 @@ void InvertibleESIGNFunction::GenerateRandom(RandomNumberGenerator &rng, const N m_n = m_p * m_p * m_q; - assert(m_n.BitCount() == modulusSize); + CRYPTOPP_ASSERT(m_n.BitCount() == modulusSize); } void InvertibleESIGNFunction::BERDecode(BufferedTransformation &bt) @@ -164,7 +164,7 @@ Integer InvertibleESIGNFunction::CalculateRandomizedInverse(RandomNumberGenerato ModularArithmetic modp(m_p); Integer t = modp.Divide(w0 * r % m_p, m_e * re % m_p); Integer s = r + t*pq; - assert(s < m_n); + CRYPTOPP_ASSERT(s < m_n); /* using namespace std; cout << "f = " << x << endl; |