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