don't create ECIESx25519 again if key was not changed

This commit is contained in:
orignal 2020-06-05 09:23:50 -04:00
parent 4ae41513ac
commit 55ff6beb7d
2 changed files with 6 additions and 1 deletions

View file

@ -105,6 +105,7 @@ namespace client
i2p::data::CryptoKeyType m_EncryptionKeyType;
std::shared_ptr<i2p::crypto::CryptoKeyDecryptor> m_Decryptor; // standard
std::shared_ptr<i2p::crypto::ECIESX25519AEADRatchetDecryptor> m_ECIESx25519Decryptor;
uint8_t m_ECIESx25519PrivateKey[32];
uint64_t m_LeaseSetExpirationTime;
};