Fix initialization of 'pass' variable
Copy/paste error from https://github.com/weidai11/cryptopp/commit/d51f701e0638pull/696/head
parent
afd1ff651a
commit
bf37ccda6d
|
|
@ -171,7 +171,6 @@ bool ValidateAll(bool thorough)
|
|||
pass=ValidateXTR_DH() && pass;
|
||||
pass=ValidateRabin() && pass;
|
||||
pass=ValidateRW() && pass;
|
||||
// pass=ValidateBlumGoldwasser() && pass;
|
||||
pass=ValidateECP() && pass;
|
||||
pass=ValidateEC2N() && pass;
|
||||
pass=ValidateECDSA() && pass;
|
||||
|
|
|
|||
|
|
@ -314,7 +314,7 @@ bool ValidateECP_Agreement()
|
|||
{
|
||||
ECDH<ECP>::Domain ecdhc(ASN1::secp192r1());
|
||||
ECMQV<ECP>::Domain ecmqvc(ASN1::secp192r1());
|
||||
bool pass = SimpleKeyAgreementValidate(ecdhc) && pass;
|
||||
bool pass = SimpleKeyAgreementValidate(ecdhc);
|
||||
pass = AuthenticatedKeyAgreementValidate(ecmqvc) && pass;
|
||||
|
||||
std::cout << "Turning on point compression..." << std::endl;
|
||||
|
|
@ -330,7 +330,7 @@ bool ValidateEC2N_Agreement()
|
|||
{
|
||||
ECDH<EC2N>::Domain ecdhc(ASN1::sect193r1());
|
||||
ECMQV<EC2N>::Domain ecmqvc(ASN1::sect193r1());
|
||||
bool pass = SimpleKeyAgreementValidate(ecdhc) && pass;
|
||||
bool pass = SimpleKeyAgreementValidate(ecdhc);
|
||||
pass = AuthenticatedKeyAgreementValidate(ecmqvc) && pass;
|
||||
|
||||
std::cout << "Turning on point compression..." << std::endl;
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ bool ValidateECP_Encrypt()
|
|||
|
||||
cpub.AccessKey().Precompute();
|
||||
cpriv.AccessKey().Precompute();
|
||||
bool pass = CryptoSystemValidate(cpriv, cpub) && pass;
|
||||
bool pass = CryptoSystemValidate(cpriv, cpub);
|
||||
|
||||
std::cout << "Turning on point compression..." << std::endl;
|
||||
cpriv.AccessKey().AccessGroupParameters().SetPointCompression(true);
|
||||
|
|
@ -148,7 +148,7 @@ bool ValidateEC2N_Encrypt()
|
|||
cpriv.AccessMaterial().Save(bq);
|
||||
cpub.AccessKey().AccessGroupParameters().SetEncodeAsOID(true);
|
||||
cpub.AccessMaterial().Save(bq);
|
||||
bool pass = CryptoSystemValidate(cpriv, cpub) && pass;
|
||||
bool pass = CryptoSystemValidate(cpriv, cpub);
|
||||
|
||||
std::cout << "Turning on point compression..." << std::endl;
|
||||
cpriv.AccessKey().AccessGroupParameters().SetPointCompression(true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue