[ pycrypto-Bugs-1185980 ] RIPEMD does not work on amd64

"SourceForge.net" <[email protected]> Fri, 10 Jun 2005 12:19:02 -0700
Newsgroups gmane.comp.python.cryptography.cvs
Message-ID <[email protected]>
Bugs item #1185980, was opened at 2005-04-19 09:59
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=120937&aid=1185980&group_id=20937

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Mihai Ibanescu (misa)
>Assigned to: A.M. Kuchling (akuchling)
Summary: RIPEMD does not work on amd64

Initial Comment:
The problem is in RIPEMD.c:

#ifdef __alpha__
typedef    unsigned int        word;   /* unsigned
32-bit integer */
#else
typedef    unsigned long        word;   /* unsigned
32-bit integer */
#endif


The way I patched it was:

#include <inttypes.h>

typedef uint32_t word; /* unsigned 32-bit integer */

As long as your compiler is C99 compliant, this should
work just fine.

----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2005-06-10 15:19

Message:
Logged In: YES 
user_id=11375

I've applied a slightly modified version of the patch,
checking for __amd64__ to use uint32_t; I don't know how
common C99-compliant compilers are.  Thanks!


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=120937&aid=1185980&group_id=20937


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20