CC: | bug-Convert-ASN1 [...] rt.cpan.org |
Subject: | Re: ASN.1 encoding of integers > 0x7FFFFFFF |
Date: | Thu, 26 Nov 2009 17:29:03 +0100 |
To: | Graham Barr <gbarr [...] pobox.com> |
From: | Markus Wernig <markus [...] wernig.net> |
Hello Graham
Graham Barr wrote:
Show quoted text
> How does it contradict? that states that the left most 9 bits cannot all be the same
Yes, you are right. I had misinterpreted the statement.
Show quoted text> basically the left most bit denotes sign, 0xDEADBEEF is unsigned but 0204DEADBEEF is a negative number because the left most bit is 1
But is this not up to the receiving application to decide? What if the
sender really intends to send the number -559038737? By encoding it as
0205DEADBEEF the value is changed in transition.
thanks for your help
Markus
Message body not shown because it is not plain text.