Fix AuthenticatedKeyAgreementWithRolesValidate messages

This commit is contained in:
Jeffrey Walton 2019-08-03 23:59:25 -04:00
parent 5aac8506bd
commit b3eb4c6a69
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -143,12 +143,12 @@ bool AuthenticatedKeyAgreementWithRolesValidate(AuthenticatedKeyAgreementDomain
std::cout << "passed authenticated key agreement domain parameters validation (initiator)" << std::endl; std::cout << "passed authenticated key agreement domain parameters validation (initiator)" << std::endl;
else else
{ {
std::cout << "FAILED authenticated key agreement domain parameters invalid (recipient)" << std::endl; std::cout << "FAILED authenticated key agreement domain parameters invalid (initiator)" << std::endl;
return false; return false;
} }
if (recipient.GetCryptoParameters().Validate(GlobalRNG(), 3)) if (recipient.GetCryptoParameters().Validate(GlobalRNG(), 3))
std::cout << "passed authenticated key agreement domain parameters validation (initiator)" << std::endl; std::cout << "passed authenticated key agreement domain parameters validation (recipient)" << std::endl;
else else
{ {
std::cout << "FAILED authenticated key agreement domain parameters invalid (recipient)" << std::endl; std::cout << "FAILED authenticated key agreement domain parameters invalid (recipient)" << std::endl;