bounds checks

This commit is contained in:
Jeff Becker 2016-07-25 09:57:35 -04:00
parent c90c008f65
commit 4dc9f6948d
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
2 changed files with 12 additions and 7 deletions

View file

@ -133,14 +133,14 @@ namespace data
private:
void CreateSigner ();
void CreateSigner () const;
private:
std::shared_ptr<IdentityEx> m_Public;
uint8_t m_PrivateKey[256];
uint8_t m_SigningPrivateKey[1024]; // assume private key doesn't exceed 1024 bytes
std::unique_ptr<i2p::crypto::Signer> m_Signer;
mutable std::unique_ptr<i2p::crypto::Signer> m_Signer;
};
// kademlia