[SailfishDevel] OpenSSL AES CTR 128 help needed

Sander van Grieken sander at outright.solutions
Sun Mar 1 10:31:57 UTC 2015


On Monday 23 February 2015 22:00:09 Andrey Kozhevnikov wrote:
> Hello Sailors!
> 
> I need help in debugging issue in my simple test project: 
> https://github.com/CODeRUS/aes-test
> In any platform/device it gives at least one failure during iterations. 
> I googled and tried everything and have no ideas anymore.
> Any help/ideas/suggestions are appreciated.
> 
> Best regards,
> Andrey Kozhevnikov

QByteArray out(ciphertext.size(), '\0');

This looks like a possible off-by-one bug, it might on occasion not have a trailing \0, when the plaintext is exactly of length ciphertext

grtz,
Sander



More information about the Devel mailing list