LeaseSet keys

This commit is contained in:
orignal 2013-12-12 21:37:58 -05:00
parent e832734d94
commit 7f08f782e0
2 changed files with 8 additions and 1 deletions

View file

@ -13,6 +13,10 @@ 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);
}
const uint8_t * RouterContext::GetSigningPrivateKey () const