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.

12 lines
378 B
JavaScript

"use strict";
const matchValue = require("match-value");
module.exports = function normalizeEncryptionAlgorithmName(algorithm) {
return matchValue(algorithm, {
"m.secret_storage.v1.aes-hmac-sha2": "aes-ctr-256.hmac-sha-256",
"m.olm.v1.curve25519-aes-sha2": "olm.curve25519.aes-cbc-256.sha-256",
"m.megolm.v1.aes-sha2": "megolm.ed25519.aes-cbc-256.hmac-sha-256"
});
};