Hi,
Thanks for the input.
Do U mean to say, that for negative integer I should use one octet for
representing the sign?

e.g.  ASN1 BER representation of INTEGER -255 is NOT 02 01 01 BUT 02 02 FF
01


regards,

Sathya Narayanan S
RPG Cellular Services Limited
GSM : +91 98410 48051

> -----Original Message-----
> From: Peter Sylvester 
> Sent: Monday, October 22, 2001 3:28 PM
> To:   [EMAIL PROTECTED]
> Subject:      [ASN.1] Decoding of Signed Integer
> 
> Wrong. For negative integer you take the shortest representatation that
> still has a high bit 1. 
> 
> 
> ASN1 BER representation of INTEGER 1 is             02 01 01
> ASN1 BER representation of INTEGER -255 is also  02 01 01
> 
> 02 02 FF 01

Reply via email to