extend ie11 benchmark with pickle/unpickle roundtrip
This commit is contained in:
parent
6788a612fc
commit
dc29956e02
1 changed files with 10 additions and 0 deletions
|
@ -61,6 +61,16 @@
|
||||||
JSON.parse(bob.identity_keys()).curve25519,
|
JSON.parse(bob.identity_keys()).curve25519,
|
||||||
bobOneTimeKey
|
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");
|
var message = aliceSession.encrypt("hello secret world");
|
||||||
log("message", message);
|
log("message", message);
|
||||||
// decrypt
|
// decrypt
|
||||||
|
|
Reference in a new issue