Skip to content

Commit

Permalink
Update libsignal-service/src/provisioning/manager.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ruben De Smet <[email protected]>
  • Loading branch information
gferon and rubdos authored Jan 18, 2022
1 parent 7b053f0 commit 415f76d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsignal-service/src/provisioning/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ pub fn encrypt_device_name<R: rand::Rng + rand::CryptoRng>(
.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")?;
Expand Down

0 comments on commit 415f76d

Please sign in to comment.