Re: applicationon crash when call EVP_CIPHER_CTX_init()

2006-09-08 Thread Frank Büttner
Now it work. I have forgotten to initialize the pointer:( I think I was blind because of the hundreds of code lines. smime.p7s Description: S/MIME Cryptographic Signature

Re: applicationon crash when call EVP_CIPHER_CTX_init()

2006-09-08 Thread Frank Büttner
Kaushalye Kapuruge schrieb: >> > All you have to do is to declare an EVP_CIPHER_CTX. > See the example code. > > EVP_CIPHER_CTX ctx; > EVP_CIPHER_CTX_init(&ctx); > EVP_EncryptInit_ex(&ctx, EVP_bf_cbc(), NULL, key, iv); > > See the manual page for more in

Re: applicationon crash when call EVP_CIPHER_CTX_init()

2006-09-07 Thread Kaushalye Kapuruge
Frank Büttner wrote: Hello, when I call EVP_CIPHER_CTX_init() in my application it crash. Must I call anything before? Thanks, Frank All you have to do is to declare an EVP_CIPHER_CTX. See the example code. EVP_CIPHER_CTX ctx; EVP_CIPHER_CTX_init(&ctx);