summaryrefslogtreecommitdiff
path: root/ec2n.cpp
diff options
context:
space:
mode:
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()));