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
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
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);