diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-07-04 00:17:37 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-07-04 00:17:37 +0000 |
commit | f278895908e663a6a5a2c1f63e5523c5004f5d20 (patch) | |
tree | 0536d87e504a82920156c239bc5ae6aa43e70ebc /eccrypto.cpp | |
parent | e43f74604744291d3a99b8bfe81d94af4ba6abbd (diff) | |
download | cryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz |
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'eccrypto.cpp')
-rw-r--r-- | eccrypto.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/eccrypto.cpp b/eccrypto.cpp index b0042e89..a9345349 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 |