1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Factor Olm encryption/decryption out to new classes

- to make way for alternative encryption algorithms. We now store an encryption
object for each room, rather than referring to sessionstore on each event.

Also a little light tidying to the jsdocs.
This commit is contained in:
Richard van der Hoff
2016-08-16 14:29:15 +01:00
parent 4cde51b3ce
commit 2c9f8ba598
9 changed files with 455 additions and 179 deletions

View File

@@ -15,6 +15,12 @@ limitations under the License.
*/
"use strict";
/**
* olm.js wrapper
*
* @module OlmDevice
*/
var Olm = require("olm");
var utils = require("./utils");
@@ -25,6 +31,8 @@ var utils = require("./utils");
* Accounts and sessions are kept pickled in a sessionStore.
*
* @constructor
* @alias module:OlmDevice
*
* @param {Object} sessionStore A store to be used for data in end-to-end
* crypto
*