bricke / Qt-AES

Native Qt AES encryption class
The Unlicense
501 stars 187 forks source link

encode error #22

Open ghost opened 5 years ago

ghost commented 5 years ago

ASSERT: "uint(i) < uint(size())" in file C:/Qt/5.12.0/mingw73_64/include/QtCore/qbytearray.h, line 481 it do this when it goes to the line 416 qaesencryption.cpp QByteArray expandedKey = expandKey(key); windows 7 qt 5.12

DeadGrin commented 1 year ago

same: ASSERT: "size_t(i) < size_t(size())" in file ../../inst2/6.2.2/mingw_64/include/QtCore/qbytearray.h, line 501 ../../inst2/6.2.2/mingw_64/include/QtCore/qbytearray.h: 501

QByteArray KEY = m_key.toUtf8(); QAESEncryption encryption(QAESEncryption::AES_128, QAESEncryption::ECB); encodedFileByte = encryption.encode(decodedFileByte, KEY); //here everything crashes

i think it necessary to run using cmake

pH-Valiu commented 1 year ago

how big is your KEY? since I can you use the lib with qmake and everything works fine.