4
0
mirror of https://github.com/QuasarApp/Qt-AES.git synced 2025-05-04 09:19:35 +00:00

Merge pull request from fetzerch/qt5.5

Fix compatibility with Qt 5.5
This commit is contained in:
Matteo Brichese 2017-11-06 14:28:27 -08:00 committed by GitHub
commit 8b58ac9a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -353,7 +353,9 @@ QByteArray QAESEncryption::encode(const QByteArray rawText, const QByteArray key
QByteArray alignedText(rawText);
QByteArray ivTemp(iv);
alignedText.append(getPadding(rawText.size(), m_blocklen), 0); //filling the array with zeros
//Fill array with zeros
QByteArray padding(getPadding(rawText.size(), m_blocklen), 0);
alignedText.append(padding);
//Preparation for CFB
if (m_mode == CFB)