Re: Force ASN.1 encoding routines to keep existing encoding

2010-11-06 Thread Martin Boßlet
It's actually even worse. It's not just specific parts of the SignedData such as the encapsulated content info that are BER-encoded, it seems as if any set or sequence is encoded using "constructed" and infinite length. Thanks for the information, I'll try using the CMS functions and see how far I

Re: Force ASN.1 encoding routines to keep existing encoding

2010-11-06 Thread Dr. Stephen Henson
On Sat, Nov 06, 2010, Martin Bolet wrote: > I just tested, whether the BER-encoding is preserved if I do not alter > any of the contents. Unfortunately, it seems as if the encoding is not > preserved. I did the following: > > d2i_PKCS7_bio(file, &p7); > > and then directly > > i2d_PKCS7_bio(fil

Re: Force ASN.1 encoding routines to keep existing encoding

2010-11-06 Thread Martin Boßlet
I just tested, whether the BER-encoding is preserved if I do not alter any of the contents. Unfortunately, it seems as if the encoding is not preserved. I did the following: d2i_PKCS7_bio(file, &p7); and then directly i2d_PKCS7_bio(file2, p7); again. "file" was BER-encoded using e.g. an Octet S

Re: Force ASN.1 encoding routines to keep existing encoding

2010-11-06 Thread Martin Boßlet
Thanks for this, I'll have a look at the streaming features then! Best regards, Martin 2010/11/6 Dr. Stephen Henson : > On Fri, Nov 05, 2010, Martin Bolet wrote: > >> I'm sorry, I was not precise here. Actually I think (have to verify it >> again though) the encoding is preserved if I parse the >

Re: Multiple Sign

2010-11-06 Thread Dr. Stephen Henson
On Fri, Nov 05, 2010, Anthony Gabrielson wrote: > Hello, I think I know the answer to this, but I want to check in and verify. > Does anyone know of capability that will allow me sign data with more than > one key? > How do you want to sign the data? If you wish to use PKCS#7 or CMS then there a

Re: Force ASN.1 encoding routines to keep existing encoding

2010-11-06 Thread Dr. Stephen Henson
On Fri, Nov 05, 2010, Martin Bolet wrote: > I'm sorry, I was not precise here. Actually I think (have to verify it > again though) the encoding is preserved if I parse the > EncapContentInfo and reencode it later on without changing the > content. > > My problem was more the other way round: When