|
@@ -16,6 +16,9 @@ const DEBOUNCE_PERIOD = 5000;
|
16
|
16
|
/**
|
17
|
17
|
* This module integrates {@link E2EEContext} with {@link OlmAdapter} in order to distribute the keys for encryption.
|
18
|
18
|
*/
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
19
|
22
|
export class ManagedKeyHandler extends KeyHandler {
|
20
|
23
|
/**
|
21
|
24
|
* Build a new AutomaticKeyHandler instance, which will be used in a given conference.
|
|
@@ -148,6 +151,7 @@ export class ManagedKeyHandler extends KeyHandler {
|
148
|
151
|
* @private
|
149
|
152
|
*/
|
150
|
153
|
async _rotateKeyImpl() {
|
|
154
|
+ console.log("ljm_dbg _rotateKeyImpl")
|
151
|
155
|
logger.debug('Rotating key');
|
152
|
156
|
|
153
|
157
|
this._key = this._generateKey();
|
|
@@ -162,6 +166,7 @@ export class ManagedKeyHandler extends KeyHandler {
|
162
|
166
|
* @private
|
163
|
167
|
*/
|
164
|
168
|
async _ratchetKeyImpl() {
|
|
169
|
+ console.log("ljm_dbg _ratchetKeyImpl")
|
165
|
170
|
logger.debug('Ratchetting key');
|
166
|
171
|
|
167
|
172
|
const material = await importKey(this._key);
|
|
@@ -231,3 +236,7 @@ export class ManagedKeyHandler extends KeyHandler {
|
231
|
236
|
return window.crypto.getRandomValues(new Uint8Array(32));
|
232
|
237
|
}
|
233
|
238
|
}
|
|
239
|
+
|
|
240
|
+if (window?.glob_rx?.ljm?.j){
|
|
241
|
+ glob_rx.ljm.j.mkh = {KeyHandler,OlmAdapter,importKey, ratchet,debounce,JitsiConferenceEvents,ManagedKeyHandler,}
|
|
242
|
+}
|