Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encode error #22

Open
ghost opened this issue Feb 8, 2019 · 2 comments
Open

encode error #22

ghost opened this issue Feb 8, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 8, 2019

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
Copy link

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
Copy link
Contributor

pH-Valiu commented Nov 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants