RMidhunSuresh
d8987ee54b
Crypto does not need to be a member
2023-06-13 13:38:30 +05:30
RMidhunSuresh
9f46a127e0
Improve comment
2023-06-13 13:36:55 +05:30
RMidhunSuresh
d5d3e76659
Change comment style
2023-06-13 13:26:50 +05:30
RMidhunSuresh
00479df71e
Check verification for response as well
2023-06-08 21:01:11 +05:30
RMidhunSuresh
f8bfc384d3
Persist request-id in storage
2023-06-08 17:50:31 +05:30
RMidhunSuresh
af2dde7a1f
Improve secret-sharing API
2023-06-07 23:28:29 +05:30
RMidhunSuresh
60966c482a
Ignore our own requests
2023-06-07 14:53:09 +05:30
RMidhunSuresh
8b36392b90
Rename "SharedSecret" -> "SecretSharing"
2023-06-05 11:58:55 +05:30
RMidhunSuresh
631b2f059f
Implement secret sharing
2023-06-05 11:52:54 +05:30
RMidhunSuresh
c0928c75f8
Export all classes from index.ts
2023-06-05 11:48:21 +05:30
Bruno Windels
762a91bd16
don't reuse existing transaction to read from 4S, as webcrypto terminates idb transactions
2023-03-24 13:42:19 +01:00
Bruno Windels
dd59f37dce
WIP2
2023-03-21 18:24:46 +01:00
Bruno Windels
780dfeb199
WIP
2023-03-13 09:15:49 +01:00
Bruno Windels
a9412aa57c
fix import paths after TS conversion
2023-03-02 17:12:56 +01:00
Bruno Windels
ae5cc17290
mark all inbound sessions to be backed up again when changing version
2022-01-31 14:36:04 +01:00
RMidhunSuresh
9bffd31ee3
Remove typeof
2021-12-03 11:36:51 +05:30
R Midhun Suresh
6dcebde69d
Alias namespace as Olm
...
Co-authored-by: Bruno Windels <brunow@matrix.org>
2021-12-03 11:36:51 +05:30
RMidhunSuresh
e06a0e9e5a
Use olm type from dependency
2021-12-03 11:36:51 +05:30
RMidhunSuresh
7362e38413
Convert interface to type
2021-12-03 11:36:51 +05:30
RMidhunSuresh
d2c09933c7
Type encrypted data
2021-12-03 11:36:51 +05:30
RMidhunSuresh
b2efcb9515
Convert SecretStorage.js to ts
2021-12-03 11:36:51 +05:30
RMidhunSuresh
814c0bed2e
Convert recoveryKey.js to ts
2021-12-03 11:36:51 +05:30
RMidhunSuresh
e45f66a199
Convert passphrase.js to ts
2021-12-03 11:36:51 +05:30
RMidhunSuresh
9b8ab9fd8d
Convert index.js to index.ts
2021-12-03 11:35:12 +05:30
RMidhunSuresh
f9f59fec39
Convert common.js to ts
2021-12-03 11:34:09 +05:30
RMidhunSuresh
0c424cb77f
Fix imports
2021-11-17 20:28:44 +05:30
Bruno Windels
8a36eb4532
check mac of dehydrated key to match default 4s key mac before adopting
2021-11-03 02:07:57 +01:00
Bruno Windels
567cdd5510
WIP for enabling session backup from dehydration key
2021-10-29 19:17:31 +02:00
Bruno Windels
44a26fd340
key backup: add disable button,and enabling add dehydrated device option
2021-10-29 15:48:28 +02:00
Bruno Windels
2ef7251079
move ssssKey to e2ee prefix as well so it gets backed up too
2021-09-29 19:21:06 +02:00
Bruno Windels
e0d14207ac
make opening a txn async again
...
as we'll need to await a bogus request first thing after opening the txn
funny enough, we originally made it sync to accommodate the same bug
in safari, but that didn't prevent any microtask being awaited
before scheduling a request in the calling code closing the txn.
We'll await a bogus request within the transaction class now so it
doesn't depend on the calling code
2021-03-04 19:47:02 +01:00
Bruno Windels
bbab1e9ecc
move base64/58 encoding into platform
...
fixes https://github.com/vector-im/hydrogen-web/issues/99
2021-02-12 16:01:54 +01:00
Bruno Windels
e49639fda2
move textencoder/decoder into platform
2021-02-11 17:29:48 +01:00
Bruno Windels
3ed5ea8b0b
Merge branch 'master' into bwindels/decrypt-images
2020-10-26 17:08:29 +01:00
Bruno Windels
03351d2e1f
extract platform class to put all platform specific code in
2020-10-26 15:44:11 +01:00
Bruno Windels
3a6268f0c1
basic PoC of image decryption working
...
needs looooaaads of cleanup still
2020-10-23 17:25:11 +02:00
Bruno Windels
6f82d81f39
better session backup ui
2020-10-19 18:29:13 +02:00
Bruno Windels
76381fbca1
open storage transactions synchronously
...
this (almost) makes it work in some browsers that otherwise
have throw a TransactionInactiveError on the first operation
you try to do on a store.
2020-09-28 16:06:41 +02:00
Bruno Windels
6c46cc98de
be more specific in error message
2020-09-18 12:12:52 +02:00
Bruno Windels
f58a3ee975
use olm from param
2020-09-17 18:56:02 +02:00
Bruno Windels
5752cca69c
go back to bs58 and use other base64 decoder
...
as base-x isn't meant for base64
2020-09-17 17:56:05 +02:00
Bruno Windels
9d622434fb
integrate session backup with session class
2020-09-17 15:58:46 +02:00
Bruno Windels
3cebd17cbe
adjust paths
2020-09-17 15:17:46 +02:00
Bruno Windels
c9d8d40242
move ssss out of e2ee dir as not really e2ee related
2020-09-17 15:17:00 +02:00