From dc29956e027bf7e88e8f36dea3722a7e0d713b4d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 1 Sep 2020 18:00:15 +0200 Subject: [PATCH] extend ie11 benchmark with pickle/unpickle roundtrip --- prototypes/olmtest-ie11.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/prototypes/olmtest-ie11.html b/prototypes/olmtest-ie11.html index 13d906b9..2ea3eeb8 100644 --- a/prototypes/olmtest-ie11.html +++ b/prototypes/olmtest-ie11.html @@ -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