On Mon, Nov 19, 2007, Pankaj Mathur wrote:

> 
> I am still struggling with this issue.
> I did not get much help from the list, so I am reposting again.
> 
if(!EVP_EncryptUpdate(&ctx,&pBuff[currentLength],
                                                &datalength,
                                                &pData[currentLength],1024))
...
currentLength += datalength;

The above shows you are not using EVP_EncryptUpdate properly. It will consume
all of the input buffer (1024 bytes in this example) and write datalength
bytes to the output buffer. 

Your use of EVP_DecryptUpdate() has similar problems.

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]

Reply via email to