summaryrefslogtreecommitdiff
path: root/cryptlib.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 /cryptlib.cpp
parente43f74604744291d3a99b8bfe81d94af4ba6abbd (diff)
downloadcryptopp-git-f278895908e663a6a5a2c1f63e5523c5004f5d20.tar.gz
create DLL version, fix GetNextIV() bug in CTR and OFB modes
Diffstat (limited to 'cryptlib.cpp')
-rw-r--r--cryptlib.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cryptlib.cpp b/cryptlib.cpp
index 5254c85d..1412ab9b 100644
--- a/cryptlib.cpp
+++ b/cryptlib.cpp
@@ -1,6 +1,9 @@
// cryptlib.cpp - written and placed in the public domain by Wei Dai
#include "pch.h"
+
+#ifndef CRYPTOPP_IMPORTS
+
#include "cryptlib.h"
#include "misc.h"
#include "filters.h"
@@ -37,7 +40,7 @@ Algorithm::Algorithm(bool checkSelfTestStatus)
throw SelfTestFailure("Cryptographic algorithms are disabled before the power-up self tests are performed.");
if (GetPowerUpSelfTestStatus() == POWER_UP_SELF_TEST_FAILED)
- throw SelfTestFailure("Cryptographic algorithms are disabled after power-up a self test failed.");
+ throw SelfTestFailure("Cryptographic algorithms are disabled after a power-up self test failed.");
}
}
@@ -691,3 +694,5 @@ void AuthenticatedKeyAgreementDomain::GenerateEphemeralKeyPair(RandomNumberGener
}
NAMESPACE_END
+
+#endif