Commit graph

26586 commits

Author SHA1 Message Date
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
bdd2e35a66 Fix bugs in configuration 2020-10-07 03:42:54 +05:30
Vishnu Mohandas
16b2ff0624 Declutter root folder 2020-10-03 23:28:26 +05:30
Vishnu Mohandas
7f16f88a8f Move services to a separate package 2020-10-03 23:26:18 +05:30
Pushkar Anand
cdccfd3372 Fix crypto bug. 2020-10-03 20:20:10 +05:30
Vishnu Mohandas
ca9e1b49c1 Fix typo in key decryption 2020-10-03 20:11:19 +05:30
Pushkar Anand
ad1e90dfcc Moved libsodium to worker. 2020-10-03 19:51:56 +05:30
Vishnu Mohandas
5a25676dc4 Generate and store public private keypairs on the server 2020-10-03 03:15:26 +05:30
Vishnu Mohandas
deb489df70 Revert endpoint 2020-10-02 18:50:10 +05:30
Vishnu Mohandas
832b0c7e74 Update the computation logic for kek-hash 2020-10-02 18:43:15 +05:30
Vishnu Mohandas
e67710b4b2 Send attributes in the correct format to server 2020-10-02 18:36:46 +05:30
Vishnu Mohandas
ddeb906cbb Update contract for verifying hash 2020-10-02 18:36:16 +05:30
Vishnu Mohandas
1f2b60f997 Fix TODO 2020-10-02 18:24:46 +05:30
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