constTimeIsEqual
This commit is contained in:
parent
466de70edd
commit
9d33962c01
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue