From 0aa80012acf7dd0edf56e6a067ebeff1d6a20ac4 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Thu, 22 Feb 2024 11:19:30 +1100 Subject: [PATCH] DICKHEAD --- homekit-controller/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homekit-controller/src/lib.rs b/homekit-controller/src/lib.rs index 5a2badd..0521abd 100644 --- a/homekit-controller/src/lib.rs +++ b/homekit-controller/src/lib.rs @@ -145,7 +145,7 @@ impl DevicePairingData { let ios_device_info = { let mut buf = pubkey.as_bytes().to_vec(); buf.extend_from_slice(self.ios_pairing_id.as_bytes()); - buf.extend_from_slice(pubkey.as_bytes()); + buf.extend_from_slice(response_pubkey); buf }; // 8. Use Ed25519 togenerate iOSDeviceSignature by signing iOSDeviceInfo with its long-term secret key, iOSDeviceLTSK