Commit 5aee72ee authored by DrKLO's avatar DrKLO

Fixed issue with secret chats

parent d52ade48
...@@ -4824,9 +4824,6 @@ public class MessagesController implements NotificationCenter.NotificationCenter ...@@ -4824,9 +4824,6 @@ public class MessagesController implements NotificationCenter.NotificationCenter
} }
authKey = correctedAuth; authKey = correctedAuth;
} }
for (int a = 0; a < 256; a++) {
authKey[a] = (byte)(authKey[a] ^ encryptedChat.nonce[a]);
}
byte[] authKeyHash = Utilities.computeSHA1(authKey); byte[] authKeyHash = Utilities.computeSHA1(authKey);
byte[] authKeyId = new byte[8]; byte[] authKeyId = new byte[8];
System.arraycopy(authKeyHash, authKeyHash.length - 8, authKeyId, 0, 8); System.arraycopy(authKeyHash, authKeyHash.length - 8, authKeyId, 0, 8);
...@@ -4918,9 +4915,6 @@ public class MessagesController implements NotificationCenter.NotificationCenter ...@@ -4918,9 +4915,6 @@ public class MessagesController implements NotificationCenter.NotificationCenter
} }
authKey = correctedAuth; authKey = correctedAuth;
} }
for (int a = 0; a < 256; a++) {
authKey[a] = (byte)(authKey[a] ^ encryptedChat.nonce[a]);
}
byte[] authKeyHash = Utilities.computeSHA1(authKey); byte[] authKeyHash = Utilities.computeSHA1(authKey);
byte[] authKeyId = new byte[8]; byte[] authKeyId = new byte[8];
System.arraycopy(authKeyHash, authKeyHash.length - 8, authKeyId, 0, 8); System.arraycopy(authKeyHash, authKeyHash.length - 8, authKeyId, 0, 8);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment