Fix typo in comparision

This commit is contained in:
Neeraj Gupta 2023-02-05 01:36:24 +05:30
parent cfc656ce13
commit 37abdca05d
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -290,8 +290,8 @@ class CryptoUtil {
int memLimit = Sodium.cryptoPwhashMemlimitSensitive;
int opsLimit = Sodium.cryptoPwhashOpslimitSensitive;
Uint8List key;
while (memLimit > Sodium.cryptoPwhashMemlimitMin &&
opsLimit < Sodium.cryptoPwhashOpslimitMax) {
while (memLimit >= Sodium.cryptoPwhashMemlimitMin &&
opsLimit <= Sodium.cryptoPwhashOpslimitMax) {
try {
key = await deriveKey(password, salt, memLimit, opsLimit);
return DerivedKeyResult(key, memLimit, opsLimit);