On Tue, Mar 22, 2005, Rafael Cividanes wrote: > But the problem is that the plaintext below has 37 characters! "The > problem will be solved until" = 32. >
I see, I was mislead by the comment at the end. > char intext[] = "The problem will be solved until12345"; = 37 !! > > It's very strange for me! > The actual code you have without EVP_DecryptFinal_ex() *not* displaying the complete plaintext properly. If you look at the output with a hex editor you'll see that there are some extra 0xb characters on the end. The reason you sometimes get garbage is that the null terminator is not included when the length of the plaintext is determined. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]