Closed toby20130333 closed 7 years ago
Hello, unfortunately I do not have a Windows machine with VS to test it with, the sbox array is initialized in the header file as a classic uint8 array, do you have more info on the issue?
I define it out of class it's OK.but some exception in my example
QAESEncryption encryption(QAESEncryption::AES_128, QAESEncryption::ECB); QByteArray plainText = QString("www.heilqt.com").toUtf8(); QByteArray encodedText = encryption.encode(plainText, plainText);//get exception message qDebug()<<"encodedText "<<encodedText; QByteArray decodedText = encryption.decode(encodedText, plainText); qDebug()<<"decodedText "<<decodedText;
You should pass a 128 bit key to encode.
OK I got it,but this exception is not return some warning?
Not yet.
I'll add a warning.
error C2536: “QAESEncryption::QAESEncryption::sbox”: 无法指定数组的显式初始值设定项 c:\qt\gitcode\qt-aes\debug../qaesencryption.h(83) : 参见“QAESEncryption::sbox”的声明 It's meaning cann't init this sbox array