> > > Hi ,
> > >
> > > Would you help to explain how to encode the following(BER):
> > >
> > > PsendAuthenticationInfoRess   ::=    SEQUENCE SIZE (1..5)    OF
> > >             SEQUENCE {
> > >                         rand        OCTET  STRING (SIZE (8)),
> > >                         resulti      OCTET STRING    (SIZE (8)),
> > >                         resultj      OCTET STRING    (SIZE (8)),
> > >                 ...  }
> > >
> > >
> > > What's the tag would be for this type?


> > Making the assumption that your module doesn't include an AUTOMATIC TAGS
> > clause in its header, it'll be the tag of SEQUENCE OF which is the same
> > as the tag of SEQUENCE, i.e., 16.
> > --
> > Olivier DUBUISSON
> > france telecom R&D
> >
> > DTL/TAL - 22307 Lannion Cedex - France
> > t: +33 2 96 05 38 50 - f: +33 2 96 05 39 45 - http://asn1.elibel.tm.fr/

> Thanks for your quick response.
>
> I think I didn't express my question quite clearly.
> Actually, I wonder the TLV format for the SEQUENCE SIZE OF SEQUENCE.
> Using the example,
> and under the assumption,  would  the encode be like following?
>
> 30 LENGTH
>
> 30 LENGTH
> 04 08....
> 04 08....
> 04 08....
>
> 30 LENGTH
> 04 08...
> 04 08...
> 04 08...
>
> 30 LENGTH
> 04 08...
> 04 08...
> 04 08...
>
> 30 LENGTH
> 04 08...
> 04 08...
> 04 08...
>
> 30 LENGTH
> 04 08...
> 04 08...
> 04 08...
>
> Am I right?

Assuming there are 5 sequences within the SEQUENCE OF, you are correct.
You do understand, however, than there may be as few as 1 or as many as 5?

=====================================================================
Conrad Sigona                         Voice Mail     : 1-732-302-9669 x400
OSS Nokalva                           Fax            : 1-419-831-5035
[EMAIL PROTECTED]                        My direct line : 1-315-845-1773


Reply via email to