Commit graph

13 commits

Author SHA1 Message Date
Sumner Evans
b10a140a5c
goolm/crypto: use crypto/ed25519 Equal functions
Previously, the code was using raw byte comparisons, which is not
correct, as it makes timing attacks possible.

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-05-31 12:14:04 -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
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
b369efbc06
goolm: rename a couple files
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-09 10:20:09 -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
Sumner Evans
e74304d022
crypto/aescbc: move to its own module
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-01-17 08:15:59 -07:00
Sumner Evans
a0b92fd185
crypto/goolm/session: use crypto/rand instead of math/rand
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-01-15 15:15:00 -07:00
Tulir Asokan
893afc7259 Fix typos and JSON field names 2023-12-15 15:56:38 +02:00
Tulir Asokan
b892a26d6f Remove mock random 2023-12-15 15:56:38 +02:00
Tulir Asokan
ca03f1df17 Remove unused error constants 2023-12-15 15:56:38 +02:00
Tulir Asokan
3e4cb751d0 Remove special module licenses 2023-12-15 15:56:38 +02:00
Tulir Asokan
ab39495bc6 Clean up goolm and update import path 2023-12-15 15:56:38 +02:00
Lukas Gallandi
9c109c97a6 Add pure Go implementation of libolm 2023-12-15 15:56:38 +02:00