2020-11-13 23:35:09 +05:30
|
|
|
/*
|
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2021-10-05 21:21:10 +05:30
|
|
|
import aesjs from "aes-js";
|
2021-11-17 14:04:43 +05:30
|
|
|
import {hkdf} from "../../utils/crypto/hkdf";
|
2021-12-01 17:00:33 +05:30
|
|
|
|
2020-10-26 20:14:11 +05:30
|
|
|
import {Platform as ModernPlatform} from "./Platform.js";
|
|
|
|
|
2022-04-21 14:17:47 +05:30
|
|
|
export function Platform({ container, assetPaths, config, configURL, options = null }) {
|
|
|
|
return new ModernPlatform({ container, assetPaths, config, configURL, options, cryptoExtras: { aesjs, hkdf }});
|
2020-10-26 20:14:11 +05:30
|
|
|
}
|