generate non-ElGamal encryption keys pair

This commit is contained in:
orignal 2017-11-02 16:13:10 -04:00
parent 5aa53eee43
commit e634c89995
3 changed files with 44 additions and 20 deletions

View file

@ -709,7 +709,8 @@ namespace client
if (isPublic)
PersistTemporaryKeys ();
else
i2p::crypto::GenerateElGamalKeyPair(m_EncryptionPrivateKey, m_EncryptionPublicKey);
i2p::data::PrivateKeys::GenerateCryptoKeyPair(GetIdentity ()->GetCryptoKeyType (),
m_EncryptionPrivateKey, m_EncryptionPublicKey);
if (isPublic)
LogPrint (eLogInfo, "Destination: Local address ", GetIdentHash().ToBase32 (), " created");
}