Fixed issue with secret chats
This commit is contained in:
parent
d52ade4855
commit
5aee72ee33
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user