>Is there any way to prepending an ASN1 sequence? Since I don't know how large
>something is until I form it, is there something I am missing that would allow
>for sequence(sequence(object,null),octetstring) by doing the object first,
>appending the null, prepending the sequence, appending the octet string,
>prepending the outer sequence?
 
Encoding backwards and then reversing the encoding is a standard trick for
doing ASN.1.  The alternative is to do it in two passes, once to build up a
tree containing the nested element sizes, the second time to do the encoding.
 
Peter.
 

+-------------------------------------------------------------------------+
| Administrative requests should be sent to [EMAIL PROTECTED] |
| List service provided by Open Software Associates, http://www.osa.com/  |
+-------------------------------------------------------------------------+

Reply via email to