Re: ASN.1 encoding of negative integers

2001-10-17 Thread Mark H. Wood
On Wed, 17 Oct 2001, Vadim Fedukovich wrote: > what are the rules or known-good examples of negative number encoding? > I'm trying to encode -2 as part of currency-amount-power sequence > and Peter Gutmann's dumpasn1 tool shows it as -254. It surely looks like a simple error in the dump tool, to

Re: ASN.1 encoding of negative integers

2001-10-17 Thread Dr S N Henson
Vadim Fedukovich wrote: > > hi, > > what are the rules or known-good examples of negative number encoding? > I'm trying to encode -2 as part of currency-amount-power sequence > and Peter Gutmann's dumpasn1 tool shows it as -254. > > Any problem regarding negative number handling at the code att

ASN.1 encoding of negative integers

2001-10-17 Thread Vadim Fedukovich
hi, what are the rules or known-good examples of negative number encoding? I'm trying to encode -2 as part of currency-amount-power sequence and Peter Gutmann's dumpasn1 tool shows it as -254. Any problem regarding negative number handling at the code attached? Hope it's good enough to drive deb