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

update the name of the MAC method

This commit is contained in:
Hubert Chathi
2019-04-04 14:07:16 -04:00
parent d1e64d0cfb
commit 751060305c

View File

@@ -159,7 +159,7 @@ function generateSas(sasBytes, methods) {
} }
const macMethods = { const macMethods = {
"hmac-sha256-bits": "calculate_mac", "hkdf-hmac-sha256": "calculate_mac",
"hmac-sha256": "calculate_mac_long_kdf", "hmac-sha256": "calculate_mac_long_kdf",
}; };
@@ -169,7 +169,7 @@ const macMethods = {
*/ */
const KEY_AGREEMENT_LIST = ["curve25519"]; const KEY_AGREEMENT_LIST = ["curve25519"];
const HASHES_LIST = ["sha256"]; const HASHES_LIST = ["sha256"];
const MAC_LIST = ["hmac-sha256-bits", "hmac-sha256"]; const MAC_LIST = ["hkdf-hmac-sha256", "hmac-sha256"];
const SAS_LIST = Object.keys(sasGenerators); const SAS_LIST = Object.keys(sasGenerators);
const KEY_AGREEMENT_SET = new Set(KEY_AGREEMENT_LIST); const KEY_AGREEMENT_SET = new Set(KEY_AGREEMENT_LIST);