/[gentoo-alt]/trunk/prefix/dev-python/pycrypto/files/pycrypto-2.0.1-uint32.patch
Gentoo

Contents of /trunk/prefix/dev-python/pycrypto/files/pycrypto-2.0.1-uint32.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1531 - (show annotations) (download)
Tue Sep 19 20:45:53 2006 UTC (8 years, 3 months ago) by grobian
File size: 1078 byte(s)
Sync with main tree


1 --- src/RIPEMD.c.agriffis 2005-06-13 20:14:57.000000000 -0400
2 +++ src/RIPEMD.c 2006-02-02 08:59:43.000000000 -0500
3 @@ -99,15 +99,9 @@
4 (c) = ROL((c), 10);\
5 }
6
7 -typedef unsigned char byte; /* unsigned 8-bit integer */
8 -#ifdef __alpha__
9 -typedef unsigned int word; /* unsigned 32-bit integer */
10 -#elif defined(__amd64__)
11 -typedef uint32_t word; /* unsigned 32-bit integer */
12 -#else
13 -typedef unsigned long word; /* unsigned 32-bit integer */
14 -#endif
15 -typedef unsigned char BYTE;
16 +typedef unsigned char byte;
17 +typedef uint32_t word;
18 +
19 #define RMD_DATASIZE 64
20 #define RMD_DIGESTSIZE 20
21 #define RMDsize 160
22 @@ -137,7 +131,7 @@
23 {
24 word tmp;
25 int dataCount, i;
26 - BYTE *p;
27 + byte *p;
28
29 /* Update bitcount */
30 tmp = shsInfo->countLo;
31 @@ -151,7 +145,7 @@
32 /* Handle any leading odd-sized chunks */
33 if(dataCount)
34 {
35 - p = ( BYTE * ) shsInfo->data + dataCount;
36 + p = ( byte * ) shsInfo->data + dataCount;
37
38 dataCount = RMD_DATASIZE - dataCount;
39 if( count < dataCount )

  ViewVC Help
Powered by ViewVC 1.1.20