diff options
author | Aron Griffis <agriffis@gentoo.org> | 2006-02-02 14:08:41 +0000 |
---|---|---|
committer | Aron Griffis <agriffis@gentoo.org> | 2006-02-02 14:08:41 +0000 |
commit | c31646531ca193013173a735d9c09f601ab9ac37 (patch) | |
tree | 308a2032ec917bdda75f77084ae337a1f9af875a /dev-python/pycrypto/files | |
parent | Mark 2.12.0 stable on ia64 (diff) | |
download | historical-c31646531ca193013173a735d9c09f601ab9ac37.tar.gz historical-c31646531ca193013173a735d9c09f601ab9ac37.tar.bz2 historical-c31646531ca193013173a735d9c09f601ab9ac37.zip |
Better solution for bug 121182: use uint32_t for 32-bit unsigned integers
instead of using different typedefs per platform
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'dev-python/pycrypto/files')
-rw-r--r-- | dev-python/pycrypto/files/digest-pycrypto-2.0.1-r3 | 3 | ||||
-rw-r--r-- | dev-python/pycrypto/files/pycrypto-2.0.1-uint32.patch | 39 |
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r3 b/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r3 new file mode 100644 index 000000000000..4e5b88462ffb --- /dev/null +++ b/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r3 @@ -0,0 +1,3 @@ +MD5 4d5674f3898a573691ffb335e8d749cd pycrypto-2.0.1.tar.gz 154292 +RMD160 5ce938a24f77f414e42680c17ef9b6dc8de94a2e pycrypto-2.0.1.tar.gz 154292 +SHA256 b08d4ed54c9403c77778a3803e53a4f33f359b42d94f6f3e14abb1bf4941e6ea pycrypto-2.0.1.tar.gz 154292 diff --git a/dev-python/pycrypto/files/pycrypto-2.0.1-uint32.patch b/dev-python/pycrypto/files/pycrypto-2.0.1-uint32.patch new file mode 100644 index 000000000000..8822737097fc --- /dev/null +++ b/dev-python/pycrypto/files/pycrypto-2.0.1-uint32.patch @@ -0,0 +1,39 @@ +--- src/RIPEMD.c.agriffis 2005-06-13 20:14:57.000000000 -0400 ++++ src/RIPEMD.c 2006-02-02 08:59:43.000000000 -0500 +@@ -99,15 +99,9 @@ + (c) = ROL((c), 10);\ + } + +-typedef unsigned char byte; /* unsigned 8-bit integer */ +-#ifdef __alpha__ +-typedef unsigned int word; /* unsigned 32-bit integer */ +-#elif defined(__amd64__) +-typedef uint32_t word; /* unsigned 32-bit integer */ +-#else +-typedef unsigned long word; /* unsigned 32-bit integer */ +-#endif +-typedef unsigned char BYTE; ++typedef unsigned char byte; ++typedef uint32_t word; ++ + #define RMD_DATASIZE 64 + #define RMD_DIGESTSIZE 20 + #define RMDsize 160 +@@ -137,7 +131,7 @@ + { + word tmp; + int dataCount, i; +- BYTE *p; ++ byte *p; + + /* Update bitcount */ + tmp = shsInfo->countLo; +@@ -151,7 +145,7 @@ + /* Handle any leading odd-sized chunks */ + if(dataCount) + { +- p = ( BYTE * ) shsInfo->data + dataCount; ++ p = ( byte * ) shsInfo->data + dataCount; + + dataCount = RMD_DATASIZE - dataCount; + if( count < dataCount ) |