summaryrefslogtreecommitdiff
path: root/ec2n.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-09-10 04:57:48 -0400
committerJeffrey Walton <noloader@gmail.com>2016-09-10 04:57:48 -0400
commit894874fe75ce079ad57e9d5e19813193b129152d (patch)
treefae5a8307351b8200238038f05a32f7e91e8006e /ec2n.cpp
parent4414b864cf69edc7e142c96fdca53bfa898de539 (diff)
downloadcryptopp-git-894874fe75ce079ad57e9d5e19813193b129152d.tar.gz
Whitespace checkin
Diffstat (limited to 'ec2n.cpp')
-rw-r--r--ec2n.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ec2n.cpp b/ec2n.cpp
index 596cf874..e00b53e7 100644
--- a/ec2n.cpp
+++ b/ec2n.cpp
@@ -62,7 +62,7 @@ bool EC2N::DecodePoint(EC2N::Point &P, BufferedTransformation &bt, size_t encode
return false;
P.identity = false;
- P.x.Decode(bt, m_field->MaxElementByteLength());
+ P.x.Decode(bt, m_field->MaxElementByteLength());
if (P.x.IsZero())
{
@@ -148,14 +148,14 @@ bool EC2N::ValidateParameters(RandomNumberGenerator &rng, unsigned int level) co
if (level >= 1)
pass = pass && m_field->GetModulus().IsIrreducible();
-
+
return pass;
}
bool EC2N::VerifyPoint(const Point &P) const
{
const FieldElement &x = P.x, &y = P.y;
- return P.identity ||
+ return P.identity ||
(x.CoefficientCount() <= m_field->MaxElementBitLength()
&& y.CoefficientCount() <= m_field->MaxElementBitLength()
&& !(((x+m_a)*x*x+m_b-(x+y)*y)%m_field->GetModulus()));