Fix cross-pollination of other changes to validat2.cpp

pull/1/merge
Jeffrey Walton 2015-06-28 23:12:09 -04:00
parent b51c3ea0b5
commit dd22311acd
1 changed files with 4 additions and 15 deletions

View File

@ -518,21 +518,10 @@ bool ValidateRW()
cout << "\nRW validation suite running...\n\n"; cout << "\nRW validation suite running...\n\n";
bool pass=true; bool pass=true;
{ FileSource f("TestData/rw1024.dat", true, new HexDecoder);
FileSource f("TestData/rw1024.dat", true, new HexDecoder); RWSS<PSSR, SHA>::Signer priv(f);
RWSS<PSSR, SHA>::Signer priv(f); RWSS<PSSR, SHA>::Verifier pub(priv);
RWSS<PSSR, SHA>::Verifier pub(priv); pass = pass && SignatureValidate(priv, pub);
pass = pass && SignatureValidate(priv, pub);
}
{
cout << "Turning off blinding..." << endl;
FileSource f("TestData/rw1024.dat", true, new HexDecoder);
RWSS<PSSR, SHA>::Signer priv(f);
priv.AccessKey().SetEnableBlinding(false);
RWSS<PSSR, SHA>::Verifier pub(priv);
pass = pass && SignatureValidate(priv, pub);
}
return pass; return pass;
} }