diff --git a/libs/encryption/encryption.cpp b/libs/encryption/encryption.cpp index 9bbdc10..6be65a8 100644 --- a/libs/encryption/encryption.cpp +++ b/libs/encryption/encryption.cpp @@ -31,7 +31,7 @@ QByteArray Encryption::InitIVTable(const QByteArray &feed) { if (static_cast(feed.at(ptr)) == 0x00) ptr = 0; int base = i * 20 + x * 4; - table[base] = feed.at(ptr); + table[base] = feed.at(ptr); table[base + 1] = feed.at(ptr); table[base + 2] = feed.at(ptr); table[base + 3] = feed.at(ptr); @@ -77,7 +77,7 @@ void Encryption::UpdateIVTable(QByteArray &table, int index, const QByteArray &s int hashIndex = 0; for (int x = 0; x < 4; ++x) { table[startIndex - 1] = table.at(startIndex - 1) ^ sectionHash.at(hashIndex); - table[startIndex] = table.at(startIndex) ^ sectionHash.at(hashIndex + 1); + table[startIndex] = table.at(startIndex) ^ sectionHash.at(hashIndex + 1); table[startIndex + 1] = table.at(startIndex + 1) ^ sectionHash.at(hashIndex + 2); table[startIndex + 2] = table.at(startIndex + 2) ^ sectionHash.at(hashIndex + 3); table[startIndex + 3] = table.at(startIndex + 3) ^ sectionHash.at(hashIndex + 4);