From 5aee72ee33fd960df9173ab17942dd1a2ce912b5 Mon Sep 17 00:00:00 2001 From: DrKLO Date: Sun, 22 Dec 2013 16:12:41 +0400 Subject: [PATCH] Fixed issue with secret chats --- .../java/org/telegram/messenger/MessagesController.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java index f34124fe1..a82c030f0 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java @@ -4824,9 +4824,6 @@ public class MessagesController implements NotificationCenter.NotificationCenter } authKey = correctedAuth; } - for (int a = 0; a < 256; a++) { - authKey[a] = (byte)(authKey[a] ^ encryptedChat.nonce[a]); - } byte[] authKeyHash = Utilities.computeSHA1(authKey); byte[] authKeyId = new byte[8]; System.arraycopy(authKeyHash, authKeyHash.length - 8, authKeyId, 0, 8); @@ -4918,9 +4915,6 @@ public class MessagesController implements NotificationCenter.NotificationCenter } authKey = correctedAuth; } - for (int a = 0; a < 256; a++) { - authKey[a] = (byte)(authKey[a] ^ encryptedChat.nonce[a]); - } byte[] authKeyHash = Utilities.computeSHA1(authKey); byte[] authKeyId = new byte[8]; System.arraycopy(authKeyHash, authKeyHash.length - 8, authKeyId, 0, 8);