From: Matthew Bettencourt <[EMAIL PROTECTED]>

Removing -64 may not be enough.  I've no idea what the effect of
defining SIXTY_FOUR_BIT_LONG is in a 32-bit environment.  Maybe that
should be changed to THIRTY_TWO_BIT_LONG as well?  Otherwise, there
may be times where testing for zero doesn't work because something
else missed half the words and therefore never turned the bignum to a
zero, or something like that.

I know what I say is pretty vague, but I've just started playing with
64-bit vs. 32-bit myself, and haven't quite seen or analysed all the
effects of getting the bignum details wrong...

matt> I have compiled openssl0.9.6a on an SGI IRIX64 system configured 
matt>     51  10:20   ./Configure irix64-mips4-cc --prefix=$HOME
matt> the only mod is that I removed the -64 to generate n32 objects.  When I
matt> use the FSSL CORBA security plugin I get stuck in an infinit loop.  
matt> /vizoned1/matt/openssl-0.9.6a/crypto/bn/bn_gcd.c
matt> 
matt>   while (!BN_is_zero(B))
matt>           {
matt>           if (!BN_div(D,M,A,B,ctx)) goto err;
matt>           T=A;
matt>           A=B;
matt>           B=M;
matt>           /* T has a struct, M does not */
matt> 
matt>           if (!BN_mul(T,D,X,ctx)) goto err;
matt>           if (!BN_add(T,T,Y)) goto err;
matt>           M=Y;
matt>           Y=X;
matt>           X=T;
matt>           sign= -sign;
matt>           }
matt> 
matt> Does this look like a bug in ssl or my compiler??  What info can I get
matt> people to help track this down???

-- 
Richard Levitte   \ Spannvägen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken   \ S-168 35  BROMMA  \ T: +46-8-26 52 47
Redakteur@Stacken   \      SWEDEN       \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis                -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to