mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-29 01:59:11 +00:00
constTimeIsEqual
This commit is contained in:
@@ -231,7 +231,7 @@ func withDecryptedMessageContents(parameters: SecretChatEncryptionParameters, da
|
||||
return nil
|
||||
}
|
||||
|
||||
if localMessageKey != msgKeyData {
|
||||
if !constTimeIsEqual(data1: localMessageKey, data2: msgKeyData) {
|
||||
Logger.shared.log("SecretChatEncryption", "message key doesn't match")
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user