Use GCRY_MD_FLAG_SECURE in CryptoHash

This commit is contained in:
angelsl 2017-11-13 15:43:38 +08:00 committed by Jonathan White
parent 6a0d05e1ef
commit e5ec585f98
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -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: