mautrix-go/crypto
Toni Spets 080ad4c0a0 crypto: Allow decrypting message content without event id or ts
Replay attack prevention shouldn't store empty event id or ts to
database if we're decrypting without them. This may happen if we are
looking into a future delayed event for example as it doesn't yet have
those.

We still prevent doing that if we already know them meaning we have
gotten the actual event through sync as that's also when a delayed event
would move from scheduled to finalised and then it also contains those
fields.
2025-10-14 14:22:42 +03:00
..
aescbc crypto: replace t.Fatal and t.Error with require and assert 2025-08-02 12:22:24 -06:00
attachment crypto/attachments: hash correct data while decrypting 2025-08-11 10:58:24 +03:00
backup crypto/backup: allow encrypting session without private key 2025-08-01 14:13:55 +03:00
canonicaljson crypto: replace t.Fatal and t.Error with require and assert 2025-08-02 12:22:24 -06:00
cryptohelper crypto/helper: don't block on decryption 2025-10-05 12:30:54 +03:00
ed25519 crypto/olm: add tests comparing libolm and goolm, replace crypto/ed25519 -> maunium.net/go/mautrix/crypto/ed25519 2024-08-23 09:16:58 -06:00
goolm crypto/register: don't use init in *olm packages 2025-09-11 14:14:15 +03:00
libolm crypto/register: don't use init in *olm packages 2025-09-11 14:14:15 +03:00
olm crypto: log active driver 2025-09-11 14:12:35 +03:00
pkcs7 pkcs7: update parameter names and documentation 2024-05-20 10:57:51 -06:00
signatures crypto: add some license headers 2024-02-16 09:36:35 -07:00
sql_store_upgrade crypto/sqlstore: add index to make finding megolm sessions to backup faster (#402) 2025-08-25 08:03:13 -04:00
ssss crypto/ssss: use constant time comparison when decrypting account data 2025-09-17 22:30:32 +03:00
utils crypto: replace t.Fatal and t.Error with require and assert 2025-08-02 12:22:24 -06:00
verificationhelper crypto/verificationhelper: extract mockserver to new package 2025-09-26 16:56:48 +03:00
account.go crypto: always read from crypto/rand 2024-10-25 08:17:13 -06:00
cross_sign_key.go crypto/cross_signing: allow json marshaling cross-signing key seeds 2025-05-10 11:35:06 +03:00
cross_sign_pubkey.go crypto: add utilities for cross-signing 2025-09-21 20:10:59 +03:00
cross_sign_signing.go crypto/olm: make everything into an interface 2024-08-23 09:16:33 -06:00
cross_sign_ssss.go crypto: add utilities for cross-signing 2025-09-21 20:10:59 +03:00
cross_sign_store.go pre-commit: ban log.Str(x.String()) 2025-08-29 11:07:16 +03:00
cross_sign_test.go crypto: replace t.Fatal and t.Error with require and assert 2025-08-02 12:22:24 -06:00
cross_sign_validation.go crypto: add context to IsDeviceTrusted and deprecate ResolveTrust 2025-02-13 14:07:49 +02:00
decryptmegolm.go crypto/decryptmegolm: add option to ignore failing to parse content after decryption 2025-04-14 23:08:11 +03:00
decryptolm.go crypto/sqlstore: ignore unused sessions in olm unwedging 2025-09-12 19:30:05 +03:00
devicelist.go pre-commit: ban log.Str(x.String()) 2025-08-29 11:07:16 +03:00
encryptmegolm.go pre-commit: ban log.Str(x.String()) 2025-08-29 11:07:16 +03:00
encryptolm.go crypto/encryptolm: add generic method to encrypt to-device events 2025-03-04 02:47:36 +02:00
keybackup.go crypto/keybackup: allow importing room keys without saving 2025-05-04 14:09:06 +03:00
keyexport.go crypto: fix key exports 2025-02-04 00:24:56 +02:00
keyexport_test.go crypto: fix key export test 2025-05-06 23:18:23 +03:00
keyimport.go crypto/keybackup: allow importing room keys without saving 2025-05-04 14:09:06 +03:00
keysharing.go crypto/sql_store: ensure forwarding chains is always set instead of having fallback in getter 2025-05-06 22:55:23 +03:00
machine.go crypto: don't check otk count if sharing new keys 2025-09-26 19:48:22 +03:00
machine_bench_test.go crypto: add basic group session sharing benchmark 2025-09-26 20:37:58 +03:00
machine_test.go crypto: replace t.Fatal and t.Error with require and assert 2025-08-02 12:22:24 -06:00
registergoolm.go crypto/register: don't use init in *olm packages 2025-09-11 14:14:15 +03:00
registerlibolm.go crypto/register: don't use init in *olm packages 2025-09-11 14:14:15 +03:00
sessions.go crypto/sql_store: ensure forwarding chains is always set instead of having fallback in getter 2025-05-06 22:55:23 +03:00
sharing.go crypto/ssss: only accept secret shares from verified devices (#352) 2025-02-13 15:52:34 -05:00
sql_store.go crypto: Allow decrypting message content without event id or ts 2025-10-14 14:22:42 +03:00
store.go crypto: Allow decrypting message content without event id or ts 2025-10-14 14:22:42 +03:00
store_test.go crypto: Allow decrypting message content without event id or ts 2025-10-14 14:22:42 +03:00