I do not quite agree with this answer because it is forbidden to have the nine first bits set to 1 (rule 8.3.2 of X690). This is done to code on the minimum number of bytes. I would say that 0204FFFFFFFA should never have been encoded by a BER encoder. If you want to code -6 then it would be 02 04 FA (even if a decoder may decode -6 for 0204FFFFFFFA).
Do you agree Conrad? Bruno KONIK - uniGone Tel : +33 (0)1 60 12 77 64 Fax : +33 (0)1 60 12 77 65 41-43 rue de Cronstadt - 75015 PARIS FRANCE mailto:[EMAIL PROTECTED] URL : http://www.unigone.com -- uniGone provides a complete environment for ASN.1 users : JAVA compiler, ASN.1 IP analyzer, simulator... contact us for more information... -- > -----Message d'origine----- > De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Conrad > Sigona > Envoy� : mercredi 24 octobre 2001 15:37 > � : Sathya[IT] > Cc : [EMAIL PROTECTED] > Objet : RE: [ASN.1] BER Integer Encoding Clarification > > > > > Homework: what would 0204FFFFFFFA decode to? > > This will decode to -6 > > > > right? > > Bravo. >
