mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
extend ie11 benchmark with pickle/unpickle roundtrip
This commit is contained in:
parent
6788a612fc
commit
dc29956e02
@ -61,6 +61,16 @@
|
||||
JSON.parse(bob.identity_keys()).curve25519,
|
||||
bobOneTimeKey
|
||||
);
|
||||
log("alice outbound session created");
|
||||
var aliceSessionPickled = aliceSession.pickle("secret");
|
||||
log("aliceSession pickled", aliceSessionPickled);
|
||||
try {
|
||||
var tmp = new Olm.Session();
|
||||
tmp.unpickle("secret", aliceSessionPickled);
|
||||
log("aliceSession unpickled");
|
||||
} finally {
|
||||
tmp.free();
|
||||
}
|
||||
var message = aliceSession.encrypt("hello secret world");
|
||||
log("message", message);
|
||||
// decrypt
|
||||
|
Loading…
Reference in New Issue
Block a user