summaryrefslogtreecommitdiff
path: root/ecp.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-07-04 00:17:37 +0000
committerweidai <weidai11@users.noreply.github.com>2003-07-04 00:17:37 +0000
commitf278895908e663a6a5a2c1f63e5523c5004f5d20 (patch)
tree0536d87e504a82920156c239bc5ae6aa43e70ebc /ecp.cpp
parente43f74604744291d3a99b8bfe81d94af4ba6abbd (diff)
downloadcryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'ecp.cpp')
-rw-r--r--ecp.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/ecp.cpp b/ecp.cpp
index cfbad96a..f13ee287 100644
--- a/ecp.cpp
+++ b/ecp.cpp
@@ -1,12 +1,14 @@
// ecp.cpp - written and placed in the public domain by Wei Dai
#include "pch.h"
+
+#ifndef CRYPTOPP_IMPORTS
+
#include "ecp.h"
#include "asn.h"
#include "nbtheory.h"
#include "algebra.cpp"
-#include "eprecomp.cpp"
NAMESPACE_BEGIN(CryptoPP)
@@ -463,15 +465,6 @@ ECP::Point ECP::CascadeScalarMultiply(const Point &P, const Integer &k1, const P
return AbstractGroup<Point>::CascadeScalarMultiply(P, k1, Q, k2);
}
-// ********************************************************
-
-void EcPrecomputation<ECP>::SetCurve(const ECP &ec)
-{
- m_ec.reset(new ECP(ec, true));
- m_ecOriginal = ec;
-}
-
-template class AbstractGroup<ECP::Point>;
-template class DL_FixedBasePrecomputationImpl<ECP::Point>;
-
NAMESPACE_END
+
+#endif