Commit graph

36 commits

Author SHA1 Message Date
Tulir Asokan
19f3b2179c pre-commit: ban log.Str(x.String()) 2025-08-29 11:07:16 +03:00
Tulir Asokan
f931c9972d crypto/decryptolm: don't try to parse content if there is none 2025-04-23 15:29:45 +03:00
Tulir Asokan
049990cd7b crypto/decryptolm: check last olm session creation ts before unwedging 2024-12-20 14:48:53 +02:00
Tulir Asokan
e844153658 crypto/decryptolm: store olm hashes to prevent errors if they're repeated 2024-12-20 14:48:50 +02:00
Nick Mills-Barrett
15ab545e72
crypto: add background context to olm machine
Some checks are pending
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
Defaults to `context.Background()` but can be passed any context to
support cancelling background jobs the olm instance might be executing.
2024-12-16 15:45:57 +00:00
Tulir Asokan
b4551fc3da crypto/decryptolm: don't use deleted sessions for decrypting
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2024-11-22 10:20:34 +02:00
Tulir Asokan
9373794606
crypto: delete old olm sessions if there are too many (#315)
Some checks are pending
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
2024-11-20 15:03:21 +02:00
Tulir Asokan
3756213bae Set type class for decrypted olm events correctly 2024-01-19 13:49:51 +02:00
Toni Spets
970ba1a907 Store own device keys on init 2024-01-15 13:13:10 +02:00
Tulir Asokan
25bc36bc7a Add more contexts everywhere 2024-01-07 22:45:02 +02:00
Tulir Asokan
48bfc596f0 Fix incorrect context.Backgrounds 2024-01-07 15:35:58 +02:00
Tulir Asokan
72a1c344d1 Adjust olm session id logs 2023-04-25 14:56:00 +03:00
Tulir Asokan
249a386534 Fix some logs missing metadata 2023-02-24 14:24:41 +02:00
Tulir Asokan
cd081f597d Move some crypto logs to debug level 2023-02-24 14:19:41 +02:00
Tulir Asokan
55e6fb593c Switch crypto module to zerolog 2023-02-19 22:45:43 +02:00
Tulir Asokan
78e4891218 Adjust copying m.relates_to to decrypted content 2022-11-22 18:15:07 +02:00
Tulir Asokan
63232d0443 Run olm unwedging if decryption fails with new olm session 2022-01-03 15:28:07 +02:00
Tulir Asokan
72d5a9abf0 Add more detailed logs for debugging olm decryption delays 2021-12-17 00:51:47 +02:00
Tulir Asokan
6f77a6785b Log olm session descriptions 2021-12-17 00:49:04 +02:00
Tulir Asokan
f556aff315 Fix tests and Go 1.14 compatibility 2021-12-03 18:19:03 +02:00
Tulir Asokan
087644889b Stop using non-existent device_id field when handling olm messages 2021-12-03 17:47:41 +02:00
Tulir Asokan
5b4a845029 Add time limit to creating new Olm sessions 2021-12-03 16:50:52 +02:00
Tulir Asokan
835194fa2d Automatically create new Olm sessions if decryption fails 2021-12-03 16:23:24 +02:00
Tulir Asokan
8e5668e126 Lock olmLock mutex when decrypting olm events 2021-04-19 17:24:19 +03:00
Tulir Asokan
a31302832e Move creating inbound session log to debug level 2020-10-06 21:38:30 +03:00
Tulir Asokan
72fc4c1643 Stop using github.com/pkg/errors 2020-09-24 14:41:29 +03:00
Tulir Asokan
7adbd31280 Fix account key mix-up. Fixes #11 2020-06-24 00:26:41 +03:00
Tulir Asokan
ea5cf3ee5e Add some comments and other changes to crypto stuff 2020-06-23 21:42:33 +03:00
Tulir Asokan
e96fcf1e5a Improve to-device event logging 2020-06-03 19:47:06 +03:00
Tulir Asokan
1665c2d86f Save olm session in crypto store after using it to en/decrypt 2020-05-12 21:15:49 +03:00
Tulir Asokan
a120e7a70f Change stuff and invalidate outgoing group sessions on member event 2020-05-05 18:37:08 +03:00
Tulir Asokan
73915bafb5 Fix extra fields in crypto storage 2020-04-28 21:59:31 +03:00
Tulir Asokan
72957d901d Fix sharing group sessions and change other stuff 2020-04-28 21:32:12 +03:00
Tulir Asokan
fe82e2b914 Add initial outbound encryption 2020-04-28 00:57:04 +03:00
Tulir Asokan
b07cb6dc1f Fix a bunch of stuff 2020-04-27 00:35:54 +03:00
Tulir Asokan
2adedba476 More decryption stuff 2020-04-26 22:48:35 +03:00
Renamed from crypto/decrypt.go (Browse further)