Hello,
> I tried to encrypt and decrypt a text using different ciphers. There I 
> found that the decryption failes at EVP_CipherFinal_ex() call. Somebody 
> please point me out what I've done wrong. The code is attached.
After looking at your source code my first proposition is not
to use strlen() on encrypted data. Encrypted data should be treated
as binary buffer (not string) and may contain
'\0' characters inside and if you will use strlen() on this data
you may get bad results (if '\0' will be inside) or even core
dumps (if there will be no '\0' and strlen() will count beyond
data buffer).

Best regards,
-- 
Marek Marcola <[EMAIL PROTECTED]>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to