Hi,

I have the following doubts on BER encoding.
 

  • I would like to know how the extension is handled in the case of
    ENUMERATED value? (for BER). The explanation given in 18.2.4 of
    Olivier's book is not very clear for me(second sentence, regarding the
    extension marker).
  • Example

  • Rights ::= BIT STRING { user-read(0), user-write(1),
    group-read(2), group-write(3),
    other-read(4), other-write(5) }

    group Rights ::= { group-read, group-write }

    For the above example, the book gives the encoded value as,
    Tag : 03 Length : 02 Value : 03 00110xxx.
    Since the compiler can remove trailing zero, in case of Named BitString, can the value be 03 0011xxxx or 03 001100xx.

Please suggest me.

Thank you.

Best Regards,
Murali.
July 22nd.

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Synergy infotech (P) Ltd.
(An ISO 9001:2000 company)
www.synergy-infotech.com
Tel : 080-6780026/7/8,6689904,6689938, Extn : 54.

Home page : www.geocities.com/nidugala
 
 
 

Reply via email to