On 2010-12-22 05:28, raydan wrote:
>     stfEncryptor.Put(reinterpret_cast<const unsigned
> char*>(plain.c_str()), plain.length()+1);

This should just be plain.length() to match the PHP code.
There must be some other problem as well; in CTR mode the first
four bytes of the ciphertext should have matched even if the length
was wrong.

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to