Hi, Ithink you should provide all the code. This is not enough to see if the parameters you used are correctly initialized. For example, I'd like to see how you handle the multiple call.
Fred -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Gorelik, Slava Envoyé : mercredi 30 juin 2004 17:14 À : [EMAIL PROTECTED] Objet : EVP_DecryptUpdate Problem Hi. I use openSSL (version 0.9.7d) for RC4 algorithm. I use EVP_DecryptUpdate function as explained in manual. First call is successful, but the second call for this function in next chunk of the data is return garbage in the encrypted buffer. There is a code: bool rc = false; int outlen = 0, tmplen = 0; EVP_DecryptUpdate(&m_DeryptCtx, (unsigned char *)out, &outlen, (unsigned char *)in, inSize)); What I do wrong? Thank You. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]