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
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue