You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this library for decryption, an out of memory error may occur when the length of the string to be decrypted does not match. It is currently believed that when using the mid() function on QByteArray, it may be necessary to determine if the length limit has been exceeded. Like this:
for (int i = 0; i < rawText.size(); i += m_blocklen)
{
if (i + m_blocklen > rawText.length())
{
break;
}
ret.append(invCipher(expandedKey, rawText.mid(i, m_blocklen)));
}
break;
I am not good at English, so I use translation tools. Please forgive me.Thank you!😄
The text was updated successfully, but these errors were encountered:
If so, it's odd as the decode function should return an empty QByteArray if the rawText compatible with the block length.
Please, make a sample code that I can easily run so I can see what are you actually triggering.
When using this library for decryption, an out of memory error may occur when the length of the string to be decrypted does not match. It is currently believed that when using the mid() function on QByteArray, it may be necessary to determine if the length limit has been exceeded. Like this:
I am not good at English, so I use translation tools. Please forgive me.Thank you!😄
The text was updated successfully, but these errors were encountered: