mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-04 21:17:43 +03:00
Avoid redundant KDBX4 test runs
This commit is contained in:
parent
c872e406ed
commit
c94efe6b5c
4 changed files with 99 additions and 27 deletions
|
@ -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}});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue