On Tue, Apr 17, 2007 at 02:31:50PM -0400, Victor Duchovni wrote:
> On Tue, Apr 17, 2007 at 11:15:23AM -0700, Edward Chan wrote:
>
> > BN_bn2bin(dh->pub_key, buf);
> > ReverseBytes(buf, size); // MS CAPI requires this in little-endian
>
> Reversing the BER encoded bytes of a big endian integer does not yield
> the BER encoding of the correspoding little-endian integer.
But of course BN_bn2bin() does not return BER encoded data (ASN.1), so
the issue is elsewhere.
How does CryptoAPI handle signs of little-endian numbers? Are they signed
or unsigned?
--
Viktor.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]