summaryrefslogtreecommitdiff
path: root/eccrypto.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-19 12:04:23 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-19 12:04:23 -0400
commitc33a56765416876d1673df0105f31cdda195ac0a (patch)
tree82c0d0dd22c77133de8e5bb7d7ae58d145adf308 /eccrypto.cpp
parent7c0c1f57d55315f6912a99e7db4a06e8086a2402 (diff)
downloadcryptopp-git-c33a56765416876d1673df0105f31cdda195ac0a.tar.gz
Updated comment with TODO to make it easy to locate in the future via grep/find
Diffstat (limited to 'eccrypto.cpp')
-rw-r--r--eccrypto.cpp5
1 files 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<EC>::DEREncodePrivateKey(BufferedTransformation &bt) const
{
DERSequenceEncoder privateKey(bt);
DEREncodeUnsigned<word32>(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();
}