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

@ -14,10 +14,6 @@ namespace i2p
if (!Load ())
CreateNewRouter ();
Save ();
// we generate LeaseSet at every start-up
CryptoPP::DH dh (i2p::crypto::elgp, i2p::crypto::elgg);
dh.GenerateKeyPair(m_Rnd, m_LeaseSetPrivateKey, m_LeaseSetPublicKey);
}
void RouterContext::CreateNewRouter ()