On 10 April 2014 13:08, Buddhika E. <buddhika.ekanay...@gmail.com> wrote:
> Could anybody provide me some solution?
>
> Many Thanks,
> Buddhika
>
> PS: I attached a code sample
>
>
I haven't gone all through your code, but spotted this:

  if(!EVP_DecryptUpdate(&ctx, out, &buflen, cipher, strlen(cipher))) {

You can't use strlen on binary data. It doesn't work - you need to
pass the actual length of the data.

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