You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
763 B
JavaScript
25 lines
763 B
JavaScript
10 years ago
|
/*
|
||
|
* vim: ts=4:sw=4:expandtab
|
||
|
*/
|
||
10 years ago
|
;(function() {
|
||
10 years ago
|
'use strict';
|
||
|
window.textsecure = window.textsecure || {};
|
||
|
window.textsecure.storage = window.textsecure.storage || {};
|
||
10 years ago
|
|
||
9 years ago
|
textsecure.storage.protocol = new SignalProtocolStore();
|
||
9 years ago
|
var protocolInstance = libsignal.protocol(textsecure.storage.protocol);
|
||
10 years ago
|
|
||
|
window.textsecure = window.textsecure || {};
|
||
|
window.textsecure.protocol_wrapper = {
|
||
10 years ago
|
startWorker: function() {
|
||
9 years ago
|
protocolInstance.startWorker('/js/libsignal-protocol-worker.js');
|
||
10 years ago
|
},
|
||
|
stopWorker: function() {
|
||
9 years ago
|
protocolInstance.stopWorker();
|
||
10 years ago
|
},
|
||
|
createIdentityKeyRecvSocket: function() {
|
||
9 years ago
|
return protocolInstance.createIdentityKeyRecvSocket();
|
||
10 years ago
|
}
|
||
10 years ago
|
};
|
||
10 years ago
|
})();
|