aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/Cryptography/CryptoHash.h2
-rw-r--r--src/common/Cryptography/HMAC.h2
-rw-r--r--src/common/Cryptography/SessionKeyGenerator.h4
3 files changed, 5 insertions, 3 deletions
diff --git a/src/common/Cryptography/CryptoHash.h b/src/common/Cryptography/CryptoHash.h
index 8c9825ce2d8..56af9740c04 100644
--- a/src/common/Cryptography/CryptoHash.h
+++ b/src/common/Cryptography/CryptoHash.h
@@ -106,7 +106,7 @@ namespace Trinity::Impl
private:
EVP_MD_CTX* _ctx;
- Digest _digest;
+ Digest _digest = { };
};
}
diff --git a/src/common/Cryptography/HMAC.h b/src/common/Cryptography/HMAC.h
index 18a236ebccd..200955df832 100644
--- a/src/common/Cryptography/HMAC.h
+++ b/src/common/Cryptography/HMAC.h
@@ -118,7 +118,7 @@ namespace Trinity::Impl
Digest const& GetDigest() const { return _digest; }
private:
HMAC_CTX* _ctx;
- Digest _digest;
+ Digest _digest = { };
};
}
diff --git a/src/common/Cryptography/SessionKeyGenerator.h b/src/common/Cryptography/SessionKeyGenerator.h
index af787358981..144ff00ff56 100644
--- a/src/common/Cryptography/SessionKeyGenerator.h
+++ b/src/common/Cryptography/SessionKeyGenerator.h
@@ -53,7 +53,9 @@ class SessionKeyGenerator
}
private:
- typename Hash::Digest o0, o1, o2;
+ typename Hash::Digest o0 = { };
+ typename Hash::Digest o1 = { };
+ typename Hash::Digest o2 = { };
typename Hash::Digest::const_iterator o0it;
};