encrypt message for ECIES router

This commit is contained in:
orignal 2020-12-03 19:43:43 -05:00
parent 32fc6482cc
commit abdf92c084
4 changed files with 55 additions and 29 deletions

View file

@ -716,7 +716,7 @@ namespace garlic
{
auto session = std::make_shared<ECIESX25519AEADRatchetSession>(this, false);
session->SetRemoteStaticKey (router->GetIdentity ()->GetEncryptionPublicKey ());
return session->WrapOneTimeMessage (msg);
return session->WrapOneTimeMessage (msg, true);
}
else
{