Commit Graph

  • 723fdeaa06 crypto: Fix a clippy warning. Damir Jelić 2020-10-08 12:59:10 +02:00
  • 19d513e3c0 crypto: Simplify and test the group session invalidation logic. Damir Jelić 2020-10-08 12:40:42 +02:00
  • 23ac00c8ec crypto: Initial support for group session invalidation. Damir Jelić 2020-10-08 11:16:02 +02:00
  • 4019ebf121 crypto: Fix some clippy warnings. Damir Jelić 2020-10-07 17:56:29 +02:00
  • 220ccfb52b matrix-sdk: Fix the arguments docs for sync_with_callback. Damir Jelić 2020-10-07 15:26:44 +02:00
  • 9a838abd67 crypto: Log when we're not serving a key request because of a missing session. Damir Jelić 2020-10-07 14:22:13 +02:00
  • 17d23eb9e5 matrix-sdk: Add automatic key claiming support. Damir Jelić 2020-10-07 14:07:47 +02:00
  • 8ea0035cd0 crypto: Add the automatic key claim users to the key claim request. Damir Jelić 2020-10-07 14:02:50 +02:00
  • 06b9c71dbc crypto: Refactor out the key share wait queue. Damir Jelić 2020-10-07 12:42:39 +02:00
  • 6a8ac62a51 crypto: Remove an unwrap. Damir Jelić 2020-10-07 11:57:46 +02:00
  • 1e894269c8 crypto: Correctly handle the key share without a session and test it. Damir Jelić 2020-10-07 11:42:27 +02:00
  • 27c6f30e0f Merge branch 'master' into crypto-improvements Damir Jelić 2020-10-06 16:44:11 +02:00
  • bc48674f9f Merge branch 'new-sync-methods' into master Damir Jelić 2020-10-06 16:43:41 +02:00
  • e5f0f64405 crypto: Initial scaffolding for key shares for devices that are missing a session. Damir Jelić 2020-10-06 16:38:42 +02:00
  • 09f4b07fb7 matrix-sdk: Use a specific version for async-std. Damir Jelić 2020-10-06 15:17:45 +02:00
  • 2ffac286ed matrix-sdk: Switch to using an enum for the sync loop callback return value. Damir Jelić 2020-10-06 15:04:43 +02:00
  • 83b48fb53c matrix-sdk: Fix the login example. Damir Jelić 2020-10-06 12:41:21 +02:00
  • f4137c6bba Merge branch 'master' into crypto-improvements Damir Jelić 2020-10-06 12:23:04 +02:00
  • e16b7f9c44 matrix-sdk: Add an example for the login method. Damir Jelić 2020-10-06 12:01:47 +02:00
  • 45953a268c matrix-sdk: Mention that the key import/export methods don't work on WASM. Damir Jelić 2020-10-06 11:41:18 +02:00
  • 84039ad7aa matrix-sdk: Add links from the login method docs to the restore_login ones. Damir Jelić 2020-10-06 11:40:32 +02:00
  • 137fa9619f matrix-sdk: Add the ability to stop the sync loop and rename the sync methods. Damir Jelić 2020-10-06 11:37:29 +02:00
  • e3d24f5c31 crypto: Fix some clippy warnings. Damir Jelić 2020-10-01 16:45:13 +02:00
  • 02c765f903 crypto: Don't mark outbound group sessions automatically as shared. Damir Jelić 2020-10-01 16:31:24 +02:00
  • fc6ff2c78a crytpo: Remove an unneeded map/clone. Damir Jelić 2020-10-01 12:46:09 +02:00
  • bcdcdeb259 Merge branch 'master' into crypto-improvements Damir Jelić 2020-10-01 12:21:45 +02:00
  • 1d8f01ef11 crypto: Remove the third Device variant. Damir Jelić 2020-10-01 12:15:13 +02:00
  • b58d88e0c3 Upgrade ruma Alejandro Domínguez 2020-09-29 17:23:14 +02:00
  • c8ca93c924 crytpo: Let the verification machine hold on to a raw CryptoStore. Damir Jelić 2020-10-01 11:17:27 +02:00
  • d644af7be9 crypto: Remove an unneeded clone. Damir Jelić 2020-10-01 09:56:22 +02:00
  • ff2079da91 crypto: Move the group session handling logic into separate module. Damir Jelić 2020-09-30 15:43:25 +02:00
  • 646f18ae18 crypto: Remove an unused import. Damir Jelić 2020-09-29 17:53:11 +02:00
  • 2b8d4a21a4 crypto: Connect the key request handling to the main state machine. Damir Jelić 2020-09-29 17:40:06 +02:00
  • 78badd9af8 crypto: Use the correct event type when sending out forwarded room keys. Damir Jelić 2020-09-29 17:36:56 +02:00
  • 58aef51770 crypto: Remove an unneeded mutable borrow. Damir Jelić 2020-09-29 14:33:07 +02:00
  • 8fe1eda169 crypto: Test the full key share flow. Damir Jelić 2020-09-29 14:18:03 +02:00
  • 84066d4a76 crypto: Split out the Account into a read only portion and one with effects. Damir Jelić 2020-09-29 12:03:41 +02:00
  • e1c220e2f7 crypto: Test a key share cycle. Damir Jelić 2020-09-29 10:24:54 +02:00
  • 798656dac5 crypto: Allow the key request machine to access the outbound group sessions. Damir Jelić 2020-09-29 10:09:47 +02:00
  • 721c459577 crypto: Collapse an if tree. Damir Jelić 2020-09-28 15:07:57 +02:00
  • 23173c4a1e crypto: Test our key sharing decision logic. Damir Jelić 2020-09-28 14:51:57 +02:00
  • 4a8c5ebab0 crypto: Return an enum that describes why we won't serve a key share request. Damir Jelić 2020-09-28 14:12:08 +02:00
  • e29508938b crypto: More work on the incoming key request handling. Damir Jelić 2020-09-28 13:32:30 +02:00
  • a357536ade crypto: Initial scaffolding for incoming key share handling. Damir Jelić 2020-09-28 09:27:16 +02:00
  • f3be27921c crypto: Move the device trust state logic into the read only device. Damir Jelić 2020-09-24 12:45:23 +02:00
  • 42c4cf2a30 crypto: Test the outgoing requests method instead of accessing the field. Damir Jelić 2020-09-24 12:00:22 +02:00
  • c5bece2d58 crypto: Zeroize and remove the session key copies for forwarded room keys. Damir Jelić 2020-09-24 11:18:01 +02:00
  • 4662ca2e32 crypto: Refactor the one-time key count update logic. Damir Jelić 2020-09-24 11:16:15 +02:00
  • 5a86b067e4 crypto: Add tests for the identity manager. Damir Jelić 2020-09-23 15:45:25 +02:00
  • 9a5345ec77 Merge branch 'aledomu-master' into master Damir Jelić 2020-09-23 13:45:44 +02:00
  • 7c3e751d6e Merge branch 'crypto-improvements' into master Damir Jelić 2020-09-23 11:07:49 +02:00
  • 3070c98d26 Export "unstable-synapse-quirks" feature from ruma Alejandro Domínguez 2020-09-22 21:03:12 +02:00
  • 95e906e0dc crypto: Save the account if the one-time key count updates. Damir Jelić 2020-09-18 20:41:14 +02:00
  • 2e3d30d7b4 crypto: Move the identity/device management logic into a separate struct. Damir Jelić 2020-09-18 20:39:48 +02:00
  • 5b0457dad0 crypto: Remember the users that received the outbound group session. Damir Jelić 2020-09-18 18:55:17 +02:00
  • a183584541 crypto: Test that we correctly check the hash when decrypting attachments. Damir Jelić 2020-09-18 17:49:44 +02:00
  • 562bb5aee3 crypto: Remove some dead key requests code for now. Damir Jelić 2020-09-18 17:26:56 +02:00
  • dea3e4adf4 crypto: Document when a key export may panic. Damir Jelić 2020-09-18 14:04:39 +02:00
  • 5d5d5bb141 crypto: Hook up the key requesting to the main state machine. Damir Jelić 2020-09-18 13:50:13 +02:00
  • c58cf71be1 crypto: Send out key request cancellations once we receive a key. Damir Jelić 2020-09-18 13:45:00 +02:00
  • af4b00195b crypto: Implement the key/value store for the sqlite store. Damir Jelić 2020-09-18 13:42:51 +02:00
  • 41529a6bff base: Don't handle the wildcard case for member events anymore. Damir Jelić 2020-09-17 17:31:17 +02:00
  • 300b03bd9e crypto: Add more test for the outgoing key requests. Damir Jelić 2020-09-17 17:13:42 +02:00
  • a5b195efc7 crypto: Initial tests for the key requests state machine. Damir Jelić 2020-09-17 16:55:33 +02:00
  • 692f9baa0e crypto: Add logic to handle outgoing key requests. Damir Jelić 2020-09-17 16:09:08 +02:00
  • 6b24d91ed9 crypto: Add an initial version of our key request state machine. Damir Jelić 2020-09-17 14:16:43 +02:00
  • 24ce4881c7 crypto: Add a method to save/load arbitrary objects from a CryptoStore. Damir Jelić 2020-09-16 16:03:19 +02:00
  • 849934b180 crypto: Use a constant for the attachment encryption version. Damir Jelić 2020-09-16 12:39:23 +02:00
  • 428b28a985 matrix-sdk: Increase the type length limit for the wasm example. Damir Jelić 2020-09-16 12:28:42 +02:00
  • 95145fae8f matrix-sdk: Remove the example with encrypted uploads. Damir Jelić 2020-09-16 12:09:30 +02:00
  • ae894e0ff6 crypto: Finish up the attachment encryption. Damir Jelić 2020-09-16 12:05:44 +02:00
  • 86d95518be matrix-sdk: Fix the case where the encryption feature is disabled. Damir Jelić 2020-09-15 19:10:26 +02:00
  • c8e459bc55 matrix-sdk: Fix the encryption feature. Damir Jelić 2020-09-15 18:07:00 +02:00
  • 4d431b7c9e matrix-sdk: Test the attachment sending paths. Damir Jelić 2020-09-15 18:06:32 +02:00
  • 890e6cbc73 crypto: Turn an unwrap into a except. Damir Jelić 2020-09-15 17:18:31 +02:00
  • e98960f30b matrix-sdk: Add an image uploading bot to the examples. Damir Jelić 2020-09-15 17:17:28 +02:00
  • c500c06e4b matrix-sdk: Add docs and cleanup the media upload methods. Damir Jelić 2020-09-15 17:16:16 +02:00
  • 3ac3be501f matrix-sdk: Refactor out the check if a room is encrypted. Damir Jelić 2020-09-15 15:02:59 +02:00
  • 3573614640 crypto: Add some TODOs for the key query handling. Damir Jelić 2020-09-15 12:13:35 +02:00
  • a60f60bd7d Merge branch 'master' into encrypted_attachments Damir Jelić 2020-09-15 09:31:46 +02:00
  • a4980e8a04 matrix-sdk: Remove an unneeded lifetime. Damir Jelić 2020-09-14 20:38:53 +02:00
  • b628e6286a crypto: Remove an unused import. Damir Jelić 2020-09-14 20:27:30 +02:00
  • fb47abcc17 Update ruma Jonas Platte 2020-09-12 03:19:22 +02:00
  • c2756a9a92 matrix-sdk: First draft for our upload method. Damir Jelić 2020-09-14 20:07:55 +02:00
  • 2d6882c495 crypto: Use a Read implementation for the attachment encryption as well. Damir Jelić 2020-09-14 20:06:44 +02:00
  • 51f3d90224 crypto: Move the file encryption modules under a submodule. Damir Jelić 2020-09-14 17:06:36 +02:00
  • 1a140ecc2f crypto: Initial support for attachment encryption. Damir Jelić 2020-09-14 16:38:52 +02:00
  • f603696ff4 crypto: Expose the olm machine only if the encryption feature is enabled. Damir Jelić 2020-09-11 17:06:45 +02:00
  • ffd2843b0a matrix-sdk: Expose the import/export keys methods. Damir Jelić 2020-09-11 16:34:39 +02:00
  • 618a58ba34 crypto: Add error handling to the key exports. Damir Jelić 2020-09-10 17:02:36 +02:00
  • 126ac3059b Merge branch 'key_export' into master Damir Jelić 2020-09-10 16:32:41 +02:00
  • 8af18a4df7 crypto: Test the EncryptionSettings conversion. Damir Jelić 2020-09-10 16:21:23 +02:00
  • 7790c3db8f crypto: Fix a bunch of clippy warnings. Damir Jelić 2020-09-10 16:07:28 +02:00
  • e3f4c1849c crypto: Finish up the key export feature. Damir Jelić 2020-09-10 15:54:41 +02:00
  • 848156213b crypto: Add a PartialEq derive for the exported key struct. Damir Jelić 2020-09-10 15:51:39 +02:00
  • 23e953d9cf crypto: Hide some methods that shouldn't be public. Damir Jelić 2020-09-10 15:49:34 +02:00
  • 464e181f66 crypto: Add a method to get all group sessions from the store. Damir Jelić 2020-09-10 14:59:20 +02:00
  • 7bd0e4975b crypto: Store the forwarding chains for group sessions. Damir Jelić 2020-09-09 17:27:10 +02:00
  • 127d4c225b crypto: Change the crypto store so we can save multiple group sessions at once. Damir Jelić 2020-09-09 16:34:18 +02:00
  • 9617d9aac9 crypto: Test the import/export of group sessions. Damir Jelić 2020-09-09 16:10:16 +02:00