Sumner Evans
654b6b1d45
crypto: replace t.Fatal and t.Error with require and assert
...
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2025-08-02 12:22:24 -06:00
Sumner Evans
de0347db00
crypto: fix usages of Store interface
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-05-14 12:47:45 -06:00
Sumner Evans
d10103dcf5
crypto/encryptmegolm: return error if sharing outbound session fails
...
This allows us to catch and throw "database is locked" errors. This will
ensure that if saving the key fails, then we won't share the key out to
anyone.
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-05-13 21:47:45 -06:00
Sumner Evans
ff9e2e0f1d
machine/ShareKeys: save keys before sending server request in case it fails
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-04-19 08:47:36 -06:00
Tulir Asokan
3756213bae
Set type class for decrypted olm events correctly
2024-01-19 13:49:51 +02:00
Tulir Asokan
25bc36bc7a
Add more contexts everywhere
2024-01-07 22:45:02 +02:00
Tulir Asokan
6879d6b693
Delete megolm sessions when receiving new one and when session is fully used
2023-04-11 11:42:13 +03:00
Tulir Asokan
20df20d25a
Ratchet inbound sessions on decrypt and delete outbound on ack
2023-04-10 16:27:05 +03:00
Tulir Asokan
6e268751db
Add method to ratchet megolm session to specific index
2023-04-10 13:48:12 +03:00
Tulir Asokan
55e6fb593c
Switch crypto module to zerolog
2023-02-19 22:45:43 +02:00
Tulir Asokan
4a40d7aff0
Replace crypto GobStore with MemoryStore
2023-02-19 22:35:49 +02:00
Tulir Asokan
a7f1f1e3b6
Add simplified crypto helper for clients
...
Fixes #19
Fixes #2
2023-02-19 03:22:14 +02:00
Tulir Asokan
d1d7f999f7
Move DeviceIdentity and Fingerprint to id package
2022-07-05 11:56:45 +03:00
Tulir Asokan
72d5a9abf0
Add more detailed logs for debugging olm decryption delays
2021-12-17 00:51:47 +02:00
Tulir Asokan
f556aff315
Fix tests and Go 1.14 compatibility
2021-12-03 18:19:03 +02:00
Tulir Asokan
8e5668e126
Lock olmLock mutex when decrypting olm events
2021-04-19 17:24:19 +03:00
Nikos Filippakis
d296c8ed85
Fetch device keys if a device is not present in the crypto store
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-08 13:21:19 +02:00
Nikos Filippakis
d59d73ba7e
Take session rotation config from m.room.encryption message
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-08 13:21:19 +02:00
Nikos Filippakis
5900486b62
Create OlmMachine session creation, encryption and decryption test
...
Add a test for the functionality of OlmMachine, creating an olm and megolm session, sharing the megolm session and encrypting a message
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-06 16:26:18 +02:00