Skip to content

Commit

Permalink
Fixed issue with secret chats
Browse files Browse the repository at this point in the history
  • Loading branch information
DrKLO committed Dec 22, 2013
1 parent d52ade4 commit 5aee72e
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4824,9 +4824,6 @@ public void processAcceptedSecretChat(final TLRPC.EncryptedChat encryptedChat) {
}
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);
Expand Down Expand Up @@ -4918,9 +4915,6 @@ public void run(TLObject response, TLRPC.TL_error error) {
}
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);
Expand Down

0 comments on commit 5aee72e

Please sign in to comment.