On Friday 08 March 2002 11:19, Jake wrote: > the following program outputs: > > ----------------------- > what the heck? > 0 41 > 41 81 > 81 c1 > c1 1 > 1 42 > 42 82 > 82 c2 > c2 0 > ----------------------- > > is this the expected behavior?
Yes, the first binary list is your own numerical data with a redundant leading-zero. The second list is the output from BN_bn2bin() that doesn't generate redundant leading-zeroes. In all other respects, they seem to agree. Don't forget, BN_bn2bin and BN_bin2bn assume numerical data to be big-endian byte-arrays. Cheers, Geoff ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
