mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
encrypt message for ECIES router
This commit is contained in:
parent
32fc6482cc
commit
abdf92c084
4 changed files with 55 additions and 29 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue