Fix cross-pollination of other changes to validat2.cpp
parent
b51c3ea0b5
commit
dd22311acd
11
validat2.cpp
11
validat2.cpp
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue