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.

 

Reply via email to