diff options
author | Jack Lloyd <[email protected]> | 2018-12-01 12:52:20 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-12-01 12:52:20 -0500 |
commit | 5cc1b897edf52a2037004bae28291c67c966c320 (patch) | |
tree | 0d7f434d85536fdf8f7f1f512bc2b9730570a128 /src/lib/pubkey/ec_group | |
parent | 0d64fbfce766ab6940fe0955f2f79b914e1b1111 (diff) |
No need to check x when checking if a point is at infinity
I'm not sure why this was here.
Diffstat (limited to 'src/lib/pubkey/ec_group')
-rw-r--r-- | src/lib/pubkey/ec_group/point_gfp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/pubkey/ec_group/point_gfp.h b/src/lib/pubkey/ec_group/point_gfp.h index 222b5f474..aa8a7d7bc 100644 --- a/src/lib/pubkey/ec_group/point_gfp.h +++ b/src/lib/pubkey/ec_group/point_gfp.h @@ -180,8 +180,7 @@ class BOTAN_PUBLIC_API(2,0) PointGFp final * Is this the point at infinity? * @result true, if this point is at infinity, false otherwise. */ - bool is_zero() const - { return (m_coord_x.is_zero() && m_coord_z.is_zero()); } + bool is_zero() const { return m_coord_z.is_zero(); } /** * Checks whether the point is to be found on the underlying |