summaryrefslogtreecommitdiff
path: root/misc.cpp
diff options
context:
space:
mode:
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