Tulir Asokan
74c0110ee0
misc: remove some local functions in favor of generic ones
2024-07-02 11:20:21 +03:00
Sumner Evans
c0e030fc85
crypto/olm: remove Signatures definition
...
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-05-12 18:10:48 -06:00
Sumner Evans
2728a8f8aa
olm/pk: add fuzz test for the Sign function
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-03-11 09:00:11 -06:00
Sumner Evans
3b65d98c0c
olm/pk: make an interface
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-03-11 09:00:11 -06:00
Sumner Evans
284ab0d62c
olm: remove SHA256 base64 utility
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-03-08 14:04:19 -07:00
Sumner Evans
a10c114203
verification: remove (go)olm SAS code
...
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-03-08 13:24:16 -07:00
Sumner Evans
65be59bfed
crypto: refactor to remove need for Utility struct
...
This also removes all dependence on libolm for the functions that were
provided by the Utility struct.
The crypto/signatures package should be used for all signature
verification operations, and for the occasional situation where a
base64-encoded SHA-256 hash is required, the olm.SHA256B64 function
should be used.
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-01-18 09:17:19 -07:00
Tulir Asokan
893afc7259
Fix typos and JSON field names
2023-12-15 15:56:38 +02:00
Tulir Asokan
c44f7f24c2
Deprecate gob/json encoding olm structs
2023-12-15 15:56:38 +02:00
Tulir Asokan
fde9c645f4
Revert changes to error names
2023-12-15 15:56:38 +02:00
Lukas Gallandi
39efee17e0
Add build tag to use goolm in crypto/olm
...
Merges/closes #106
2023-12-15 15:56:38 +02:00
Tulir Asokan
3e4cb751d0
Remove special module licenses
2023-12-15 15:56:38 +02:00
Brad Murray
aafd22eee6
Add OlmPkDecryption functions ( #141 )
...
* Add OlmPkDecryption functions
* Trim result to the valid size
2023-09-05 12:18:04 -04:00
Tulir Asokan
fd1cdd8c94
Move remaining utilities
2023-08-05 19:24:45 +03:00
Tulir Asokan
47a60154df
Copy input before decrypting with megolm
2023-05-25 16:26:45 +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
bb905d565d
Fix verifying fallback OTK signatures
2022-11-04 20:53:11 +02:00
Tulir Asokan
24d2cce9d5
Fix panic if passing empty data to InboundGroupSession.Unpickle
2022-09-21 23:50:56 +03:00
Tulir Asokan
0b456c3137
Move gjson path escaper to util
2022-09-20 14:17:10 +03:00
Tulir Asokan
4439c0faa8
Use base64.RawStdEncoding directly
2022-08-25 16:41:11 +03:00
Tulir Asokan
a64afd0fe6
Run gofmt with Go 1.19 for godocs
2022-08-04 11:37:35 +03:00
Tulir Asokan
dc0b051046
Fix compile error on old libolm3 versions
2021-12-17 01:40:47 +02:00
Tulir Asokan
6f77a6785b
Log olm session descriptions
2021-12-17 00:49:04 +02:00
Tulir Asokan
00ca2be6a5
Run gofmt
2021-09-22 10:52:01 -04:00
Tulir Asokan
55fd988e01
Keep references to memory allocated for Olm structs
2020-11-21 14:37:07 +02:00
Tulir Asokan
2f4c0570c0
Even more changes
2020-09-12 23:37:50 +03:00
Nikos Filippakis
c4c4b2c61d
Upload cross-signing keys to the server as well besides SSSS
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
50bb209da7
Checking of trust for devices and users based on cross-signing
...
signatures
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
6159b22f94
Generate and upload SSSS keys with random key or passphrase and store SSSS keys in Olm machine
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
e0e6e6fc76
Prepare signing key libolm interaction and move cross-signing funcs to a new file
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:45:26 +02:00
Nikos Filippakis
83f2636582
Store received cross-signing keys and their signatures
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:45:26 +02:00
Tulir Asokan
c3c4f6afe0
Fix Go 1.13 requirement and make compiling SAS optional
2020-08-02 13:52:13 +03:00
Nikos Filippakis
3b459c9ba3
Support Emoji SAS verification
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-24 16:47:04 +02:00
Nikos Filippakis
456223ed31
Olm bindings for SAS verification process
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-22 17:24:48 +02:00
Nikos Filippakis
ed446d64a1
Forward keys when asked for room keys from the same user ID
...
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-07-17 16:17:44 +02:00
Tulir Asokan
8bc43d4629
Update ldflags for olm
2020-05-08 17:21:23 +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
Tulir Asokan
946714d720
Move canonicaljson and go-olm inside crypto/
2020-04-21 03:31:42 +03:00