Re: pkcs#7 envelopeddata decoding

2006-08-19 Thread Michiel van Meersbergen
I did try to decode the structure using the CMS routines, but they also give me the exact same garbled output... Not a signeddata structure as I would have expected, but the same output never the less... So I expect this is a lower level problem (not the API used), I just can't find out what

pkcs#7 envelopeddata decoding

2006-08-14 Thread Michiel van Meersbergen
Hello list, I'm running into some trouble with the SEC_PKCS7DecodeItem function. The input for this function is a PKCS#7 EnvelopedData object, which contains just one recipient, a session key (encrypted with the recipients' public key) and the encrypted contents, encrypted with the above

Re: pkcs#7 envelopeddata decoding

2006-08-14 Thread Nelson B
Michiel van Meersbergen wrote: Another 'oddity' I should mention, is that the PKCS#11 DLL which provides access to the appropriate certificates and keys will ask for the proper authentication itself - in other words, when a private-key function like 'decrypt', 'sign' or 'unwrap' is called, it