Commit Graph

  • 7aea6160c3 Flatten nested match for less indentation Jonas Platte 2020-07-25 02:31:52 +02:00
  • ca88539ec4 Upgrade ruma Jonas Platte 2020-07-25 02:23:10 +02:00
  • 670755bfce crypto: Start checking and cancelling our SAS flows. Damir Jelić 2020-07-24 17:51:20 +02:00
  • 46c1657643 crypto: Fix some clippy warnings. Damir Jelić 2020-07-24 16:04:47 +02:00
  • 9ac1417292 crypto: Add a higher level simple and threadsafe SAS object. Damir Jelić 2020-07-24 15:49:00 +02:00
  • de94b903d6 crypto: Rename the Sas struct. Damir Jelić 2020-07-24 11:32:38 +02:00
  • 2f28976694 crypto: Make the Sas struct thread safe. Damir Jelić 2020-07-24 11:26:45 +02:00
  • 8ff8ea1342 crypto: Add docs for the SAS structs and methods. Damir Jelić 2020-07-23 17:25:57 +02:00
  • a1edef0ed5 crypto: Fix some clippy warnings. Damir Jelić 2020-07-23 14:47:47 +02:00
  • ee51ed78be crypto: Allow users to check the SAS even after a mac event was received. Damir Jelić 2020-07-23 14:35:29 +02:00
  • 2729f01e0f crypto: Move the emoji/decimal sas calculation out of the Sas object. Damir Jelić 2020-07-23 14:26:50 +02:00
  • e6730a7007 crypto: More SAS refactoring. Damir Jelić 2020-07-23 14:14:29 +02:00
  • 6fd852d573 crypto: Refactor out some common SAS methods. Damir Jelić 2020-07-23 14:02:07 +02:00
  • 7f2b268a59 Merge branch 'master' into sas-verification Damir Jelić 2020-07-23 13:43:01 +02:00
  • bb9adea5de crypto: Implement the whole SAS flow. Damir Jelić 2020-07-23 13:41:57 +02:00
  • b1ae5534a1 crypto: Hold a copy of the account to get the ed25519 key when doing SAS. Damir Jelić 2020-07-23 11:19:19 +02:00
  • 9214f01185 cyrpto: Fill out the method to get the MacEventContent. Damir Jelić 2020-07-23 11:08:09 +02:00
  • c35f73473e crypto: Add a copyright header to the sas file. Damir Jelić 2020-07-23 09:21:11 +02:00
  • bf54b17a2f Upgrade ruma Jonas Platte 2020-07-22 20:43:47 +02:00
  • 4ce26f4fa0 crypto: Add support to get the SAS emoji out of a verification. Damir Jelić 2020-07-22 16:41:16 +02:00
  • cdcbcdfab3 crypto: Add support to display the decimal SAS value. Damir Jelić 2020-07-22 15:11:34 +02:00
  • 7a2d5c30db crypto: More Sas states and add an initial test. Damir Jelić 2020-07-22 13:43:11 +02:00
  • a7bc1a95d3 device: Add a method to create a Device from an Account. Damir Jelić 2020-07-22 13:41:49 +02:00
  • 4fa58bfaac crypto: Add getters for the user and device id in the account. Damir Jelić 2020-07-22 13:40:47 +02:00
  • 7c92d91c04 crypto: Use a patched olm-rs for now. Damir Jelić 2020-07-22 11:39:30 +02:00
  • e612326714 Merge branch 'master' into sas-verification Damir Jelić 2020-07-22 11:18:26 +02:00
  • 9ef784d665 crypto: Simplify the OlmMachine -> Device conversion. Damir Jelić 2020-07-22 09:27:43 +02:00
  • 2481fbbd27 crypto: Store the device signatures with the devices as well. Damir Jelić 2020-07-21 17:33:47 +02:00
  • a9d645cbcd crypto: Rewrite the device keys fetching in the SQLiteStore using filter_map. Damir Jelić 2020-07-21 16:28:41 +02:00
  • 578c927e58 crypto: Simplify the share_group_session method. Damir Jelić 2020-07-21 14:13:10 +02:00
  • 24baf1fe0f crypto: More doc fixes. Damir Jelić 2020-07-21 13:04:51 +02:00
  • 861c07d5ce cyrpto: Fix the docs for the Session encrypt method. Damir Jelić 2020-07-21 12:59:15 +02:00
  • 451d902604 crypto: Allow that many arguments on the from_pickle session method. Damir Jelić 2020-07-21 12:57:31 +02:00
  • c3f00c96f8 crypto: Don't require the account to be passed when encrypting. Damir Jelić 2020-07-21 12:46:06 +02:00
  • e50cf39a17 crypto: Store a copy of the user_id/device_id and identity keys in sessions. Damir Jelić 2020-07-21 12:40:23 +02:00
  • 3f1439fe28 crypto: Move the olm encryption logic into the Session struct. Damir Jelić 2020-07-21 12:03:05 +02:00
  • 3d6872607e crypto: Move the m.room_key content creation into the outbound group session. Damir Jelić 2020-07-21 11:12:20 +02:00
  • fe33430e9b crypto: Use DeviceId instead of str everywhere. Damir Jelić 2020-07-21 10:48:15 +02:00
  • b22324b305 crypto: Split out the olm module into separate files. Damir Jelić 2020-07-21 10:38:14 +02:00
  • 037d62b165 matrix-sdk-crypto: Remove map clone from user_devices Devin R 2020-07-20 08:10:42 -04:00
  • 8c39db002b Remove inaccurate comment about DeviceId Devin R 2020-07-17 21:11:23 -04:00
  • e27b6fb51e matrix-sdk-crypto: Fix map_clone clippy warning Devin R 2020-07-17 15:43:06 -04:00
  • e4f94cbfec Remove FullOrRedacted use ruma::AnyPossiblyRedacted event enum Devin R 2020-07-17 21:06:51 -04:00
  • 807435c043 Updates DeviceId to be Box<DeviceId> Devin R 2020-07-18 08:51:19 -04:00
  • 71f2a042c2 Rename Stub -> Sync for all ruma events Devin R 2020-07-18 08:37:43 -04:00
  • 2e8fc3e232 matrix-sdk-base: Integrate redacted events into message queue Devin R 2020-07-11 21:12:40 -04:00
  • d273786d83 matrix-sdk: Bump our dependencies. Damir Jelić 2020-07-17 10:01:22 +02:00
  • 7ddc785a9a Merge branch 'timeout' Damir Jelić 2020-07-17 09:59:21 +02:00
  • 3e23affc9e Merge branch 'encombhat-master' Damir Jelić 2020-07-17 09:41:29 +02:00
  • f2163164bf Wasm fix Stephen 2020-07-16 20:53:09 -03:00
  • 44dfbd2fa6 Fix Stephen 2020-07-16 20:21:34 -03:00
  • 2f99d0de59 Bugfix Stephen 2020-07-16 20:06:26 -03:00
  • 7a72949613 Client::sync_forever(): Add filter in next iteration. Black Hat 2020-07-16 15:55:55 -07:00
  • b0241e51a3 Fixed formatting Stephen 2020-07-16 18:40:52 -03:00
  • c5ea4fde35 HTTP timeout Stephen 2020-07-16 18:16:30 -03:00
  • cc4ae3db1e Client::SyncSettings: Include sync filter Black Hat 2020-07-16 06:13:35 -07:00
  • a5c5f5a7b1 Revert "Client::sync(): expose sync filter" Black Hat 2020-07-16 06:04:26 -07:00
  • 7c46953805 travis: Don't allow failures for Windows. Damir Jelić 2020-07-16 14:23:36 +02:00
  • 2d83c40626 travis: Test the base client on Windows as well. Damir Jelić 2020-07-16 13:45:37 +02:00
  • d75101d042 travis: Run the tests on Windows. Damir Jelić 2020-07-16 13:11:30 +02:00
  • 04bb65f43e travis: Don't test encyrption support on Windows for now. Damir Jelić 2020-07-16 12:46:10 +02:00
  • c1ffed4fc9 base: Sanitize the room id for the path of the state store. Damir Jelić 2020-07-16 12:44:07 +02:00
  • 0542e3d83d Client::sync(): expose sync filter Black Hat 2020-07-16 03:49:46 -07:00
  • 2d955027e1 travis: Don't set the linux version. Damir Jelić 2020-07-15 16:08:21 +02:00
  • 38166135dc travis: Add a clippy stage. Damir Jelić 2020-07-15 15:59:04 +02:00
  • 5bebe1d434 crypto: Clippy fixes for our tests. Damir Jelić 2020-07-15 15:58:36 +02:00
  • a2a87b9fff matrix-sdk: Fix a bunch of clippy warnings. Damir Jelić 2020-07-15 15:53:17 +02:00
  • 497b973eb5 travis: Test newer macOS versions. Damir Jelić 2020-07-06 10:17:30 +02:00
  • de1988265d crypto: Move the outbound session creation logic into the account. Damir Jelić 2020-07-15 15:39:56 +02:00
  • 6cced25ae1 travis: Don't allow failures on the wasm target. Damir Jelić 2020-07-15 14:13:43 +02:00
  • 4e40c13b81 travis: Fix the minimal build. Damir Jelić 2020-07-15 14:05:52 +02:00
  • bf152df322 matrix-sdk: Hide some tracing imports behind the encryption flag. Damir Jelić 2020-07-15 14:05:22 +02:00
  • 3315cf5bc6 travis: Add a build that doesn't use any of the features. Damir Jelić 2020-07-15 13:23:28 +02:00
  • 204279c575 matrix-sdk: Don't hide the tracing import behind the encryption feature. Damir Jelić 2020-07-15 13:19:56 +02:00
  • 83806b42e9 crypto: Remove a stale comment about clearing private keys from events. Damir Jelić 2020-07-15 13:07:48 +02:00
  • fa0a22b090 Merge branch 'dkasak-master' Damir Jelić 2020-07-15 12:52:25 +02:00
  • bce7fe0217 Equivalence class -> equivalence set. Denis Kasak 2020-07-15 11:58:52 +02:00
  • 1fd21ee206 Fix docstrings regarding return value related to disambiguation. Denis Kasak 2020-07-15 11:54:30 +02:00
  • 8a4a4140b3 Remove stale comment. Denis Kasak 2020-07-15 11:22:47 +02:00
  • 62943f055d Rewrap docstrings and comments to 80 chars. Denis Kasak 2020-07-15 11:21:01 +02:00
  • ea149ebd8e Update docstring for disambiguation_updates. Denis Kasak 2020-07-15 11:16:13 +02:00
  • 32737a5517 Use match instead of if-let in sync_forever. Denis Kasak 2020-07-15 09:43:58 +02:00
  • 1691a26163 crypto: Add initial Sas scaffolding. Damir Jelić 2020-07-14 17:04:08 +02:00
  • 51012e632e crypto: Rename the StoreError to StoreResult. Damir Jelić 2020-07-14 13:11:44 +02:00
  • 5d76fd9aac crypto: Refactor the key query handling logic a bit. Damir Jelić 2020-07-14 13:08:57 +02:00
  • c25f4c0642 crypto: Verify one-time keys using the device. Damir Jelić 2020-07-14 12:49:40 +02:00
  • 9e48b7172b cargo fmt Denis Kasak 2020-07-14 12:38:55 +02:00
  • 68125f5de6 crypto: Refactor out the json verification method. Damir Jelić 2020-07-14 12:23:42 +02:00
  • b602d3007d crypto: Remove some useless mem::replace calls. Damir Jelić 2020-07-14 12:03:27 +02:00
  • 41cfbaf520 device: Store the device keys with the algorithm and device id. Damir Jelić 2020-07-14 12:00:29 +02:00
  • 8206394918 crypto: Use AlgorithmAndDeviceId to get the device signature. Damir Jelić 2020-07-14 11:27:50 +02:00
  • ca85564a9f crypto: Move the device keys verificatin logic into the device. Damir Jelić 2020-07-14 11:17:09 +02:00
  • 7d9a699d62 Fix EventBuilder docstring example. Denis Kasak 2020-07-14 11:06:31 +02:00
  • a38efc0f29 room: Fix a clippy warning, use unwrap_or_else for the member counts. Damir Jelić 2020-07-14 10:56:06 +02:00
  • 048a2000e7 Merge Denis Kasak 2020-07-13 17:10:13 +02:00
  • 18b444aac5 crypto: Move the uploaded key count handing into the account. Damir Jelić 2020-07-13 16:46:51 +02:00
  • a7a9ac24ed crypto: Move the key count field into the account. Damir Jelić 2020-07-13 15:49:16 +02:00
  • b2ccb61864 crypto: Add the device id and identity keys to the megolm session. Damir Jelić 2020-07-13 14:32:59 +02:00
  • ac264918b8 crypto: Move the megolm decryption logic into the session. Damir Jelić 2020-07-13 14:00:42 +02:00
  • 8e19c583c6 crypto: Move the megolm encryption logic into the outbound group session. Damir Jelić 2020-07-13 13:19:25 +02:00