Fixed issue with secret chats

This commit is contained in:
DrKLO 2013-12-22 16:12:41 +04:00
parent d52ade4855
commit 5aee72ee33

View File

@ -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
} }
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);