diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-20 21:09:10 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-20 21:09:10 +0000 |
commit | 323dc8764f745fe82e42ab224465f55801a49286 (patch) | |
tree | 0606fcfe1f24d4d12191e67302ce1af2c66786af | |
parent | ec56662ba7b4cfaf1335a88854127fac06f376aa (diff) | |
download | cryptopp-323dc8764f745fe82e42ab224465f55801a49286.tar.gz |
small fixes
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@44 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rw-r--r-- | Readme.txt | 2 | ||||
-rw-r--r-- | datatest.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -244,7 +244,7 @@ History 5.1 - added PSS padding and changed PSSR to track IEEE P1363a draft standard - added blinding for RSA and Rabin to defend against timing attacks - against decryption operations (required API changes for decryption) + on decryption operations (required API changes for decryption) - fixed a bug in CBC and ECB modes with processing non-aligned data - fixed standard conformance bugs in DLIES (DHAES mode) and RW/EMSA2 signature scheme (these fixes are not backwards compatible) diff --git a/datatest.cpp b/datatest.cpp index 5d84c01..50b26fe 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -281,7 +281,7 @@ void TestDigestOrMAC(TestData &v, bool testDigest) bool GetField(std::istream &is, std::string &name, std::string &value) { - name.clear(); + name.resize(0); // GCC workaround: 2.95.3 doesn't have clear() is >> name; if (name.empty()) return false; @@ -295,7 +295,7 @@ bool GetField(std::istream &is, std::string &name, std::string &value) // VC60 workaround: getline bug char buffer[128]; - value.clear(); + value.resize(0); // GCC workaround: 2.95.3 doesn't have clear() bool continueLine; do |