Re: CMS decryption error with engine

2009-06-17 Thread Carl Young
- Original Message - From: "Dr. Stephen Henson" On Tue, Jun 16, 2009, Carl Young wrote: How would the engine be expected to pick up the IV, aside from the cipher context? If you look at EVP_cipher_asn1_to_param() you'll see it calls get_asn1_parameters in the EVP_CIPHER structure.

Re: CMS decryption error with engine

2009-06-16 Thread Dr. Stephen Henson
On Tue, Jun 16, 2009, Carl Young wrote: > > - Original Message - From: "Dr. Stephen Henson" >> On Tue, Jun 16, 2009, carlyo...@keycomm.co.uk wrote: >> >>> Hi, >>> >>> I'm getting failures decrypting a CMS (KEK or KTRI) when using an engine >>> (RSA bsafe). >>> >>> It appears that when the

Re: CMS decryption error with engine

2009-06-16 Thread Carl Young
- Original Message - From: "Dr. Stephen Henson" On Tue, Jun 16, 2009, carlyo...@keycomm.co.uk wrote: Hi, I'm getting failures decrypting a CMS (KEK or KTRI) when using an engine (RSA bsafe). It appears that when the IV ( from EVP_cipher_asn1_to_param) is set into the context, the

Re: CMS decryption error with engine

2009-06-16 Thread Dr. Stephen Henson
On Tue, Jun 16, 2009, carlyo...@keycomm.co.uk wrote: > Hi, > > I'm getting failures decrypting a CMS (KEK or KTRI) when using an engine > (RSA bsafe). > > It appears that when the IV ( from EVP_cipher_asn1_to_param) is set into the > context, the engine is not handling this somehow. > > The se