On Fri, Dec 03, 2010 at 12:06:22PM -0800, Marcus Carey wrote:

> openssl ecdhtest

What is "openssl ecdhtest"?

> Must use the -no_ecdhe flag.
> openssl.exe s_server -no_ecdhe

With what cert/key? Any other options? What client invocation? ...

>> openssl.exe!nist_cp_bn(unsigned int * buf=0x00acea80, unsigned int *
>> a=0x00000001, int top=8)  Line 308 + 0x6 C

Sure looks like "res" is not quite right...

> int BN_nist_mod_256(BIGNUM *r, const BIGNUM *a, const BIGNUM *field,
> BN_CTX *ctx)
> {
> /*
> .
> .
> .
> */
> mask = 0-(size_t)(*u.f)(c_d,r_d,_nist_p_256[0],BN_NIST_256_TOP);
> mask &= 0-(size_t)carry;
> res = (BN_ULONG *)(((size_t)c_d&~mask) | ((size_t)r_d&mask));
> nist_cp_bn(r_d, res, BN_NIST_256_TOP); // There is a problem here
> r->top = BN_NIST_256_TOP;
> bn_correct_top(r);
> return 1;
> }

I don't understand the "res = ..." code, perhaps it is not portable
to your Windows compiler, or perhaps it is not right. Please
report a more detailed description of how you reproduce this.

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to