summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-04-26 23:39:43 +0000
committerMike Frysinger <vapier@gentoo.org>2006-04-26 23:39:43 +0000
commit629ae0cb4b516a0d8096bdd7b3c708c6895f8c8e (patch)
tree53c85b93766461f121204d2ffbb1074b7481cc1e /dev-python/pycrypto
parentAdded -alpha keyword. Doesn't work on alpha. (diff)
downloadhistorical-629ae0cb4b516a0d8096bdd7b3c708c6895f8c8e.tar.gz
historical-629ae0cb4b516a0d8096bdd7b3c708c6895f8c8e.tar.bz2
historical-629ae0cb4b516a0d8096bdd7b3c708c6895f8c8e.zip
Fix from upstream for SHA256 #131293 by Ciaran McCreesh.
Package-Manager: portage-2.1_pre9-r4
Diffstat (limited to 'dev-python/pycrypto')
-rw-r--r--dev-python/pycrypto/ChangeLog8
-rw-r--r--dev-python/pycrypto/Manifest82
-rw-r--r--dev-python/pycrypto/files/digest-pycrypto-2.0.1-r42
-rw-r--r--dev-python/pycrypto/files/digest-pycrypto-2.0.1-r53
-rw-r--r--dev-python/pycrypto/files/pycrypto-2.0.1-sha256.patch23
-rw-r--r--dev-python/pycrypto/pycrypto-2.0.1-r5.ebuild53
6 files changed, 142 insertions, 29 deletions
diff --git a/dev-python/pycrypto/ChangeLog b/dev-python/pycrypto/ChangeLog
index 395c135d6e74..3d5c3d8ce9fd 100644
--- a/dev-python/pycrypto/ChangeLog
+++ b/dev-python/pycrypto/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/pycrypto
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/ChangeLog,v 1.38 2006/03/30 18:26:32 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/ChangeLog,v 1.39 2006/04/26 23:39:43 vapier Exp $
+
+*pycrypto-2.0.1-r5 (26 Apr 2006)
+
+ 26 Apr 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/pycrypto-2.0.1-sha256.patch, +pycrypto-2.0.1-r5.ebuild:
+ Fix from upstream for SHA256 #131293 by Ciaran McCreesh.
30 Mar 2006; Diego Pettenò <flameeyes@gentoo.org>
pycrypto-2.0.1-r4.ebuild:
diff --git a/dev-python/pycrypto/Manifest b/dev-python/pycrypto/Manifest
index 9e5473fe82e1..79edbf29e344 100644
--- a/dev-python/pycrypto/Manifest
+++ b/dev-python/pycrypto/Manifest
@@ -1,67 +1,93 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 7ced15cca672335bd1ae40a92afec7ca ChangeLog 5161
-RMD160 758a66c81c23b0ed46795ba1ac1b22d4e8481a1a ChangeLog 5161
-SHA256 04507acecd4dc1581d82d6d93d6953b398182a83af1242fd012ed3d5ad3520c8 ChangeLog 5161
-MD5 2028cad6e63a793de2b2a0fc6ad0131d files/digest-pycrypto-2.0-r1 238
-RMD160 1f1ff26322b0b25a4379120708863ebbfb89e8da files/digest-pycrypto-2.0-r1 238
-SHA256 05154d79a389898ac08f5bbf94cf20aee087db6801a101557118075405b7313d files/digest-pycrypto-2.0-r1 238
-MD5 e4a3877aceb3f8d3124d9c742f9eef06 files/digest-pycrypto-2.0.1 244
-RMD160 7388a77e1c70274a3d2fb079e1c3e1aa47024256 files/digest-pycrypto-2.0.1 244
-SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/digest-pycrypto-2.0.1 244
-MD5 e4a3877aceb3f8d3124d9c742f9eef06 files/digest-pycrypto-2.0.1-r1 244
-RMD160 7388a77e1c70274a3d2fb079e1c3e1aa47024256 files/digest-pycrypto-2.0.1-r1 244
-SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/digest-pycrypto-2.0.1-r1 244
-MD5 e4a3877aceb3f8d3124d9c742f9eef06 files/digest-pycrypto-2.0.1-r2 244
-RMD160 7388a77e1c70274a3d2fb079e1c3e1aa47024256 files/digest-pycrypto-2.0.1-r2 244
-SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/digest-pycrypto-2.0.1-r2 244
-MD5 e4a3877aceb3f8d3124d9c742f9eef06 files/digest-pycrypto-2.0.1-r3 244
-RMD160 7388a77e1c70274a3d2fb079e1c3e1aa47024256 files/digest-pycrypto-2.0.1-r3 244
-SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/digest-pycrypto-2.0.1-r3 244
-MD5 b9e6cee737dea02a879ca7f8927b769a files/digest-pycrypto-2.0.1-r4 66
-RMD160 0d395150045603f260d60d8c82d1af39202cd94a files/digest-pycrypto-2.0.1-r4 66
-SHA256 e0b3a479f03401872cf5b19b7277c6cf92037abe9f3f1545e7d3a5f90caf6a78 files/digest-pycrypto-2.0.1-r4 66
+AUX pycrypto-2.0.1-bindist.patch 1561 RMD160 b0064385698a1cb9ed741b2e68ed682b4d395a61 SHA1 e3169e49281a1fca0ef5154bdb3b48ccc50e809d SHA256 c95a6b3628d5472f749004c5d9a95a812d1b9c1fc7bfa5a538fa64210a021d9a size 1561
MD5 1cef0f805deeb0a9632606f1f97cce29 files/pycrypto-2.0.1-bindist.patch 1561
RMD160 b0064385698a1cb9ed741b2e68ed682b4d395a61 files/pycrypto-2.0.1-bindist.patch 1561
SHA256 c95a6b3628d5472f749004c5d9a95a812d1b9c1fc7bfa5a538fa64210a021d9a files/pycrypto-2.0.1-bindist.patch 1561
+AUX pycrypto-2.0.1-gmp.patch 644 RMD160 33c7f7e435a1b9e76729d2083fa203a2ec040d83 SHA1 f434fea5dfacf9d95e96ba8adea2a5ce4491594f SHA256 c20f8d91ee74c4c0347957386c60b38a510c368e3778ae80f015af68c963d29d size 644
MD5 6409a768dc7049b71e4b01d380db5d3a files/pycrypto-2.0.1-gmp.patch 644
RMD160 33c7f7e435a1b9e76729d2083fa203a2ec040d83 files/pycrypto-2.0.1-gmp.patch 644
SHA256 c20f8d91ee74c4c0347957386c60b38a510c368e3778ae80f015af68c963d29d files/pycrypto-2.0.1-gmp.patch 644
+AUX pycrypto-2.0.1-ia64.patch 442 RMD160 c027362c20b414ec07e7eda9ee0002d4c75c78c4 SHA1 3cb5e684f38bac54138aaae4e13b02e2f649d38f SHA256 7ccfa05d0b5ebe9bc9a9edc40226f6bc8adbff27aaae0da70881f53afdaf506c size 442
MD5 f069c9d2982308d3b8043000d596c6a7 files/pycrypto-2.0.1-ia64.patch 442
RMD160 c027362c20b414ec07e7eda9ee0002d4c75c78c4 files/pycrypto-2.0.1-ia64.patch 442
SHA256 7ccfa05d0b5ebe9bc9a9edc40226f6bc8adbff27aaae0da70881f53afdaf506c files/pycrypto-2.0.1-ia64.patch 442
+AUX pycrypto-2.0.1-sancho-package-rename.patch 2688 RMD160 6a827488245c2627801908b009e2a08adb86781f SHA1 4540d0a7fe654653a0cb42d333c644b4c339b61c SHA256 5b8827719f411ff48d8107ef6f0893cbdfa038875b2e16391e4a75b88eea6bad size 2688
MD5 ca6b2813ae5d3481760d8d8436826811 files/pycrypto-2.0.1-sancho-package-rename.patch 2688
RMD160 6a827488245c2627801908b009e2a08adb86781f files/pycrypto-2.0.1-sancho-package-rename.patch 2688
SHA256 5b8827719f411ff48d8107ef6f0893cbdfa038875b2e16391e4a75b88eea6bad files/pycrypto-2.0.1-sancho-package-rename.patch 2688
+AUX pycrypto-2.0.1-sha256.patch 912 RMD160 9a2557cdaf4f9922b3ace23d7eced46f5785f0de SHA1 eafcd5a6e25c4f4d8411612a9f18f8e90e1aca18 SHA256 3fef960453dc28b2d17623c85338d49bc74f9a5e73bd31bceb77880b30c4779f size 912
+MD5 acb3f41034f980373b9b880ebc179e05 files/pycrypto-2.0.1-sha256.patch 912
+RMD160 9a2557cdaf4f9922b3ace23d7eced46f5785f0de files/pycrypto-2.0.1-sha256.patch 912
+SHA256 3fef960453dc28b2d17623c85338d49bc74f9a5e73bd31bceb77880b30c4779f files/pycrypto-2.0.1-sha256.patch 912
+AUX pycrypto-2.0.1-uint32.patch 1078 RMD160 40f20f4d3a89b8927eaee415418e1d9f2b2be33b SHA1 0214ba9f2a592e6ce78cf6dd8e5d72f9dd44ac0d SHA256 b8cb928cbf1713eff06c6899cb773c9a02f28e85de02e7d6f45ed1be413b47dd size 1078
MD5 b3a3f729857328b1801aa072802cc955 files/pycrypto-2.0.1-uint32.patch 1078
RMD160 40f20f4d3a89b8927eaee415418e1d9f2b2be33b files/pycrypto-2.0.1-uint32.patch 1078
SHA256 b8cb928cbf1713eff06c6899cb773c9a02f28e85de02e7d6f45ed1be413b47dd files/pycrypto-2.0.1-uint32.patch 1078
-MD5 5b03cb0967f5fb96991f2463fa415797 metadata.xml 1774
-RMD160 b0aeda4d69c1dc4ec798f05f617a2d0ddf8c29ab metadata.xml 1774
-SHA256 b4fe5bcbed977469f626a33c8b9c16d860e53e16b02f78ce931f6afa67c98ac2 metadata.xml 1774
+DIST pycrypto-2.0.1.tar.gz 154292 RMD160 5ce938a24f77f414e42680c17ef9b6dc8de94a2e SHA256 b08d4ed54c9403c77778a3803e53a4f33f359b42d94f6f3e14abb1bf4941e6ea size 154292
+DIST pycrypto-2.0.tar.gz 164682 RMD160 2666f2e1388526b31ad6e9c534853661e875a99e SHA256 35ec1a3590e1e1c263520ac26f37cf3dabbd19fc529e424f06acd35454cb7b8e size 164682
+EBUILD pycrypto-2.0-r1.ebuild 602 RMD160 80dd1c5d26aaa65d684b8818d29f9791a134cf86 SHA1 72f17ee1946957b335cc709f712944ea1838c4bc SHA256 2c6179bbbe15e3b4e9e2ff1690656edde5909141588ffece57150b18e68657dd size 602
MD5 f32925bfe36cb1573cc8cecf8c266335 pycrypto-2.0-r1.ebuild 602
RMD160 80dd1c5d26aaa65d684b8818d29f9791a134cf86 pycrypto-2.0-r1.ebuild 602
SHA256 2c6179bbbe15e3b4e9e2ff1690656edde5909141588ffece57150b18e68657dd pycrypto-2.0-r1.ebuild 602
+EBUILD pycrypto-2.0.1-r1.ebuild 1164 RMD160 632aa88115fef9fff6c554f6af431f77ecd8366b SHA1 0c3edfcef8497be69ebaea25c4cbc66ae37ae99d SHA256 6983f7e85395d0cf0104f68849ee80ebe140db5331b684276a9ba477d230f5fa size 1164
MD5 1163f65b348d193aaae8f7c2516c68f8 pycrypto-2.0.1-r1.ebuild 1164
RMD160 632aa88115fef9fff6c554f6af431f77ecd8366b pycrypto-2.0.1-r1.ebuild 1164
SHA256 6983f7e85395d0cf0104f68849ee80ebe140db5331b684276a9ba477d230f5fa pycrypto-2.0.1-r1.ebuild 1164
+EBUILD pycrypto-2.0.1-r2.ebuild 1383 RMD160 e13aaec790f3d8b15bb042b819a27b72aa6b31ed SHA1 6b93667c505f711b7b7bdd6472cfaebf78194b50 SHA256 3a9a0216d8e8ec9fa606bd437dc6dd4b8a0b37e9f9040df80f3e074633e3b10b size 1383
MD5 263b9c8b7693a11b20ce73932ec2aae7 pycrypto-2.0.1-r2.ebuild 1383
RMD160 e13aaec790f3d8b15bb042b819a27b72aa6b31ed pycrypto-2.0.1-r2.ebuild 1383
SHA256 3a9a0216d8e8ec9fa606bd437dc6dd4b8a0b37e9f9040df80f3e074633e3b10b pycrypto-2.0.1-r2.ebuild 1383
+EBUILD pycrypto-2.0.1-r3.ebuild 1393 RMD160 92242c8d06a430f0d160f4ae7e541de0767edeab SHA1 b66752f931c212185d53eb6980aca05b4e2f0340 SHA256 90537f23d195480233a35ff5d1204d39c79b22f6c6a1f9404d294556d21c99fa size 1393
MD5 bcdf12d03a9c589211be5dff838905ee pycrypto-2.0.1-r3.ebuild 1393
RMD160 92242c8d06a430f0d160f4ae7e541de0767edeab pycrypto-2.0.1-r3.ebuild 1393
SHA256 90537f23d195480233a35ff5d1204d39c79b22f6c6a1f9404d294556d21c99fa pycrypto-2.0.1-r3.ebuild 1393
+EBUILD pycrypto-2.0.1-r4.ebuild 1466 RMD160 b24c537f0d24d65b3390e1dfb806d46aa2507aa4 SHA1 6c9152f99f7cb1d806505f14f30b3b03f81da1f5 SHA256 4f5bc54f35d8ab89a1ae3b9c03e0c1af506f0d2d856fc6fc94d81fa7c2518f0f size 1466
MD5 e410e1f19310a648aa9b0b405adee58d pycrypto-2.0.1-r4.ebuild 1466
RMD160 b24c537f0d24d65b3390e1dfb806d46aa2507aa4 pycrypto-2.0.1-r4.ebuild 1466
SHA256 4f5bc54f35d8ab89a1ae3b9c03e0c1af506f0d2d856fc6fc94d81fa7c2518f0f pycrypto-2.0.1-r4.ebuild 1466
+EBUILD pycrypto-2.0.1-r5.ebuild 1506 RMD160 0fd6299f65c3d0ba96c06439f291158ac557cfc2 SHA1 132183a0c75e3ddc9bb77ddc8cdc4f682ff9dcc1 SHA256 fc93de0673eb25c7f63fa3e047732ea701e694268a2fabd93bbeacfbaa3c1c2a size 1506
+MD5 9c05d2478a2a74f3553a6b513b62cf69 pycrypto-2.0.1-r5.ebuild 1506
+RMD160 0fd6299f65c3d0ba96c06439f291158ac557cfc2 pycrypto-2.0.1-r5.ebuild 1506
+SHA256 fc93de0673eb25c7f63fa3e047732ea701e694268a2fabd93bbeacfbaa3c1c2a pycrypto-2.0.1-r5.ebuild 1506
+EBUILD pycrypto-2.0.1.ebuild 762 RMD160 70e38bec63b2448e0cfdbbfe8fbf3ab07a30fe17 SHA1 cfe5daf847e5ae0f19458dccc6292db1e4517796 SHA256 b85d654c25a7403b351ac536c0a855d4f8c898d59a98b88b0e68d7e808b03870 size 762
MD5 13d0293b0075a1d14f88ce4df3a1188b pycrypto-2.0.1.ebuild 762
RMD160 70e38bec63b2448e0cfdbbfe8fbf3ab07a30fe17 pycrypto-2.0.1.ebuild 762
SHA256 b85d654c25a7403b351ac536c0a855d4f8c898d59a98b88b0e68d7e808b03870 pycrypto-2.0.1.ebuild 762
+MISC ChangeLog 5367 RMD160 4d090b746d76373e7df03906e187a656806198b7 SHA1 a6ae448df3d07a098f7268fe5a2fef1418f078a9 SHA256 5b3194b32e980c7c10d5d7a985e75a3ff1fee1313c0c0549968063a6b3c57448 size 5367
+MD5 02398f097f987325b3ca02fc471f793c ChangeLog 5367
+RMD160 4d090b746d76373e7df03906e187a656806198b7 ChangeLog 5367
+SHA256 5b3194b32e980c7c10d5d7a985e75a3ff1fee1313c0c0549968063a6b3c57448 ChangeLog 5367
+MISC metadata.xml 1774 RMD160 b0aeda4d69c1dc4ec798f05f617a2d0ddf8c29ab SHA1 00da4a85672688868003fecd52b3a9497a3c433c SHA256 b4fe5bcbed977469f626a33c8b9c16d860e53e16b02f78ce931f6afa67c98ac2 size 1774
+MD5 5b03cb0967f5fb96991f2463fa415797 metadata.xml 1774
+RMD160 b0aeda4d69c1dc4ec798f05f617a2d0ddf8c29ab metadata.xml 1774
+SHA256 b4fe5bcbed977469f626a33c8b9c16d860e53e16b02f78ce931f6afa67c98ac2 metadata.xml 1774
+MD5 2028cad6e63a793de2b2a0fc6ad0131d files/digest-pycrypto-2.0-r1 238
+RMD160 1f1ff26322b0b25a4379120708863ebbfb89e8da files/digest-pycrypto-2.0-r1 238
+SHA256 05154d79a389898ac08f5bbf94cf20aee087db6801a101557118075405b7313d files/digest-pycrypto-2.0-r1 238
+MD5 e4a3877aceb3f8d3124d9c742f9eef06 files/digest-pycrypto-2.0.1 244
+RMD160 7388a77e1c70274a3d2fb079e1c3e1aa47024256 files/digest-pycrypto-2.0.1 244
+SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/digest-pycrypto-2.0.1 244
+MD5 e4a3877aceb3f8d3124d9c742f9eef06 files/digest-pycrypto-2.0.1-r1 244
+RMD160 7388a77e1c70274a3d2fb079e1c3e1aa47024256 files/digest-pycrypto-2.0.1-r1 244
+SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/digest-pycrypto-2.0.1-r1 244
+MD5 e4a3877aceb3f8d3124d9c742f9eef06 files/digest-pycrypto-2.0.1-r2 244
+RMD160 7388a77e1c70274a3d2fb079e1c3e1aa47024256 files/digest-pycrypto-2.0.1-r2 244
+SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/digest-pycrypto-2.0.1-r2 244
+MD5 e4a3877aceb3f8d3124d9c742f9eef06 files/digest-pycrypto-2.0.1-r3 244
+RMD160 7388a77e1c70274a3d2fb079e1c3e1aa47024256 files/digest-pycrypto-2.0.1-r3 244
+SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/digest-pycrypto-2.0.1-r3 244
+MD5 e4a3877aceb3f8d3124d9c742f9eef06 files/digest-pycrypto-2.0.1-r4 244
+RMD160 7388a77e1c70274a3d2fb079e1c3e1aa47024256 files/digest-pycrypto-2.0.1-r4 244
+SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/digest-pycrypto-2.0.1-r4 244
+MD5 e4a3877aceb3f8d3124d9c742f9eef06 files/digest-pycrypto-2.0.1-r5 244
+RMD160 7388a77e1c70274a3d2fb079e1c3e1aa47024256 files/digest-pycrypto-2.0.1-r5 244
+SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/digest-pycrypto-2.0.1-r5 244
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2.2 (GNU/Linux)
+Version: GnuPG v1.4.3 (GNU/Linux)
-iD8DBQFELCLnAiZjviIA2XgRAlLFAJ0ZU4TW7ww2JctlX7xsaYcEQVrh6ACg3Uec
-Y3d0/K24vPCBw6ESaC+ME/k=
-=NbMc
+iD8DBQFEUATi2+ySkm8kpY0RAotkAJ9xGKYVC+Vlq2ox368hN+tKxYiT5wCglerI
+3KsG3UpC+HwODCotkDG57Mw=
+=AlEL
-----END PGP SIGNATURE-----
diff --git a/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r4 b/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r4
index aa9117b02ce5..4e5b88462ffb 100644
--- a/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r4
+++ b/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r4
@@ -1 +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/digest-pycrypto-2.0.1-r5 b/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r5
new file mode 100644
index 000000000000..4e5b88462ffb
--- /dev/null
+++ b/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r5
@@ -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-sha256.patch b/dev-python/pycrypto/files/pycrypto-2.0.1-sha256.patch
new file mode 100644
index 000000000000..8d6b63489fcd
--- /dev/null
+++ b/dev-python/pycrypto/files/pycrypto-2.0.1-sha256.patch
@@ -0,0 +1,23 @@
+http://bugs.gentoo.org/131293
+
+===================================================================
+RCS file: /cvsroot/pycrypto/crypto/src/SHA256.c,v
+retrieving revision 1.3
+retrieving revision 1.4
+diff -u -r1.3 -r1.4
+--- pycrypto/crypto/src/SHA256.c 2005/06/10 19:22:55 1.3
++++ pycrypto/crypto/src/SHA256.c 2005/11/29 16:31:36 1.4
+@@ -136,11 +136,11 @@
+ /* append the '1' bit */
+ md->buf[md->curlen++] = 0x80;
+
+- /* if the length is currenlly above 56 bytes we append zeros
++ /* if the length is currently above 56 bytes we append zeros
+ * then compress. Then we can fall back to padding zeros and length
+ * encoding like normal.
+ */
+- if (md->curlen >= 56) {
++ if (md->curlen > 56) {
+ for (; md->curlen < 64;)
+ md->buf[md->curlen++] = 0;
+ sha_compress(md);
diff --git a/dev-python/pycrypto/pycrypto-2.0.1-r5.ebuild b/dev-python/pycrypto/pycrypto-2.0.1-r5.ebuild
new file mode 100644
index 000000000000..48c0722e0c93
--- /dev/null
+++ b/dev-python/pycrypto/pycrypto-2.0.1-r5.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/pycrypto-2.0.1-r5.ebuild,v 1.1 2006/04/26 23:39:43 vapier Exp $
+
+inherit eutils distutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="Python Cryptography Toolkit"
+HOMEPAGE="http://www.amk.ca/python/code/crypto.html"
+SRC_URI="http://www.amk.ca/files/python/crypto/${P}.tar.gz"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="bindist gmp test"
+
+RDEPEND="virtual/python
+ gmp? ( dev-libs/gmp )"
+DEPEND="${RDEPEND}
+ test? ( =dev-python/sancho-0.11-r1 )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ use bindist && epatch "${FILESDIR}"/${P}-bindist.patch
+ epatch "${FILESDIR}"/${P}-sha256.patch
+ epatch "${FILESDIR}"/${P}-gmp.patch
+ epatch "${FILESDIR}"/pycrypto-2.0.1-uint32.patch
+ epatch "${FILESDIR}"/${P}-sancho-package-rename.patch
+}
+
+src_compile() {
+ use gmp \
+ && export USE_GMP=1 \
+ || export USE_GMP=0
+ # sha256 hashes occasionally trigger ssp when built with
+ # -finline-functions (implied by -O3).
+ gcc-specs-ssp && append-flags -fno-inline-functions
+ distutils_src_compile
+}
+
+src_test() {
+ export PYTHONPATH=$(ls -d "${S}"/build/lib.*/)
+ python ./test.py || die "test failed"
+ if use test ; then
+ local x
+ cd test
+ for x in test_*.py ; do
+ python ${x} || die "${x} failed"
+ done
+ fi
+}
+
+DOCS="ACKS ChangeLog PKG-INFO README TODO Doc/pycrypt.tex"