summaryrefslogtreecommitdiff
path: root/xtr.h
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 /xtr.h
parent7b64ca489a7e1da36b02b4a35d149275914d8268 (diff)
downloadcryptopp-git-b7de164d6251dc066123b59bc15d30c74e920756.tar.gz
Cut-in CRYPTOPP_ASSERT in all remaining header and source files
Diffstat (limited to 'xtr.h')
-rw-r--r--xtr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtr.h b/xtr.h
index 9bb0af4f..40766870 100644
--- a/xtr.h
+++ b/xtr.h
@@ -179,7 +179,7 @@ public:
// a^2 - 2a^p
const Element & SpecialOperation1(const Element &a) const
{
- assert(&a != &result);
+ CRYPTOPP_ASSERT(&a != &result);
result = Square(a);
modp.Reduce(result.c1, a.c2);
modp.Reduce(result.c1, a.c2);
@@ -191,7 +191,7 @@ public:
// x * z - y * z^p
const Element & SpecialOperation2(const Element &x, const Element &y, const Element &z) const
{
- assert(&x != &result && &y != &result && &z != &result);
+ CRYPTOPP_ASSERT(&x != &result && &y != &result && &z != &result);
t = modp.Add(x.c2, y.c2);
result.c1 = modp.Multiply(z.c1, modp.Subtract(y.c1, t));
modp.Accumulate(result.c1, modp.Multiply(z.c2, modp.Subtract(t, x.c1)));