Fix compatibility with Qt 5.5

QByteArray &QByteArray::append(int count, char ch) was introduced in Qt
5.7. This patch allows the project to be used with for example with the
current Ubuntu LTS version (16.04 Xenial).
This commit is contained in:
Christian Fetzer 2017-11-05 20:03:16 +01:00
parent 355230f397
commit dc64718fd5

View File

@ -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)