mirror of
https://github.com/QuasarApp/Qt-AES.git
synced 2025-04-28 22:54:31 +00:00
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:
parent
355230f397
commit
dc64718fd5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user