mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
LeaseSet keys
This commit is contained in:
parent
e832734d94
commit
7f08f782e0
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue