diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-07-29 21:25:48 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-07-29 21:25:48 -0400 |
commit | bf37ccda6d9301a16012f7ed2c2fa20ee8079048 (patch) | |
tree | 09a2a557b37a3f769dbc0c5aab157f4eb524310e /validat7.cpp | |
parent | afd1ff651a7ec4a26d4fe3cf799985540750df88 (diff) | |
download | cryptopp-git-bf37ccda6d9301a16012f7ed2c2fa20ee8079048.tar.gz |
Fix initialization of 'pass' variable
Copy/paste error from https://github.com/weidai11/cryptopp/commit/d51f701e0638
Diffstat (limited to 'validat7.cpp')
-rw-r--r-- | validat7.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/validat7.cpp b/validat7.cpp index f97911bd..a406650d 100644 --- a/validat7.cpp +++ b/validat7.cpp @@ -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;
|