small fixes

pull/2/head
weidai 2003-03-20 21:09:10 +00:00
parent 6698a18606
commit e48995a6c7
2 changed files with 3 additions and 3 deletions

View File

@ -244,7 +244,7 @@ History
5.1 - added PSS padding and changed PSSR to track IEEE P1363a draft standard 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 - 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 a bug in CBC and ECB modes with processing non-aligned data
- fixed standard conformance bugs in DLIES (DHAES mode) and RW/EMSA2 - fixed standard conformance bugs in DLIES (DHAES mode) and RW/EMSA2
signature scheme (these fixes are not backwards compatible) signature scheme (these fixes are not backwards compatible)

View File

@ -281,7 +281,7 @@ void TestDigestOrMAC(TestData &v, bool testDigest)
bool GetField(std::istream &is, std::string &name, std::string &value) 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; is >> name;
if (name.empty()) if (name.empty())
return false; return false;
@ -295,7 +295,7 @@ bool GetField(std::istream &is, std::string &name, std::string &value)
// VC60 workaround: getline bug // VC60 workaround: getline bug
char buffer[128]; char buffer[128];
value.clear(); value.resize(0); // GCC workaround: 2.95.3 doesn't have clear()
bool continueLine; bool continueLine;
do do