π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Fixed typo and lint
Neeraj Guptaffde143247e5
diff --git a/mobile/lib/utils/crypto_util.dart b/mobile/lib/utils/crypto_util.dartindex e48ca1587d..d9d515d47e 100644--- a/mobile/lib/utils/crypto_util.dart+++ b/mobile/lib/utils/crypto_util.dart@@ -8,7 +8,6 @@ import 'package:logging/logging.dart';import "package:photos/core/errors.dart";import 'package:photos/models/derived_key_result.dart';import 'package:photos/models/encryption_result.dart';-import "package:photos/utils/device_info.dart";const int encryptionChunkSize = 4 * 1024 * 1024;final int decryptionChunkSize =@@ -18,7 +17,7 @@ const int loginSubKeyLen = 32;const int loginSubKeyId = 1;const String loginSubKeyContext = "loginctx";-const int _keyDerivcationStregth = 1073741824 * 4;+const int _keyDerivationStregth = 1073741824 * 4;Uint8List cryptoSecretboxEasy(Map<String, dynamic> args) {return Sodium.cryptoSecretboxEasy(args["source"], args["nonce"], args["key"]);@@ -410,7 +409,7 @@ class CryptoUtil {Sodium.cryptoPwhashMemlimitModerate; // = 4int opsLimit = Sodium.cryptoPwhashOpslimitSensitive * factor; // = 16if (memLimit * opsLimit != desiredStrength ||- desiredStrength != _keyDerivcationStregth) {+ desiredStrength != _keyDerivationStregth) {throw UnsupportedError("unexpcted values for memLimit $memLimit and opsLimit: $opsLimit or desiredStrength: $desiredStrength",);