diff options
author | Jack Lloyd <[email protected]> | 2018-02-21 15:10:06 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-02-21 15:10:06 -0500 |
commit | bb2352f8861683999fb8a226fb5b79e2f89ab3e8 (patch) | |
tree | 5d41270d62e20c95fbae44c511c92a1b11acef11 /src | |
parent | 961a266b3e4378d46f980090f76c2f31d03b52f8 (diff) |
Small cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/pubkey/ec_group/ec_group.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/pubkey/ec_group/ec_group.cpp b/src/lib/pubkey/ec_group/ec_group.cpp index 26af32a16..102eed6e5 100644 --- a/src/lib/pubkey/ec_group/ec_group.cpp +++ b/src/lib/pubkey/ec_group/ec_group.cpp @@ -55,9 +55,13 @@ class EC_Group_Data final const BigInt& g_x, const BigInt& g_y, const BigInt& order, const BigInt& cofactor) const { - return (this->p() == p && this->a() == a && this->b() == b && - this->order() == order && this->cofactor() == cofactor && - this->g_x() == g_x && this->g_y() == g_y); + return (this->p() == p && + this->a() == a && + this->b() == b && + this->order() == order && + this->cofactor() == cofactor && + this->g_x() == g_x && + this->g_y() == g_y); } const OID& oid() const { return m_oid; } @@ -446,6 +450,7 @@ PointGFp EC_Group::OS2ECP(const uint8_t bits[], size_t len) const PointGFp EC_Group::point(const BigInt& x, const BigInt& y) const { + // TODO: randomize the representation? return PointGFp(data().curve(), x, y); } |