aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-11-13 14:53:41 -0500
committerJack Lloyd <[email protected]>2015-11-13 14:53:41 -0500
commit309252789ec3d3b29a7cd30f7d3095fe38e02fa2 (patch)
tree3872af6e617a0a1cf04f75ff5a9f899b311d1489
parent71a932d8cd3a10870905c824c202f0f003066056 (diff)
Remove call to abort on a zero point in PointGFp::get_affine_{x,y}
-rw-r--r--src/lib/math/ec_gfp/point_gfp.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/math/ec_gfp/point_gfp.cpp b/src/lib/math/ec_gfp/point_gfp.cpp
index 705b14c52..c81c4ee5a 100644
--- a/src/lib/math/ec_gfp/point_gfp.cpp
+++ b/src/lib/math/ec_gfp/point_gfp.cpp
@@ -449,8 +449,6 @@ PointGFp Blinded_Point_Multiply::blinded_multiply(const BigInt& scalar_in,
BigInt PointGFp::get_affine_x() const
{
if(is_zero())
- abort();
- if(is_zero())
throw Illegal_Transformation("Cannot convert zero point to affine");
BigInt z2 = curve_sqr(m_coord_z);
@@ -463,8 +461,6 @@ BigInt PointGFp::get_affine_x() const
BigInt PointGFp::get_affine_y() const
{
if(is_zero())
- abort();
- if(is_zero())
throw Illegal_Transformation("Cannot convert zero point to affine");
BigInt z3 = curve_mult(m_coord_z, curve_sqr(m_coord_z));