mirror of
https://github.com/FromGram/android.git
synced 2026-11-19 21:26:45 +03:00
Fixed issue with secret chats
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user