From 1eddb5edfc84af976d80af9a5cc785f809ebd253 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 5 Mar 2010 04:37:42 +0000 Subject: Clarify exception text on get_affine when point is zero --- src/math/numbertheory/point_gfp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/math/numbertheory/point_gfp.cpp b/src/math/numbertheory/point_gfp.cpp index ba878f17f..db422c8aa 100644 --- a/src/math/numbertheory/point_gfp.cpp +++ b/src/math/numbertheory/point_gfp.cpp @@ -202,7 +202,7 @@ void PointGFp::mult2() BigInt PointGFp::get_affine_x() const { if(is_zero()) - throw Illegal_Transformation("cannot convert to affine"); + throw Illegal_Transformation("Cannot convert zero point to affine"); const Modular_Reducer& mod_p = curve.mod_p(); @@ -213,7 +213,7 @@ BigInt PointGFp::get_affine_x() const BigInt PointGFp::get_affine_y() const { if(is_zero()) - throw Illegal_Transformation("cannot convert to affine"); + throw Illegal_Transformation("Cannot convert zero point to affine"); const Modular_Reducer& mod_p = curve.mod_p(); -- cgit v1.2.3