From a58ace70a70329b9f7759c0a57085dbf1e178328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 30 Jul 2020 15:45:19 +0200 Subject: [PATCH] crypto: Fix the SAS MAC calculation KEYIDS -> KEY_IDS. --- matrix_sdk_crypto/src/verification/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_sdk_crypto/src/verification/mod.rs b/matrix_sdk_crypto/src/verification/mod.rs index 6592115f..16371ce9 100644 --- a/matrix_sdk_crypto/src/verification/mod.rs +++ b/matrix_sdk_crypto/src/verification/mod.rs @@ -174,7 +174,7 @@ fn receive_mac_event( let mut keys = event.content.mac.keys().cloned().collect::>(); keys.sort(); let keys = sas - .calculate_mac(&keys.join(","), &format!("{}KEYIDS", &info)) + .calculate_mac(&keys.join(","), &format!("{}KEY_IDS", &info)) .expect("Can't calculate SAS MAC"); if keys != event.content.keys { @@ -267,7 +267,7 @@ fn get_mac_content(sas: &OlmSas, ids: &SasIds, flow_id: &str) -> MacEventContent let mut keys = mac.keys().cloned().collect::>(); keys.sort(); let keys = sas - .calculate_mac(&keys.join(","), &format!("{}KEYIDS", &info)) + .calculate_mac(&keys.join(","), &format!("{}KEY_IDS", &info)) .expect("Can't calculate SAS MAC"); MacEventContent {