summaryrefslogtreecommitdiff
path: root/misc.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 /misc.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 'misc.cpp')
-rw-r--r--misc.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/misc.cpp b/misc.cpp
index c193b3f..9430e44 100644
--- a/misc.cpp
+++ b/misc.cpp
@@ -1,19 +1,14 @@
// misc.cpp - written and placed in the public domain by Wei Dai
#include "pch.h"
+
+#ifndef CRYPTOPP_IMPORTS
+
#include "misc.h"
#include "words.h"
NAMESPACE_BEGIN(CryptoPP)
-byte OAEP_P_DEFAULT[1];
-
-template<> void ByteReverse(word16 *, const word16 *, unsigned int);
-template<> void ByteReverse(word32 *, const word32 *, unsigned int);
-#ifdef WORD64_AVAILABLE
-template<> void ByteReverse(word64 *, const word64 *, unsigned int);
-#endif
-
void xorbuf(byte *buf, const byte *mask, unsigned int count)
{
if (((unsigned int)buf | (unsigned int)mask | count) % WORD_SIZE == 0)
@@ -81,3 +76,5 @@ unsigned long Crop(unsigned long value, unsigned int size)
}
NAMESPACE_END
+
+#endif