mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
create LeaseSet encryption key per tunnel pool
This commit is contained in:
parent
3313a5af5c
commit
d7084e379f
5 changed files with 20 additions and 17 deletions
|
@ -377,7 +377,7 @@ namespace stream
|
|||
size_t size = 0;
|
||||
memcpy (buf + size, &m_Identity, sizeof (m_Identity));
|
||||
size += sizeof (m_Identity); // destination
|
||||
memcpy (buf + size, i2p::context.GetLeaseSetPublicKey (), 256);
|
||||
memcpy (buf + size, m_Pool->GetEncryptionPublicKey (), 256);
|
||||
size += 256; // encryption key
|
||||
memset (buf + size, 0, 128);
|
||||
size += 128; // signing key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue