mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
LeaseSet keys
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user