summaryrefslogtreecommitdiff
path: root/eccrypto.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-04 00:17:37 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-04 00:17:37 +0000
commit572fe07633123ce38abf28c6426356e37aef3a99 (patch)
tree0536d87e504a82920156c239bc5ae6aa43e70ebc /eccrypto.cpp
parent3e8c979ddc194e043567c036321e67c89f847362 (diff)
downloadcryptopp-572fe07633123ce38abf28c6426356e37aef3a99.tar.gz
create DLL version, fix GetNextIV() bug in CTR and OFB modes
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@87 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'eccrypto.cpp')
-rw-r--r--eccrypto.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/eccrypto.cpp b/eccrypto.cpp
index b0042e8..a934534 100644
--- a/eccrypto.cpp
+++ b/eccrypto.cpp
@@ -1,14 +1,19 @@
+// eccrypto.cpp - written and placed in the public domain by Wei Dai
+
#include "pch.h"
+
+#ifndef CRYPTOPP_IMPORTS
+
#include "eccrypto.h"
-#include "ec2n.h"
-#include "ecp.h"
#include "nbtheory.h"
#include "oids.h"
#include "hex.h"
#include "argnames.h"
+#include "ec2n.h"
NAMESPACE_BEGIN(CryptoPP)
+#ifndef NDEBUG
static void ECDSA_TestInstantiations()
{
ECDSA<EC2N>::Signer t1;
@@ -20,6 +25,7 @@ static void ECDSA_TestInstantiations()
ECDH<ECP>::Domain t7;
ECMQV<ECP>::Domain t8;
}
+#endif
// VC60 workaround: complains when these functions are put into an anonymous namespace
static Integer ConvertToInteger(const PolynomialMod2 &x)
@@ -627,13 +633,6 @@ void DL_PrivateKey_EC<EC>::DEREncodeKey(BufferedTransformation &bt) const
privateKey.MessageEnd();
}
-// ******************************************************************
-
-template class DL_GroupParameters_EC<EC2N>;
-template class DL_GroupParameters_EC<ECP>;
-template class DL_PublicKey_EC<EC2N>;
-template class DL_PublicKey_EC<ECP>;
-template class DL_PrivateKey_EC<EC2N>;
-template class DL_PrivateKey_EC<ECP>;
-
NAMESPACE_END
+
+#endif