瀏覽代碼

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

Luther Blissett 3 年之前
父節點
當前提交
a68304ca99
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
     }