diff --git a/ed25519.h b/ed25519.h index ccc6a37..6d30c0d 100644 --- a/ed25519.h +++ b/ed25519.h @@ -33,8 +33,8 @@ public: std::string getSecretKeyBase64String() const noexcept; private: - std::array m_secret; - std::array m_public; + std::array m_secret {0}; + std::array m_public {0}; }; class Signature { @@ -49,7 +49,7 @@ public: bool operator==(const std::string& base64String) const noexcept; private: - std::shared_ptr> m_data; + std::shared_ptr> m_data {0}; }; //// FUNCTIONS diff --git a/x25519.h b/x25519.h index 012ebab..00d0bdc 100644 --- a/x25519.h +++ b/x25519.h @@ -40,7 +40,7 @@ public: std::string getSecretKeyBase64String() const noexcept; private: - std::array m_publicKey; + std::array m_publicKey {0}; EVP_PKEY_CTX * m_Ctx; EVP_PKEY * m_Pkey; };