Update libsignal-protocol v0.9.0
* Exposes crypto APIs. * Move worker methods to libsigna.worker. * Move ProvisioningCipher to libtextsecure.
This commit is contained in:
parent
cd2218ada7
commit
ffa702c934
7 changed files with 293 additions and 238 deletions
|
@ -7,18 +7,8 @@
|
|||
window.textsecure.storage = window.textsecure.storage || {};
|
||||
|
||||
textsecure.storage.protocol = new SignalProtocolStore();
|
||||
var protocolInstance = libsignal.protocol(textsecure.storage.protocol);
|
||||
|
||||
window.textsecure = window.textsecure || {};
|
||||
window.textsecure.protocol_wrapper = {
|
||||
startWorker: function(url) {
|
||||
protocolInstance.startWorker(url);
|
||||
},
|
||||
stopWorker: function() {
|
||||
protocolInstance.stopWorker();
|
||||
},
|
||||
createIdentityKeyRecvSocket: function() {
|
||||
return protocolInstance.createIdentityKeyRecvSocket();
|
||||
}
|
||||
};
|
||||
textsecure.ProvisioningCipher = libsignal.ProvisioningCipher;
|
||||
textsecure.startWorker = libsignal.worker.startWorker;
|
||||
textsecure.stopWorker = libsignal.worker.stopWorker;
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue