Commit graph

28122 commits

Author SHA1 Message Date
Vishnu Mohandas
5d4dc2e671 Revert endpoint to staging 2020-10-01 17:21:36 +05:30
Vishnu Mohandas
ff72a22a78 Remove unused crypto utils 2020-10-01 17:18:52 +05:30
Vishnu Mohandas
d7ed746658 Sanitize the hash generated on mobile 2020-10-01 17:18:11 +05:30
Vishnu Mohandas
906e3cfc4a Verify the hash over a worker 2020-10-01 17:17:13 +05:30
Vishnu Mohandas
8b41415408 Use libsodium for key encryption and decryption 2020-10-01 06:59:24 +05:30
Vishnu Mohandas
31106f1eca Update crypto worker to pipe calls via the libsodium util 2020-10-01 06:58:52 +05:30
Vishnu Mohandas
212f8f2ccd Add a util that wraps all libsodium calls 2020-10-01 06:58:21 +05:30
Vishnu Mohandas
0daecf3924 Remove unused function 2020-10-01 04:44:20 +05:30
Vishnu Mohandas
07502e1bfc Add functions to hash and verify hashes using libsodium 2020-10-01 03:07:37 +05:30
Vishnu Mohandas
45033903cb Factor out the decryption logic 2020-10-01 02:59:27 +05:30
Vishnu Mohandas
51afe4d8fc Minor rename 2020-10-01 02:54:40 +05:30
Vishnu Mohandas
3559e68490 Merge crypto workers into one 2020-10-01 02:52:58 +05:30
Vishnu Mohandas
092ef54c71 Upgrade Flutter for iOS 2020-10-01 00:25:07 +05:30
Vishnu Mohandas
0d1473708c Hash KEK instead of the passphrase 2020-10-01 00:01:04 +05:30
Vishnu Mohandas
1b40d64a20 Move hash verification to a separate isolate 2020-09-30 23:59:58 +05:30
Vishnu Mohandas
a9189d74d6 Update flutter_sodium 2020-09-30 22:44:00 +05:30
Vishnu Mohandas
71720df54c Compute the hash on a separate isolate 2020-09-30 19:20:00 +05:30
Vishnu Mohandas
429b71de4a Await for async functions 2020-09-29 00:36:42 +05:30
Vishnu Mohandas
a4323ad280 Reduce the memlimit for pwhash 2020-09-29 00:34:22 +05:30
Vishnu Mohandas
bb85b8f774 Remove unnecessary libraries 2020-09-29 00:04:26 +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
04e2edd4e7 Prevent multiple file download requests 2020-09-28 22:35:53 +05:30
Vishnu Mohandas
f3446a9ed0 Don't prefetch files from server 2020-09-28 21:47:19 +05:30
Vishnu Mohandas
caea7b55fc Remove redundant thirdparty dependency 2020-09-28 21:46:27 +05:30
Vishnu Mohandas
61c80bff3e Minor refactor 2020-09-28 21:46:04 +05:30
Vishnu Mohandas
03fb189396 Add some logging to fileutil 2020-09-28 21:45:21 +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
fc44023887 Use sodium for all base64 to byte conversions 2020-09-28 21:24:14 +05:30
Vishnu Mohandas
2f43477052 Get shit to work on iOS 2020-09-28 00:25:11 +05:30
Vishnu Mohandas
64b61ad6f0 Remove unavailable progress indicator in downgraded Flutter 2020-09-28 00:24:53 +05:30
Vishnu Mohandas
3591e5863e Remove SVGs so that a Flutter downgrade is possible 2020-09-28 00:23:47 +05:30
Vishnu Mohandas
ce308a8e0e
Merge pull request #1 from ente-io/chacha20
Switch to libsodium for decrypting metadata and thumbnails
2020-09-27 22:54:19 +05:30
Pushkar Anand
760a085dfd Integrated Comlink. 2020-09-27 22:48:57 +05:30
Vishnu Mohandas
076c55d89c Replace button type to be compatible with Flutter's stable channel 2020-09-27 20:51:00 +05:30
Pushkar Anand
ecf7bab5aa No package lock please 😬 2020-09-27 18:42:44 +05:30
Vishnu Mohandas
16aa9a9eb6 Revert endpoint to OG staging 2020-09-26 23:15:41 +05:30
Vishnu Mohandas
ab7fd7651a Use sodium to decrypt metadata and thumbnails 2020-09-26 22:46:16 +05:30
Vishnu Mohandas
ba1b21b9fc Add dependency on libsodium-wrapper 2020-09-26 22:45:39 +05:30
Vishnu Mohandas
d58956ea82 Set the standard parser 2020-09-26 18:06:02 +05:30
Vishnu Mohandas
4f1d33e548 Add package-lock 2020-09-26 14:26:14 +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
Vishnu Mohandas
d6e0671fe7 Rename variable 2020-09-26 02:28:19 +05:30
Vishnu Mohandas
bd66a9a309 Simplify encryption code 2020-09-26 02:26:02 +05:30
Vishnu Mohandas
9f6cfebcb1 Ensure file deletion only after read 2020-09-26 01:55:03 +05:30
Vishnu Mohandas
37b7eb1601 Add extra logging to file 2020-09-26 01:54:52 +05:30