diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-09-10 04:57:48 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-09-10 04:57:48 -0400 |
commit | 894874fe75ce079ad57e9d5e19813193b129152d (patch) | |
tree | fae5a8307351b8200238038f05a32f7e91e8006e /ec2n.cpp | |
parent | 4414b864cf69edc7e142c96fdca53bfa898de539 (diff) | |
download | cryptopp-git-894874fe75ce079ad57e9d5e19813193b129152d.tar.gz |
Whitespace checkin
Diffstat (limited to 'ec2n.cpp')
-rw-r--r-- | ec2n.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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()));
|