> > Have you tried a construction like this?
> >
> > Chunk ::= SEQUENCE
> > {
> > head [1] OCTET STRING,
> > body [2] SEQUENCE OF [2] BodyChunk }
> Wouldn't that result in a structure like this:
> 1 <Chunk>
> 1 <head>
> 2 <body>
> 2 <BodyChunk>
> 2 <BodyChunk>
> 2 <BodyChunk>
You are right, the first [2] tag indicates the tag for the SEQUENCE OF
component of the SEQUENCE (body).
> I need to lose that tag for <body>:
> 1 <Chunk>
> 1 <head>
> 2 <BodyChunk>
> 2 <BodyChunk>
> 2 <BodyChunk>
You will do what you need with :
Chunk ::= [1] SEQUENCE OF CHOICE {
head [1] OCTET STRING,
body [2] BodyChunk
}
}
That way you will have :
1 tag for the Chunk,
1 tag for the first element of the sequenceOf (which should be 'head'
tag 1)
2 tag for the other elements that should all be 'BodyChunk'...
A BER encoding would give : A109810101820102820103 (for a head with a single
byte 1, and 2 elements with a single byte 2 and 3)
Bruno KONIK - uniGone
>
> --
> drs. Manuel Polling
> Consultant/Software Engineer
> Edmond Research & Development B.V.
> /The Document Solutions Specialist/
> http://www.edmond.nl/
>
> _______________________________________________
> Asn1 mailing list
> [email protected]
> http://lists.asn1.org/mailman/listinfo/asn1
>
> --------------------------------------------------------------
> -------------------------
> Orange vous informe que cet e-mail a ete controle par
> l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1