I'd say yes - if the protocol says there must be
a SET or a SET OF at this point in the message
it should be valid to have a zero length TLV element.

But my expertise goes 10 years back so....

Steen Oluf Karlsen
Protocol consultancies

Soholtvej 6
Vester Vandet
DK-7700 Thisted
Danmark
Tel +45 97 97 72 72
email [EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Norbert
van Bolhuis
Sent: 4. november 2003 13:53
To: [EMAIL PROTECTED]
Subject: [ASN.1] SET OF encoded with length=0



Is it allowed to encode (BER) a SET OF
with length_byte=0 ?

So, for example:

300a80065678901234563100

   Class      =CLASS_UNIVERSAL
   Constructed
   Type       =SEQUENCE,SEQUENCE_OF
   Length     =10
   {
     Class      =CLASS_CONTEXT_SPECIFIC
     Type       =NONE_0
     Length     =6
     Val        =0x567890123456
     Translated =567890123456

     Class      =CLASS_UNIVERSAL
     Constructed
     Type       =SET,SET_OF
     Length     =0
   }





Reply via email to