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 attached? > Hope it's good enough to drive debugger > > thank you, > Vadim > > 0 30 11: SEQUENCE { > 2 02 2: INTEGER 840 > 6 02 2: INTEGER 735 > 10 02 1: INTEGER -254 > > : Warning: Integer has a negative value > : } >
Try getting a newer version of dumpasn1. My version lists it as -2. Steve. -- Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/ Personal Email: [EMAIL PROTECTED] Senior crypto engineer, Gemplus: http://www.gemplus.com/ Core developer of the OpenSSL project: http://www.openssl.org/ Business Email: [EMAIL PROTECTED] PGP key: via homepage. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]