Avoid redundant KDBX4 test runs

This commit is contained in:
Janek Bevendorff 2021-11-13 18:46:05 +01:00
parent c872e406ed
commit c94efe6b5c
4 changed files with 99 additions and 27 deletions

View file

@ -795,13 +795,13 @@ void TestKeePass2Format::testDuplicateAttachments()
}
/**
* @return fast "dummy" KDF
* Fast "dummy" KDF
*/
QSharedPointer<Kdf> TestKeePass2Format::fastKdf(QSharedPointer<Kdf> kdf) const
QSharedPointer<Kdf> fastKdf(QSharedPointer<Kdf> kdf)
{
kdf->setRounds(1);
if (kdf->uuid() == KeePass2::KDF_ARGON2D) {
if (kdf->uuid() == KeePass2::KDF_ARGON2D or kdf->uuid() == KeePass2::KDF_ARGON2ID) {
kdf->processParameters({{KeePass2::KDFPARAM_ARGON2_MEMORY, 1024}, {KeePass2::KDFPARAM_ARGON2_PARALLELISM, 1}});
}