Log mem and ops limit on failure
This commit is contained in:
parent
37abdca05d
commit
ce4942c0db
1 changed files with 5 additions and 1 deletions
|
@ -296,7 +296,11 @@ class CryptoUtil {
|
|||
key = await deriveKey(password, salt, memLimit, opsLimit);
|
||||
return DerivedKeyResult(key, memLimit, opsLimit);
|
||||
} catch (e, s) {
|
||||
logger.severe(e, s);
|
||||
logger.severe(
|
||||
"failed to derive memLimit: $memLimit and opsLimit: $opsLimit",
|
||||
e,
|
||||
s,
|
||||
);
|
||||
}
|
||||
memLimit = (memLimit / 2).round();
|
||||
opsLimit = opsLimit * 2;
|
||||
|
|
Loading…
Add table
Reference in a new issue