summaryrefslogtreecommitdiff
path: root/esign.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-26 16:03:14 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-26 16:03:14 -0400
commitb7de164d6251dc066123b59bc15d30c74e920756 (patch)
tree650e67242386d55616a2038c5cbc7042568ed377 /esign.cpp
parent7b64ca489a7e1da36b02b4a35d149275914d8268 (diff)
downloadcryptopp-git-b7de164d6251dc066123b59bc15d30c74e920756.tar.gz
Cut-in CRYPTOPP_ASSERT in all remaining header and source files
Diffstat (limited to 'esign.cpp')
-rw-r--r--esign.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/esign.cpp b/esign.cpp
index 8ac050bf..a4764ffa 100644
--- a/esign.cpp
+++ b/esign.cpp
@@ -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;