On 16 June 2013 10:41, enrico d'urso <e.du...@live.com> wrote:
> Client send to Server encrypt data, first time all works fine, but second
> time no.
> For example if I first time send:
> "Stack Overflow" server print "Stack Overflow",
> but second time anything client sends, server always print "erflow".
> Note that erflow is part of 2-nd byte of first message.
>
> Can you help me?

Are you calling EVP_EncryptInit_ex / EVP_DecryptInit_ex for each
message? If you reuse a context for multiple messages you still need
to call these functions before any calls to
EVP_EncryptUpdate/EVP_DecryptUpdate.

Matt
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to