Increase Argon2 warning threshold and set parallelism default value to number of available processors

This commit is contained in:
Janek Bevendorff
2018-01-10 00:49:04 +01:00
committed by Jonathan White
parent c51585c279
commit d327c16904
2 changed files with 6 additions and 3 deletions

View File

@@ -21,7 +21,6 @@
#include <argon2.h>
#include "format/KeePass2.h"
#include "crypto/CryptoHash.h"
/**
* KeePass' Argon2 implementation supports all parameters that are defined in the official specification,
@@ -34,7 +33,7 @@ Argon2Kdf::Argon2Kdf()
: Kdf::Kdf(KeePass2::KDF_ARGON2)
, m_version(0x13)
, m_memory(1 << 16)
, m_parallelism(2)
, m_parallelism(static_cast<quint32>(QThread::idealThreadCount()))
{
m_rounds = 1;
}