From c33a56765416876d1673df0105f31cdda195ac0a Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 19 Jul 2015 12:04:23 -0400 Subject: [PATCH] Updated comment with TODO to make it easy to locate in the future via grep/find --- eccrypto.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eccrypto.cpp b/eccrypto.cpp index 5ea4e3a9..fe77d2bc 100644 --- a/eccrypto.cpp +++ b/eccrypto.cpp @@ -10,6 +10,7 @@ #include "hex.h" #include "argnames.h" #include "ec2n.h" +#include "misc.h" #if GCC_DIAGNOSTIC_AWARE # pragma GCC diagnostic ignored "-Wunused-function" @@ -687,8 +688,8 @@ void DL_PrivateKey_EC::DEREncodePrivateKey(BufferedTransformation &bt) const { DERSequenceEncoder privateKey(bt); DEREncodeUnsigned(privateKey, 1); // version - // SEC 1 ver 1.0 says privateKey (m_d) has the same length as order of the curve - // this will be changed to order of base point in a future version + // TODO: SEC 1 ver 1.0 says privateKey (m_d) has the same length as order of + // the curve this will be changed to order of base point in a future version this->GetPrivateExponent().DEREncodeAsOctetString(privateKey, this->GetGroupParameters().GetSubgroupOrder().ByteCount()); privateKey.MessageEnd(); }