[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Photuris // Variable-Precision numbers
In message <199510180124.AA22890@interlock.ans.net>you write:
>
> May I suggest that you use ASN.1 encoding for the multiprecision integers?
> This is a standard that is in use (by SNMP) and has both commercial and
> public domain software libraries available. The only extra overhead is
> one leading byte for the data type field, otherwise it is the same thing
> as you and Ron are discussing, with a length field followed by the integer
> (data).
With the following differences:
- ASN.1 counts bytes in the size field, the Photuris draft counts bits
- ASN.1 has signed integers, the Photuris draft uses unsigned
- ASN.1 encoding rules can be a pain in <wherever> to get right for
some values (eg. 128 is encoded as 02 02 00 80, ie. it requires at
least two bytes for the value)
\Bernhard.
References: