Hello all,

when decrypting a PKCS7 object using PKCS7_Decrypt (), I get the followig
error:

error:2107006F:PKCS7 routines:PKCS7_dataDecode:unsupported cipher type

Encrypting is done as follows:
...
const EVP_CIPHER *cipher = EVP_des_ede3_cbc ();
...
pkcs7 = PKCS7_encrypt ( certs, inBIO, cipher, 0 );
...

The resulting pkcs7 object is successfully written and can be viewed with a
BER Viewer. The OID for DES_EDE3_CBC is there, it seems that the lookup

evp_cipher=EVP_get_cipherbyobj(enc_alg->algorithm)

within PKCS7_dataDecode () does not yield a valid EVP_CIPHER.

I tried the flag PKCS7_BINARY for encrypting, no difference. Who can point
me to what I¹m doing wrong? I'm using OpenSSL 0.9.8k.

Thanks and best regards,

Jörg Eyring
--------------------------------------------------------------------
TOPIX Informationssysteme AG, http://www.topix.de
Rudolf-Diesel-Straße 14, D-85521 Ottobrunn
Tel: +49 89 608757-0, Fax: +49 89 608757-11
E-Mail: [email protected]
--------------------------------------------------------------------
Vorstand: Wolfgang Grasberger (Vorsitz),
Axel Braunger, Jörg Eyring, Ferdinand Kresse
AR-Vorsitz: Maximilian Hagg, HRB München 131747
--------------------------------------------------------------------



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to