Given the coredump stack trace you provide, it looks like
ctx->cipher->do_cipher == NULL, while it should be a valid pointer to
a cypher-specific en/decrypt function (see evp_cipher_st typedef in
evp.h).
Please check with assert() or debugger if this member != NULL before
entering the decrypt function.

----------
AM: Indeed it is NULL. Thanks for pointing out the cause. I checked the code
of EVP_CipherUpdate in crypto/evp/evp_enc.c and got an idea how it works.


If, like I assume, it *is* NULL, that
means the INIT went wrong.

--------
AM: Now, I will look into the init routines closely. All along I was looking
at a wrong place.


Since you do not check error codes here (or
cut away that code to shorten the example), I don't know what error
was returned by the ...init_ex() call there.
By the way, what is the value of the 'DECRYPT' define? (last parameter
to your Init_ex()) Should be 0 or 1.

----------
Yes, #define DECRYPT 0
is present in the code.


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to