summaryrefslogtreecommitdiff
path: root/ecp.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 /ecp.cpp
parent7b64ca489a7e1da36b02b4a35d149275914d8268 (diff)
downloadcryptopp-git-b7de164d6251dc066123b59bc15d30c74e920756.tar.gz
Cut-in CRYPTOPP_ASSERT in all remaining header and source files
Diffstat (limited to 'ecp.cpp')
-rw-r--r--ecp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecp.cpp b/ecp.cpp
index 10cff341..f908f5c5 100644
--- a/ecp.cpp
+++ b/ecp.cpp
@@ -139,7 +139,7 @@ void ECP::EncodePoint(byte *encodedPoint, const Point &P, bool compressed) const
{
ArraySink sink(encodedPoint, EncodedPointSize(compressed));
EncodePoint(sink, P, compressed);
- assert(sink.TotalPutLength() == EncodedPointSize(compressed));
+ CRYPTOPP_ASSERT(sink.TotalPutLength() == EncodedPointSize(compressed));
}
ECP::Point ECP::BERDecodePoint(BufferedTransformation &bt) const
@@ -382,7 +382,7 @@ void ECP::SimultaneousMultiply(ECP::Point *results, const ECP::Point &P, const I
for (i=0; i<expCount; i++)
{
- assert(expBegin->NotNegative());
+ CRYPTOPP_ASSERT(expBegin->NotNegative());
exponents.push_back(WindowSlider(*expBegin++, InversionIsFast(), 5));
exponents[i].FindNextWindow();
}