summaryrefslogtreecommitdiff
path: root/rsa.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 /rsa.cpp
parente43f74604744291d3a99b8bfe81d94af4ba6abbd (diff)
downloadcryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'rsa.cpp')
-rw-r--r--rsa.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/rsa.cpp b/rsa.cpp
index 76d4aa9a..4ed1ca0f 100644
--- a/rsa.cpp
+++ b/rsa.cpp
@@ -10,15 +10,15 @@
#include "algparam.h"
#include "fips140.h"
-#ifndef NDEBUG
+#if !defined(NDEBUG) && defined(CRYPTOPP_NO_DLL)
#include "pssr.h"
#endif
-#include "oaep.cpp"
-
NAMESPACE_BEGIN(CryptoPP)
-#ifndef NDEBUG
+byte OAEP_P_DEFAULT[1];
+
+#if !defined(NDEBUG) && defined(CRYPTOPP_NO_DLL)
void RSA_TestInstantiations()
{
RSASS<PKCS1v15, SHA>::Verifier x1(1, 1);
@@ -41,7 +41,7 @@ void RSA_TestInstantiations()
}
#endif
-template class OAEP<SHA>;
+#ifndef CRYPTOPP_IMPORTS
OID RSAFunction::GetAlgorithmID() const
{
@@ -278,4 +278,6 @@ void InvertibleRSAFunction::AssignFrom(const NameValuePairs &source)
;
}
+#endif
+
NAMESPACE_END