create LeaseSet encryption key per tunnel pool

This commit is contained in:
orignal 2014-03-15 22:02:33 -04:00
parent 3313a5af5c
commit d7084e379f
5 changed files with 20 additions and 17 deletions

View file

@ -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