> 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

No exactly. In order to have a positive integer You just have to ensure 
that the hight order bit is 0. This may require that You need to add
an additional octet in front.  

Reply via email to