Commit graph

76 commits

Author SHA1 Message Date
vishnukvmd a4396beec4 Add comments about key derivation 2023-02-27 16:28:59 +05:30
vishnukvmd 589281e729 Add comment about key generation 2023-02-27 16:16:02 +05:30
vishnukvmd d3005be29f Merge branch 'main' into refactor_sodium 2023-02-14 11:21:19 +05:30
Neeraj Gupta ce4942c0db
Log mem and ops limit on failure 2023-02-05 01:38:16 +05:30
Neeraj Gupta 37abdca05d
Fix typo in comparision 2023-02-05 01:36:24 +05:30
vishnukvmd 80f36d1bd5 Move all calls to Sodium to CryptoUtil 2023-02-03 10:11:45 +05:30
Neeraj Gupta a9b9ffc736
Use async variante instead of sync 2023-01-07 09:12:56 +05:30
ashilkn 231a4214ae migrated crypto_util.dart to null safety 2022-09-21 18:09:40 +05:30
Neeraj Gupta 8734c94a4e
Merge branch 'master' into rewrite_device_sync 2022-09-20 23:24:47 +05:30
ashilkn 6ebd227538 made use of unused derived_key_results.dart file on crypto_util.dart 2022-09-13 09:54:40 +05:30
ashilkn eb7c1ec837 started incremental migration to null safety 2022-09-07 14:00:09 +05:30
Neeraj Gupta 460dd1203e
Prefer const 2022-07-04 11:33:10 +05:30
vishnukvmd 47505ae102 Execute dart format lib 2022-06-11 13:53:52 +05:30
vishnukvmd 3e306facf5 Apply dart fix for require_trailing_commas 2022-06-11 13:53:18 +05:30
vishnukvmd dd941e6e31 Add file hash to metadata 2021-08-18 17:37:50 +05:30
vishnukvmd 528b7da54e Remove all lengthSync ops 2021-08-09 12:04:42 +05:30
vishnukvmd 1d6fc95593 Remove all writeAsBytesSync ops 2021-08-09 12:04:42 +05:30
vishnukvmd e7dd26c69e Fix lint warnings 2021-07-22 12:21:59 +05:30
Vishnu Mohandas 51b1ef7e30 Move heavy decryption to a separate isolate 2021-05-04 21:13:19 +05:30
Vishnu Mohandas 078421b3b0 Make encrypt function async 2021-05-04 21:02:23 +05:30
Vishnu Mohandas 3f4238bef9 Binary search to find appropriate mem and ops limits 2021-04-02 03:24:12 +05:30
Vishnu Mohandas 5d24c29dd4 Init libsodium 2021-04-02 00:33:55 +05:30
Vishnu Mohandas 8cb7f885b3 Default to sensitive limits for computation and memory for key derivation 2021-03-18 14:57:59 +05:30
Vishnu Mohandas 317bbf8f18 Remove all instances of kekHash 2021-03-18 13:39:02 +05:30
Vishnu Mohandas b6e5e810b3 Move computer initialization to CryptoUtil 2021-01-26 17:16:14 +05:30
Vishnu Mohandas d3d9e2bbf7 Rename passphrase to password 2021-01-05 19:57:02 +05:30
Vishnu Mohandas 51f083d290 Adopt API to update file if already uploaded 2020-11-30 23:15:21 +05:30
Vishnu Mohandas bae5c9bf7d Explicitly state the sync nature of the encryption API 2020-10-11 05:08:22 +05:30
Vishnu Mohandas 86b60fd487 Add API to seal with a user's public key 2020-10-11 04:11:15 +05:30
Vishnu Mohandas 50a67acb75 Use the explicit sync-decrypt API 2020-10-11 04:10:18 +05:30
Vishnu Mohandas bd879263f0 Add functionality to extract a decrypted collection key 2020-10-11 04:08:33 +05:30
Vishnu Mohandas 1330ef07d2 Switch to cryptobox keygen 2020-10-07 05:54:13 +05:30
Vishnu Mohandas 8da3f0c687 Remove more unnecessary models 2020-10-07 04:47:53 +05:30
Vishnu Mohandas 3f5d20027e Remove unnecessary model 2020-10-07 04:42:02 +05:30
Vishnu Mohandas 7f707d187e Refactor crypto util 2020-10-07 04:28:41 +05:30
Vishnu Mohandas 27f019af57 Move to XChaCha for thumbnail and metadata encryption 2020-10-07 04:25:59 +05:30
Vishnu Mohandas 5a25676dc4 Generate and store public private keypairs on the server 2020-10-03 03:15:26 +05:30
Vishnu Mohandas 832b0c7e74 Update the computation logic for kek-hash 2020-10-02 18:43:15 +05:30
Vishnu Mohandas 0daecf3924 Remove unused function 2020-10-01 04:44:20 +05:30
Vishnu Mohandas 1b40d64a20 Move hash verification to a separate isolate 2020-09-30 23:59:58 +05:30
Vishnu Mohandas 71720df54c Compute the hash on a separate isolate 2020-09-30 19:20:00 +05:30
Vishnu Mohandas a4323ad280 Reduce the memlimit for pwhash 2020-09-29 00:34:22 +05:30
Vishnu Mohandas fed7cda7f4 Replace scrypt with libsodium's abstractions 2020-09-29 00:02:53 +05:30
Vishnu Mohandas b06190fbf2 Replace AES with libsodium abstractions 2020-09-28 23:22:43 +05:30
Vishnu Mohandas a7944a3f93 Use sodium to generate random bytes 2020-09-28 23:06:04 +05:30
Vishnu Mohandas a089fd1e3b Remove unused AESCrypt library 2020-09-28 22:37:33 +05:30
Vishnu Mohandas 4de5c56a3f Fix copypastah errors 2020-09-28 21:45:06 +05:30
Vishnu Mohandas f2b10a4168 Move expensive encryption and decryption operations to a separate isolate 2020-09-28 21:24:40 +05:30
Vishnu Mohandas e574a0d8d2 Use Dart's file handling APIs correctly to append to a file 2020-09-26 03:54:33 +05:30
Vishnu Mohandas 05a67773e9 Minor refactor 2020-09-26 03:08:14 +05:30