Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/CryptoHash.cpp')
-rw-r--r--src/crypto/CryptoHash.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crypto/CryptoHash.cpp b/src/crypto/CryptoHash.cpp
index 5c56a3a74..31c0c934e 100644
--- a/src/crypto/CryptoHash.cpp
+++ b/src/crypto/CryptoHash.cpp
@@ -19,6 +19,8 @@
#include <gcrypt.h>
+#include "crypto/Crypto.h"
+
class CryptoHashPrivate
{
public:
@@ -31,6 +33,8 @@ CryptoHash::CryptoHash(CryptoHash::Algorithm algo)
{
Q_D(CryptoHash);
+ Q_ASSERT(Crypto::initalized());
+
int algoGcrypt;
switch (algo) {