From e5ec585f983d17fba5db23fa510776d65bceb9e6 Mon Sep 17 00:00:00 2001 From: angelsl Date: Mon, 13 Nov 2017 15:43:38 +0800 Subject: [PATCH] Use GCRY_MD_FLAG_SECURE in CryptoHash --- src/crypto/CryptoHash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/CryptoHash.cpp b/src/crypto/CryptoHash.cpp index a3ffb648e..907140606 100644 --- a/src/crypto/CryptoHash.cpp +++ b/src/crypto/CryptoHash.cpp @@ -39,7 +39,7 @@ CryptoHash::CryptoHash(CryptoHash::Algorithm algo, bool hmac) Q_ASSERT(Crypto::initalized()); int algoGcrypt = -1; - unsigned int flagsGcrypt = 0; + unsigned int flagsGcrypt = GCRY_MD_FLAG_SECURE; switch (algo) { case CryptoHash::Sha256: