Przeglądaj źródła

x3dh: Fix remaining bug thanks to cronokirby's eagle vision.

Luther Blissett 3 lat temu
rodzic
commit
a68304ca99
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      script/research/x3dh/src/main.rs

+ 1 - 1
script/research/x3dh/src/main.rs

@@ -102,7 +102,7 @@ impl MessageHeader {
         let mut ret = [0u8; 48];
         ret[..32].copy_from_slice(&self.dh.to_bytes());
         ret[32..40].copy_from_slice(&self.pn.to_le_bytes());
-        ret[40..].copy_from_slice(&self.pn.to_le_bytes());
+        ret[40..].copy_from_slice(&self.n.to_le_bytes());
         ret
     }