On 05/03/2011 01:35 AM, Stephen Henson via RT wrote:
>> [[email protected] - Wed Apr 20 11:02:34 2011]:
>>
>>
>> If you now try to decrypt the message with openssl you get following
>> error:
>> ===
>> Error decrypting PKCS#7 structure
>> 4733:error:0607A082:digital envelope
>> routines:EVP_CIPHER_CTX_set_key_length:invalid key
>> length:evp_enc.c:370:
>> 4733:error:21070064:PKCS7 routines:PKCS7_dataDecode:decrypted key is
>> wrong length:pk7_doit.c:514:
>> 4733:error:21072077:PKCS7 routines:PKCS7_decrypt:decrypt
>> error:pk7_smime.c:470:
>> ===
>>
>> doing the same with CMSAlgorithm.DES_EDE3_CBC (as just commented in
>> the
>> code above) everything works fine.
>>
>> Now I'm not sure where is the mistake in BC during encryption or
>> openssl
>> during decryption therefore I post on both sides.
>>
>> Find attached the certificate, key and two messages used for the test.
>>
>>
> 
> The attached file is corrupted, please resend.
> 
> Steve.


Problem was solved by Boucycastle - they used the wrong key size
identifier. Please close the issue.

regards
stefan


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

Reply via email to