mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-26 19:30:21 +00:00
Fix AuthenticatedKeyAgreementWithRolesValidate messages
This commit is contained in:
parent
5aac8506bd
commit
b3eb4c6a69
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user