> why some BN data begin with 0x00,and size is 1 bigger than RSA key length or
> half of it?
ASN.1 integers are always encoded in twos complement. This means that if
an unsigned value has the high-order bit of the top byte set, it needs
another zero byte added. You can safely ignore it.
------------------------------------------------------------
Clifford Heath http://www.osa.com.au/~cjh
Open Software Associates Limited mailto:[EMAIL PROTECTED]
29 Ringwood Street / PO Box 4414 Phone +613 9871 1694
Ringwood VIC 3134 AUSTRALIA Fax +613 9871 1711
------------------------------------------------------------
Proven Solution Deployment for the Global Enterprise
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]