From e48995a6c708e02e3537f158518d74f152f6d455 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 20 Mar 2003 21:09:10 +0000 Subject: [PATCH] small fixes --- Readme.txt | 2 +- datatest.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Readme.txt b/Readme.txt index c7e1c650..01f325aa 100644 --- a/Readme.txt +++ b/Readme.txt @@ -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 5d84c017..50b26fe2 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