diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-09-01 23:17:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 23:17:02 +0200 |
commit | d9449a48c7f80ed70b1760138a8de1c0c3638567 (patch) | |
tree | 9741eec2df897e32b72b9589c49ba0e1fa1ddcd2 /lib | |
parent | b257cf4e38d540a0063f06ebdb51dcd2574cc809 (diff) | |
parent | d1a4bbf693ad14f2ea0a308fef61db95161a17b7 (diff) | |
download | libquotient-d9449a48c7f80ed70b1760138a8de1c0c3638567.tar.gz libquotient-d9449a48c7f80ed70b1760138a8de1c0c3638567.zip |
Merge pull request #566 from quotient-im/verificationfix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/keyverificationsession.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/keyverificationsession.cpp b/lib/keyverificationsession.cpp index 2c468c3e..44a085fe 100644 --- a/lib/keyverificationsession.cpp +++ b/lib/keyverificationsession.cpp @@ -163,7 +163,7 @@ void KeyVerificationSession::handleKey(const KeyVerificationKeyEvent& event) if (startSentByUs) { const auto paddedCommitment = - QCryptographicHash::hash((eventKey % m_startEvent).toLatin1(), + QCryptographicHash::hash((event.key() % m_startEvent).toLatin1(), QCryptographicHash::Sha256) .toBase64(); const QLatin1String unpaddedCommitment(paddedCommitment.constData(), @@ -189,7 +189,7 @@ void KeyVerificationSession::handleKey(const KeyVerificationKeyEvent& event) const auto info = infoTemplate .arg(m_connection->userId(), m_connection->deviceId(), key.data(), m_remoteUserId, m_remoteDeviceId, - eventKey, m_transactionId) + event.key(), m_transactionId) .toLatin1(); olm_sas_generate_bytes(m_sas, info.data(), info.size(), output.data(), output.size()); |