On Wed, 24 Oct 2001, Conrad Sigona wrote:

> >     > Homework: what would 0204FFFFFFFA decode to?
> > This will decode to -6
> >
> > right?
>
> Bravo.

I was actually too quick with my bravo.

Although it does indeed decode to -6, it is not a legal encoding since an
integer value must always be encoded in the smallest number of octets.
That is, although 0204FFFFFFFA clearly means -6, the proper encoding of -6
would be 0201FA.

=====================================================================
Conrad Sigona                         Toll Free      : 1-888-OSS-ASN1
OSS Nokalva                           Voice Mail     : 1-732-302-9669 x400
[EMAIL PROTECTED]                        Fax            : 1-419-831-5035
http://www.oss.com                    My direct line : 1-315-845-1773

Reply via email to