From 93688d2b60fef38b086c75cf26d6628b73b7522b Mon Sep 17 00:00:00 2001 From: acetone Date: Sat, 18 Jun 2022 09:00:23 -0400 Subject: [PATCH] initializing --- ed25519.h | 6 +++--- x25519.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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; };