Browse Source

e2ee: remove no longer needed code

dev1
Saúl Ibarra Corretgé 5 years ago
parent
commit
159ea5357b
2 changed files with 2 additions and 11 deletions
  1. 1
    10
      modules/e2ee/E2EEContext.js
  2. 1
    1
      modules/e2ee/E2EEncryption.js

+ 1
- 10
modules/e2ee/E2EEContext.js View File

@@ -23,17 +23,8 @@ const kJitsiE2EE = Symbol('kJitsiE2EE');
23 23
 export default class E2EEcontext {
24 24
     /**
25 25
      * Build a new E2EE context instance, which will be used in a given conference.
26
-     *
27
-     * @param {string} options.salt - Salt to be used for key deviation.
28
-     * FIXME: We currently use the MUC room name for this which has the same lifetime
29
-     * as this context. While not (pseudo)random as recommended in
30
-     * https://developer.mozilla.org/en-US/docs/Web/API/Pbkdf2Params
31
-     * this is easily available and the same for all participants.
32
-     * We currently do not enforce a minimum length of 16 bytes either.
33 26
      */
34
-    constructor(options) {
35
-        this._options = options;
36
-
27
+    constructor() {
37 28
         // Determine the URL for the worker script. Relative URLs are relative to
38 29
         // the entry point, not the script that launches the worker.
39 30
         let baseUrl = '';

+ 1
- 1
modules/e2ee/E2EEncryption.js View File

@@ -31,7 +31,7 @@ export class E2EEncryption {
31 31
         this._enabled = false;
32 32
         this._initialized = false;
33 33
 
34
-        this._e2eeCtx = new E2EEContext({ salt: conference.getName() });
34
+        this._e2eeCtx = new E2EEContext();
35 35
         this._olmAdapter = new OlmAdapter(conference);
36 36
 
37 37
         // Debounce key rotation / ratcheting to avoid a storm of messages.

Loading…
Cancel
Save