-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ger Hobbelt Sent: Friday, August 08, 2008 3:54 PM To: openssl-users@openssl.org Subject: Re: EVP_CipherInit_ex because cipher->do_cipher is NULL
On Thu, Aug 7, 2008 at 8:13 AM, Ambarish Mitra <[EMAIL PROTECTED]> wrote: > The EVP_CipherInit_ex function returned 0 - indicating failure. Upon What does OpenSSL report as error code/description? (E.g. when using ERR_print_errors() - see the documentation for how to use) Ger Hi Ger, I tried your suggestion: ... ... int r2 = EVP_CipherInit_ex(&ctx, cipher, NULL, key, iv, DECRYPT); ERR_print_errors_fp(stderr); ... ... The output was: 933945:error:0607C084:lib(6):func(124):reason(132):evp_enc.c:523: 933945:error:0607B086:lib(6):func(123):reason(134):evp_enc.c:170: [EMAIL PROTECTED] openssl errstr 0607C084 error:0607C084:digital envelope routines:EVP_CIPHER_CTX_ctrl:ctrl not implemented [EMAIL PROTECTED] openssl errstr 0607B086 error:0607B086:digital envelope routines:EVP_CipherInit:initialization error It says "ctrl not implemented". This looks very strange to me because the same function (EVP_CipherInit_ex) works okay in the encryption stage, this fails only in the decryption stage. What is the meaning of "ctrl not implemented"? And why would this be not implemented in decryption stage, but be implemented in encryption stage? Any pointers on how to resolve or fix this problem? Thanks. 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]