From 415f76dfdfce59b74199218306be3d0afe74abad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= Date: Tue, 18 Jan 2022 23:08:48 +0100 Subject: [PATCH] Update libsignal-service/src/provisioning/manager.rs Co-authored-by: Ruben De Smet --- libsignal-service/src/provisioning/manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsignal-service/src/provisioning/manager.rs b/libsignal-service/src/provisioning/manager.rs index 7fdb093ae..1bdb4f066 100644 --- a/libsignal-service/src/provisioning/manager.rs +++ b/libsignal-service/src/provisioning/manager.rs @@ -478,7 +478,7 @@ pub fn encrypt_device_name( .calculate_agreement(identity_public)?; let key1 = calculate_hmac256(&master_secret, b"auth")?; - let mut synthetic_iv = calculate_hmac256(&key1, &plaintext)?; + let mut synthetic_iv = calculate_hmac256(&key1, device_name.as_bytes())?; synthetic_iv.truncate(16); let key2 = calculate_hmac256(&master_secret, b"cipher")?;